LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read 2 channels simultaneously with DAQ Assistant

Hey NI community, 

I am developing a VI that acquires flowrate data from 2 flowmeters connected to a 

NI 9361 Digital Input Module on my CRIO device. I am able to successfully monitor the readings for each channel on NI MAX, however, when I am using DAQ Assistant to monitor them within a VI, I am getting only one channel's reading at a time (the other displays 0 throughout the run of the experiment). Currently, how I have the VI set up, I have 2 separate DAQ assistants - one for each channel. Here is the configuration for them, and also attached is the VI. 

daq1.PNG

daq2.PNG

 

I wonder if I am encountering this issue because of using 2 separate DAQ Assistants at the same time, however, using just 1, with both channels added to it has not worked for me either.

If anyone knows how to resolve this problem, I would be so thankful!

Looking forward to hearing your feedback.

Thank you!

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

The Dreaded DAQ Assistant exists to show how easy it is to do Very Simple, Not Complicated, Data Acquisition with LabVIEW.

 

Learn DAQmx.  It is easy, it is fun, it is powerful, and with it, you can easily solve your problem.  NI has a great series of tutorials on DAQmx.  My favorite is called "Learn 10 Functions in NI-DAQmx Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications .  Skip right over the section on the Dreaded DAQ Assistant, and go right to the part that shows you how to get started.

 

Bob Schor

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

Thank you for your reply!

I did try DAQmx as well, but I am unable to get frequency measurements for my flowmeters with it. I tried it with the session type set to both counter input and digital input. In both cases I am shown a 0 for frequency. 

I have been playing around with different configurations for session type, and while Counter Input Cnt Edges is giving me non-zero readings, I do not know how to interpret those numbers, and the specification document for my flowmeters does not have any information regarding that either. 

0 Kudos
Message 3 of 4
(1,328 Views)

Hi @viamotors,

 

Try to use this configuration to have both channels with one DAQ assistant.

As you can see, you are able to select the channel with the convert from dynamic data .

Let me know if it works.Channels.PNG

Staff Technical Support Engineer
0 Kudos
Message 4 of 4
(1,311 Views)