Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Trigger Mode

I have been referred back to the User manual, and cannot find this question answered anywhere:

 

What are the integer values for the four trigger modes? The PXI 5402 Specification *seems* to imply that this is the order:

1. Single

2. Continuous

3. Stepped

4. Burst

 

Except elsewhere, in the niFGEN "Configure Trigger Mode" doc, it specifically states that the default value is Continuous, which is "1". 

 

http://zone.ni.com/reference/en-XX/help/370524R-01/nifgenlv/nifgen_configure_trigger_mode/

 

I thought this was then suggesting that "Single" is actually 0, but that vaue is not valid. So what are the integer values for the other three modes?

 

Thanks! 

 

0 Kudos
Message 1 of 7
(5,915 Views)

Hi Jvara,

 

Sorry, I didn't understand your question earlier. It depends on the function call you are using.

 

If you are using the property node (this is equivalent to changing the attribute in C), then the mapping is as follows:

 

enum1.PNG

 

This can be seen in the help files as follows:

 

triggerVI.PNG

 

If you are using the niFgen Trigger Mode.vi (this is equivalent to calling the niFgen_ConfigureTriggerMode function in C)  then the mapping is as follows:

 

enum2.PNG

 

This can be seen the help files, in the link you have provided above:

http://zone.ni.com/reference/en-XX/help/370524R-01/nifgenlv/nifgen_configure_trigger_mode/

 

Jason L.

 

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 7
(5,901 Views)

Jason,

I do not believe this is correct. I am calling niGEN.ConfigureTriggerMode, using the example "Sweep Generator", and a value of "0" as the second parameter gives an error message of "Invalid value for parameter or property. Invalid Trigger Mode". Also, note that if you do follow the help file link (below), it DOES list the four different modes, but does *NOT* specify what their respective integer values are. 

 

http://zone.ni.com/reference/en-XX/help/370524R-01/nifgenlv/nifgen_configure_trigger_mode/

 

Thanks

0 Kudos
Message 3 of 7
(5,885 Views)

Hi jvavra,

 

Are you able to use any of the defined values as the parameter? For instance, NIFGEN_VAL_SINGLE? Or does that throw an error too.

 

Regards,

 

Jason L.

Product Support Engineer
National Instruments
0 Kudos
Message 4 of 7
(5,866 Views)

This throws an error too. These values are not defined in the VB project, only in the C version of the project. 

0 Kudos
Message 5 of 7
(5,807 Views)

Are you using the niFGEN wrapper? It can be found here, if you aren't already using it. http://www.ni.com/product-documentation/14434/en/

 

The wrapper maps the settings as follows:

 

Single 1

Continuous 2

Stepped 3

Burst 4

 

The order shouldn't change regardless of which function you are using. Are you able to call the function at all without errors?

 

Regards,

 

Jason L. Lii

Product Support Engineer
National Instruments
0 Kudos
Message 6 of 7
(5,792 Views)

Yes, I am using the .NET NIFGEN wrapper. Thank you for the clarification of the wrapper's mapping of the trigger modes. I see now where these declarations are made toward the end of the wrapper file. Thanks! 

0 Kudos
Message 7 of 7
(5,787 Views)