annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 4
2 687 Visites

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

0 Compliments
Message 2 sur 4
2 685 Visites

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 Compliments
Message 3 sur 4
2 635 Visites

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 Compliments
Message 4 sur 4
2 620 Visites