LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple VI that trigger on digital I/O and sample analog data?

Hi,

Im supposed to collect some analog data from a digital input. Im using a NI DAQ 6351. I got my digital input which is a PWM control LED signal. I would like to trig when my 1. LED goes high and then collect the data analog from a photodetector? 

Any great ideas to do this? 

Thanks in advance and have a nice weekend! 

//A

0 Kudos
Message 1 of 3
(2,689 Views)
The device has digital triggering capability. Have you looked at the examples? What exactly have you tried?
0 Kudos
Message 2 of 3
(2,676 Views)

You have a powerful DAQ card and a pretty simple application but you didn't say what kind of signal you're measuring.  What's the voltage?  What frequency do you need to sample at?   Is it single-ended or differential?  What is the trigger signal?  TTL or analog?  What are you going to do with the data?

 

As you answer these questions you can set up your DAQ task and related code.  The place to start is the examples (Help > Find Examples...).  Look in the Hardware > DAQmx > Analog Input folders or do a search.  Play around a bit  Smiley LOL and then post whatever code you come up with if you get stuck.

 

Also take advantage of the wealth of NI-DAQ tutorials out there:  http://www.ni.com/tutorial/3116/en/

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 3 of 3
(2,667 Views)