Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure PXI-2567 to Trigger on Rising Edge using LabWindows/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
(6,648 Views)

Hi JonRice,

You can configure the scan list to execute on the rising edge of an input trigger.  Here are the Labwindows/CVI and LabVIEW functions you would want to use to retrieve, specify or verify the edge of a digital signal that advances to the next entry in a scan list.

NI-DAQmx C Property: More >> Advance >> Digital Edge >> Edge
You can get/set/reset this property using:
DAQmxGetDigEdgeAdvTrigEdge
DAQmxSetDigEdgeAdvTrigEdge
DAQmxResetDigEdgeAdvTrigEdge

NI-SWITCH C Attribute: NISWITCH_ATTR_TRIGGER_INPUT_POLARITY
You can get/set/check this attribute using:
niSwitch_GetAttributeViInt32
niSwitch_SetAttributeViInt32
niSwitch_CheckAttributeViInt32

NI-DAQmx LabVIEW Property: More:Advance:Digital Edge:Edge
DAQmx Trigger Property Node
Short Name: Adv.DigEdge.Edge

NI-SWITCH LabVIEW Property: Trigger Input Polarity
niSwitch Property Node
Short Name: Trigger Input Polarity

Hope this helps!  Let me know if you have further questions.

Chad Erickson
Switch Product Support Engineer
NI - USA

0 Kudos
Message 2 of 3
(6,642 Views)
Chad
 
That's exactly what I was looking for.
 
Thank you!
0 Kudos
Message 3 of 3
(6,634 Views)