Functions include caliper tools, pattern matching, The CWIMAQVision control is an ActiveX control for analyzingĪnd processing images.Region of interest, zoom and pan an image, and apply different color palettes. With this control, you can interactively select a The CWIMAQViewer control is an ActiveX control for displaying.The CWIMAQ control is an ActiveX control forĪcquiring images from devices supported by the NI-IMAQ driver software.The NI Vision for Visual Basic package contains the With NI Vision for Visual Basic, you can acquire images from imageĪcquisition devices supported by the NI-IMAQ driver software, display them in theĪpplication, perform interactive viewer operations, and analyze the images toĮxtract information. Image analysis and machine vision applications in any compatible ActiveX control container. NI Vision for Visual Basic is a collection of ActiveX controls you can use to develop I would like to mention that this exception is thrown after the RaView() constructor is called and before the OnLoaded event handler is executed.Previous page next page NI Vision Overview I am a little bit baffled at this error because I know the exists in the directory where it is being referenced from. I haven't been able to figure out why this exception is being thrown. The system cannot find the file specified. An unhandled exception of type 'System.IO.FileNotFoundException' occurred in WindowsBase.dllĪdditional information: Could not load file or assembly 'Interop.CW3DGraphLib, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. When I attempt to activate the RaView, the following exception is thrown. I can build my solution without error and the WPF application runs fine as long as I don't attempt to activate the RaView (done with a button click). Private void OnLoaded(object sender, RoutedEventArgs routedEventArgs) Next is the code behind for given XAML view. The XAML view I am attempting to host the ActiveX control in contains a stack panel. From here I was able to begin writing code to host the ActiveX control inside my WPF application (intellisense was even working with it). I copied these assemblies to my NI WPF application's lib directory and added references to them from the Visual Studio Solution Explorer. Doing so produced 2 DLL's of interest underneath the project's bin directory, specifically and. To get a copy of these references, I created a new NI WinForm application, added the CWGraph3D control to the Toolbox, added the graph to the application's form, and built the solution. I figured that if I could add these references to my NI WPF application, then I could add the ActiveX 3D graph to my view programmatically. I found that in order to use the CWGraph3D Control the following references are needed (and maybe some other references from the System namespace I am forgetting). So far I have not been successful.īefore I began writing the code shown below I found some NI WinForm sample applications online to figure out what references I needed to use the 3D graph and how to interact with it. However, I know that it is possible to host ActiveX controls in WPF applications so that is what I have been trying to do.
After doing some research I learned that NI has a ActiveX ComponentWorks 3D graph that can be added into WinForm applications fairly easily. DigitalGraph, Graph, IntensityGraph, etc.). It is my understanding that there is not a WPF 3D graph I can use out of the Visual Studio Toolbox that I can just drop into the designer (i.e. I would like to display data in a 3D graph in my NI WPF application.