Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

is there a way to set/get an instrument's attribute using a vi in labview?

How can we set/get an instrumment's attribute that is not specified in the standard ivi vi?.
Is there a vi to set only one ivi attribute? where can we get it?.
The problem is that this attribute is not present as an input in any function so we can not pass it as an input of the defined functions.

We generated with the CVI IVI wizard the template for a function generator and it includes the DUTY_CYCLE_HIGH attribute but this attrubute is not specified as an input in any function. Besides, in labview there's no vie to set a single attribute and the Configure Standard waveform vi from the function generator does not includes the duty cycle parameter.

Is it valid to modify the function to add
this parameter and then modify the vi in labview to include this parameter as an input to both the vi and the cvi function?
0 Kudos
Message 1 of 2
(2,961 Views)
You can set/get attribute directly in LabVIEW. Connect Property Node to your instrument handle. Property Node you can find in Application Control palette. See attached example.

Do not modify any class function. You can create a new specific function, which will set this attribute. For example prefix_ConfigureDutyCycle and create VI for this new function. But this is not necessary.

Regards,
Zdenek
0 Kudos
Message 2 of 2
(2,961 Views)