 DucPhung
		
			DucPhung
		
		
		
		
		
		
		
		
	
			05-21-2018 11:15 AM
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
 oscarfonseca
		
			oscarfonseca
		
		
		
		
		
		
		
		
	
			05-22-2018 11:25 PM
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!