08-17-2015 12:39 PM - last edited on 12-19-2024 09:24 AM by Content Cleaner
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".
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!
08-17-2015 01:44 PM - last edited on 12-19-2024 09:24 AM by Content Cleaner
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:
This can be seen in the help files as follows:
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:
This can be seen the help files, in the link you have provided above:
Jason L.
08-17-2015 02:03 PM - last edited on 12-19-2024 09:24 AM by Content Cleaner
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.
Thanks
08-17-2015 03:19 PM
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.
08-18-2015 06:40 AM
This throws an error too. These values are not defined in the VB project, only in the C version of the project.
08-18-2015 10:24 AM - last edited on 12-19-2024 09:25 AM by Content Cleaner
Are you using the niFGEN wrapper? It can be found here, if you aren't already using it. https://www.ni.com/en/support/documentation/supplemental/13/national-instruments--net-support.html
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
08-18-2015 10:39 AM
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!
12-19-2024 10:02 AM
Use NI I/O Trace to see what values are being passed down from the .NET bindings to the actual NI-FGEN driver. This way you can diagnose if the problem truly is where you seem to assume it is.
If the values on the API are indeed correct, then verify they are valid for the instrument model you are using. Not every NI-FGEN device supports every feature.