Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Use a USB 6009 to acquire an analog signal while producing a digital signal simultaneously

Thanks for readying this post.

 

I would like to be able to acquire a signal for 15 seconds at the same time produce a 3 second long pulse on a digital out pin. I want to measure the analog signal while producing the digital signal and after the digital signal was produced. I need the acquisition to be continuous. Is there something I am missing. I have read a large number of forum posts but I have seen no one talking about this. Help would be appreciated. I would post the code I have but it has all been unsuccessful.

0 Kudos
Message 1 of 2
(2,360 Views)

Hello BeanFest,

 

I would suggest you tackle the development of this application by steps, so it's easier for you to check that every component works, and then be able to get it all working at the same time.

 

  1. Acquire a signal for 15 seconds: Review the example located in LabVIEW: Help > Find Examples... > Hardware Input and Output > DAQmx > Analog Input > Voltage - Finite Input.vi
  2. Produce a 3 second long pulse on a digital out pin: Review the example located in LabVIEW: Help > Find Examples... > Hardware Input and Output > DAQmx > Digital Output > Digital - Finite Output.vi
  3. Measure the analog signal while producing the digital signal and after the digital signal was produced: Merge the past two steps and check the VI works when doing both tasks in parallel.
  4. I need the acquisition to be continuous: Review the example located in LabVIEW: Help > Find Examples... > Hardware Input and Output > DAQmx > Analog Input > Voltage - Continuous Input.vi

I suggest you check out the document Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications for more information on how the DAQmx API works.

 

The best of luck with your development!

0 Kudos
Message 2 of 2
(2,333 Views)