Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I write a class driver

Using LabWindows/CVI, How do I write a class driver? I am writing an instrument driver - successfully, so far - and would like to write a class driver so that I can take advantage of the logical names defined under IMAX, and do things like shift as appropriate to one of several instrument drivers. However, I can find no guidance for actually writing a class driver anywhere. Any help would be appreciated.
Paul
0 Kudos
Message 1 of 4
(3,651 Views)

Hello Paul,

LabWindows/CVI 8.1 includes the IVI Custom Class Driver Wizard, which you can use to generate source code for creating custom class drivers based on existing drivers.

Vesna

0 Kudos
Message 2 of 4
(3,641 Views)

Ok, thanks. I'm still on 6.0, and my upgrade to 8 is in the signature chain. Is there anything that I can do in the meantime?

Paul

0 Kudos
Message 3 of 4
(3,636 Views)
Before you run the custom IVI class driver wizard in CVI, you should complete the .fp file that contains the function prototypes for your IVI class. Also, you should create a header file that defines the attribute constant names and IDs, attribute defined values, and error code values for your class. The tool uses the .fp file as an input to create a custom class driver.  
0 Kudos
Message 4 of 4
(3,617 Views)