LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Voltage Triggering

Hi everyone, 

 

I'm working on my senior design project, the system has two linear encoders and analog input, I'm using DAQmx to acquire data. I want to start reading voltage ( analog input) whenever I mover one of the encoders so basically triggering voltage. so is it possible to trigger using two different sources? in this case encoder_X and encoder_Y?

 

 

0 Kudos
Message 1 of 4
(1,953 Views)

The vi I attached only will acquire data when I move only one encoder, depending on the source I assign to it. 

0 Kudos
Message 2 of 4
(1,951 Views)

I can't look at your code because I am running LV2017 here but...

 

Why can't you OR the two inputs for your trigger?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(1,901 Views)

Hello Mariam,

 

You cannot select multiple ports for the trigger source of the DAQmx Trigger.vi

 

However, you can either plug both encoder triggers into a different trigger line that you could sense (directly or with an OR gate in between).

Or, you can internally connect the triggers with a DAQmx Connect Terminals VI.

 

Regards,

 

Michael Pahl

 Applications Engineer

 National Instruments

 www.ni.com/support 

0 Kudos
Message 4 of 4
(1,886 Views)