LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

4 analog signal to read

Hai guyz,

How do I configure my DAQmx or coding so that it would be able to  read four signal at once. Im trying to read 4 analog voltage signal from my sensor. I appreciate any help.

 

Regards,
Newbie92

Download All
0 Kudos
Message 1 of 13
(3,367 Views)
Don't make it so complicated! All that you needed is a single task with one Create Channel, Timing, and DAQmx Read. The channels can be selected by clicking on Browse or entering Dev1/ai0:3. You then change the DAQmx Read to N channels.
0 Kudos
Message 2 of 13
(3,356 Views)

Hai Dennis_Knutson,

 

Could you show me the code example for it?

 

Regards,
Newbie92

0 Kudos
Message 3 of 13
(3,349 Views)
You've got the code. You just need to delete the extra tasks you have. Look at the examples as well.
0 Kudos
Message 4 of 13
(3,327 Views)

Hai Dennis_Knutson,

 

I tried what you recommended but I don't know how to connect this new Read task to the multiple formula block. One more thing, I forgot to mention that I want it to take the reading simultaneously from the 4 different sensors I've placed. Can that be done as well in the method you recommended above? 


Regards,

Newbie92

0 Kudos
Message 5 of 13
(3,320 Views)

Could you be kind to show me how it is done using the code I've attached?

 

0 Kudos
Message 6 of 13
(3,308 Views)

Anyone?

0 Kudos
Message 7 of 13
(3,277 Views)

Hi Newbie,

 

Dennis told you what to do. Have you even tried to change your code?

 

When you need examples: open the example finder! Look for DAQmx example VIs showing how to handle more than one channel…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(3,255 Views)

Hi GerdW,

 

I did try to find example in the Find Example in help but can't find one. Maybe I missed them. If you have one that is similar I'll be glad to study it. The attachment I sent was the unedited one. Here I'll show you what I tried. I got stuck on how to set the Reader task. Sorry for posting the wrong code.

Regads,
Newbie92

0 Kudos
Message 9 of 13
(3,240 Views)

Here's a quick example.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 10 of 13
(3,211 Views)