LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure PXI-2567 trigger edge in CVI

I need some help configuring the trigger edge for a PXI-2567 using Labwindows/CVI.  I have been able to successfully create and execute a scan list using both the ni-switch and daqmx APIs.  However, currently the PXI-2567 triggers on the falling edge of an input trigger.  I need to configure it to trigger on the rising edge of an input trigger.  Every function I could find in the daqmx API for configuring the trigger edge gave a non-fatal runtime error, and I could find no such functions in the ni-switch API.
 
Any help configuring the input trigger edge on the PXI-2567 using Labwindows/CVI would be appreciated.
 
Thanks
0 Kudos
Message 1 of 3
(3,400 Views)

Hi Jon,

You can configure the trigger edge property using the niSwitch_SetAttributeViInt32 function.  You can find the function in CVI by selecting Instruments » National Instruments Switch » Configuration Functions » Set/Get/Check Attribute » Set Attribute.  Under Attribute ID, select Scanning Configuration » Trigger Input Polarity.  You can then set the Attribute value to NISWITCH_VAL_RISING

For more details, the C reference help file (switchCRef.chm) is installed with the driver and can be found under … Program Files\IVI\Drivers\niSwitch\Documentation.

I hope this helps. 



Best Regards

Hani R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,380 Views)

Worked great!

 

Thanks!

0 Kudos
Message 3 of 3
(3,378 Views)