09-15-2008 01:01 PM
I can see that the niFgen IVI specific driver allows the setting of Analog Path (Direct, Main, High Gain, Low Gain), Digital and Analog Filtering, Interpolation Factor. Is it possible to set these using the IVIFgen class interface? If not, what are the default values for these setttings that are used when writing an application using only the IVI class interface?
Also, is it possible to explicity control the Output DAC, Gain DAC, Offset DAC, Pre/Post Amplifier Attenuation using the IVIClass interface (these are calibration functions in niFgen).
Basically, I have a calibration application and wondered if I could perform the PXI-5421 calibration procedure using only the class interface (the calibration procedure requires explicit setting of the above options).
As a related question, what is the gain of the High and Low gain analog paths - I could not find it documented anywhere?
I have a feeling that I cannot achieve what I need through the class interface, but I'd appeciate some comments from someone "in the know"!
Thanks,
Phil
09-15-2008 02:22 PM
The attributes that you mention are not defined by the IVI-Fgen class specification. They are specific to the NI-Fgen driver. However, you can set these attributes using the IviFgen_SetAttribute functions, if you know their attribute IDs.
This won't be any use to you, though, since you need to perform calibration. There are a number of functions required to complete an external calibration that are only available through the NI-Fgen interface. (niFgen_InitExtCal and niFgen_CloseExtCal, for example)
The class drivers are intended for portable applications that can be used with interchangable devices. Calibration is very device specific and could not be supported in a generalized class spec.
Since you couldn't use your calibration application with other devices* anyway, you should just use the NI-Fgen interface.
*it may work with other NI signal generators
09-16-2008 04:25 AM
I figured that was the case, just wanted some extra validation, thanks!
However, one question remains:
If it is not possible to select the Analog Path and filtering options through the class interface, what values are used on the real device when using the class interface?