03-04-2019 10:19 PM - edited 03-04-2019 10:26 PM
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?
03-04-2019 10:24 PM
The vi I attached only will acquire data when I move only one encoder, depending on the source I assign to it.
03-05-2019 11:54 AM - edited 03-05-2019 11:54 AM
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?
03-05-2019 02:51 PM
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