LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

IviDCPwr Class Driver

Solved!
Go to solution

The IviDCPwr Class Driver does not have WriteInstrData or ReadInstrData functions.  These functions are needed to be able to send command and read data that were no written in the driver.  If one DC power supply has a function that is not in the IviDCPwr class you could use these commands to execute that function and still only have to call one driver.

 

0 Kudos
Message 1 of 2
(3,785 Views)
Solution
Accepted by topic author Paul_Knight_Lockheed_Mart

Hello Paul,

        The IVI Class Drivers only implement the Base and Extended Class Capabilities, to allow for interchangeability.  Writing or Reading Instrument Specific Data adversely impacts interchangeability, so therefore, they are not implemented at the Class level.  You will need to get a reference to the IVI Instrument Specific Driver and call the the Instrument Specific WriteInstrData or ReadInstrData.  In LabVIEW this is done implictly when you initialize with the Class driver and then wire the reference to the Specific Driver VI.

 

In CVI, you will need to call "IviDCPwr_GetSpecificDriverCHandle" which "...returns the C session instrument handle you use to call the specific driver's functions."

 

Cheers,

 

NathanT

 

p.s.  Here is what a ni.com search for "WriteInstrData" yielded (see the top result).

Message 2 of 2
(3,756 Views)