LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using 2 analog inputs on usb6251 simultaneously

Solved!
Go to solution

hello,

Is it possible to use 2 analog inputs of usb6251 simultaneously? I want to use 2 AI at same time and show the output.

But i am not quiet sure. Any suggestions are appreciated.  

0 Kudos
Message 1 of 7
(1,459 Views)
Solution
Accepted by topic author Radhika_Nimbalkar

Hi Radhika,

 


@Radhika_Nimbalkar wrote:

Is it possible to use 2 analog inputs of usb6251 simultaneously? I want to use 2 AI at same time and show the output.

But i am not quiet sure. Any suggestions are appreciated.  


Yes, that's possible.

You just need to put two channels into the AI DAQmx task and switch the DAQmxRead function to "n channels…"!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(1,455 Views)

Thank you.

Yes that way is great option.I want to know one more thing. How can i show  2 AI output in different graphs? Is it possible to get two different graph for 2 AI and show output at same time?

 

0 Kudos
Message 3 of 7
(1,436 Views)

Hi Radhika,

 


@Radhika_Nimbalkar wrote:

How can i show  2 AI output in different graphs? Is it possible to get two different graph for 2 AI and show output at same time?


So you have an array of elements and you want to show the elements using separate indicators?

Then you need to index the elements and wire them to their indicators!

 

(This is basic LabVIEW stuff: you just need the IndexArray function!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,424 Views)

Hello,

I am measuring 2 analog signals one is amplified signal and one is without amplification. I want to check both signal same time and show result of both signals simultaneously on different graphs.I am going to use the solution you suggested but unable to understand that how to take two outputs from daqmx read?

 

0 Kudos
Message 5 of 7
(1,418 Views)
Solution
Accepted by topic author Radhika_Nimbalkar

Hi Radhika,

 


@Radhika_Nimbalkar wrote:

unable to understand that how to take two outputs from daqmx read?


As said before:

  1. configure the task to contain 2 channels
  2. configure DAQmxRead to "n channels" mode to read samples for all channels in the task

What have you tried and where are you stuck?

Did you opened any examples from example finder to learn DAQmx basics?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(1,394 Views)

Thank you for help.

Yes I read DAQmx basics and tried your suggestion. I will test it on hardware once I finish my hardware setup and see if I get expected result.

Thank you again for your time.

0 Kudos
Message 7 of 7
(1,390 Views)