08-12-2009 03:37 PM
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.
Solved! Go to Solution.
08-13-2009 12:37 PM
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).