LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a Matrox Meteor Frame Grabber?

I have a matrix meteor frame grabber (analog) and CVI.  I can get MIL to display my image.  I can find the .lib, dll and .h files provided with the Mil software.  How do I import them into CVI?  I thought this would be a simple DLL import that would then allow me to access the functions in the MIL dll's but I cannot seem to import them.  I don't even know which of the many dlls to import.  Is this even possible?  I have searched previous posts about using ActiveX or using the Mil functions and then just displaying the data in CVI.  How do you do that?  I am at a loss as to what direction to go.  Thanks in advance.

 

0 Kudos
Message 1 of 2
(3,474 Views)

As with any DLL, if you're going to call the functions in it using static (load time) linking (which I recommend you try) you need to compile your references to the DLL functions from within your CVI application using the supplied .h file, and then bind the import library .lib file to your application, then have the DLL installed where your application can find it (putting it into the same folder as your application is a good place).

 

You should add the .h and the .lib files to your CVI application's project.  You don't have to add the DLL file itself, it's found by the operating system when you start your application (if you're using static binding which I recommend).

 

As to the purpose of each function, and what order to call the functions, what parameter values to use, etc., you have to learn that from the supplier of the DLL.  There should be some sort of programmer's guide or manual supplied with the DLL.

 

There's another recent thread on the forum about linking to DLL's, and the CVI website has a tutuorial on DLL's, though in your case you don't need to create a DLL, you're just trying to use one.

 

Good luck.

 

Menchar

0 Kudos
Message 2 of 2
(3,471 Views)