LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assign signals to channel - DAQMX

Solved!
Go to solution

Hello everyone,

 

I want to create a task with 4 signals on 4 different channels. Simply wiring the singalarray to the the write.vi for N-Channels_N_Samples assigns the signals to random channels.

Every time I start the VI the signals are applied to a different channel and not as they are positioned in the array.

 

Is there a way to assign channel1 to signal1?

0 Kudos
Message 1 of 5
(2,498 Views)

They should be in the order that you added your channels to the task.  Could you share some code so we can see if we can find your issue?


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
0 Kudos
Message 2 of 5
(2,494 Views)
Solution
Accepted by topic author s.h._tech

Hi sh,

 


@s.h._tech wrote:

Is there a way to assign channel1 to signal1?


The signals are assigned to the channels in the very same order as the channels are defined within the DAQmx task.

All you need to do is to define the DAQmx task with your channels in the correct order…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(2,493 Views)

When selecting multiple channels (AO1:3) in the control they correspond in this order?

  • AO1 - Signal1 (position 0 in the array)
  • AO2 - Signal2 (pos 1 in array)
  • ...

 

0 Kudos
Message 4 of 5
(2,487 Views)

@s.h._tech wrote:

When selecting multiple channels (AO1:3) in the control they correspond in this order?

  • AO1 - Signal1 (position 0 in the array)
  • AO2 - Signal2 (pos 1 in array)
  • ...

 


That is correct.


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
0 Kudos
Message 5 of 5
(2,472 Views)