ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using PFI0 to Generate an Event

Hi all,

I am using cDAQ-9137 to acquire some analog voltage on NI-9220. The acquisition would stop when the application receives a command via a TCP/IP connection and also via a signal wired to the PFI0.

 

I created an event structure to handle the software command. However, I am having a problem detecting a PFI0 signal and then generate another event to perform the same thing. Can you show me an example on how to do this?

 

Thank you very much,

David

0 Kudos
Message 1 of 2
(2,896 Views)

Hello DucPhung,

 

I recommend you check out the following document: Configuring a Stop Trigger using NI-DAQmx for LabVIEW.

 

I believe the easiest way to implement this solution is using a stop trigger with your PFI0 line, and use the DAQmx Stop Task VI with your TCP/IP connection. That way the task will end one way or another.

 

Other more complex option is creating a digital input tas and using the Register Events to use it as a Dynamic event in your event structure, which perhaps is more complicated to do the task you have in hand.

 

All the best!

0 Kudos
Message 2 of 2
(2,852 Views)