Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

State dependent error messages with IVI

Hi Mark,

 

Although ConfigureEdgeTriggerSource function has a trigger source parameter, but it does not accept a parameter string such as "AC Line" or "Line". 

 

To configure the AC Line as the trigger source, you need to call ConfigureTrigger function and specify the trigger type to AC Line, take the following as an example: 

 

tktds2x0_ConfigureTrigger(vi, TKTDS2X0_VAL_AC_LINE_TRIGGER, 0); 

 

The above call will configure the instrument to work in edge trigger mode with AC Line as the trigger source, and the hold off is set to 0. 

 

Besides, when the trigger type is set to AC Line, any changes to trigger source will be denied, an error: IVI_ERROR_INVALID_CONFIGURATION will be returned. And that's the reason why you got "Not a valid configuration" error. 

 

I don't have instrument to verify this, but I believe that's what happens behind the function call.

 

Hope this helps.

 

Regards,

Brandon 

Message 11 of 11
(878 Views)