Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Physical Channel Via DAQmx Channel Property Node

Solved!
Go to solution

Hi,

 

I am working on a VI for frequency response analysis. The test should consist of two rounds. In each round different analoge output should be used. So I need to change the physical channel for analoge output task in the second iteration of the loop. I tried to do so by using DAQmx Channel Property Node. However the "PhysicalChanName" element of the node only accepts input channels! Furthermore, the "ChanType" element reads as "Analoge Input" and the "Change To Write" option is deactivated for this element. Any idea how can I fix this?

I am using NI PXI-4461 and LabView 16.0 64-bit.

 

ChannelChangeProblem.png

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

Hooman91,

 

The reason that you cannot see Analog Output options in the constant feeding into the property node is because you must right click on the constant, select I/O Name Filtering..., and change the I/O Type to Analog Ouput. However, this will most likely not fix your problem, because for DSA devices like the PXI-4461, you cannot set properties while the task is running

 

Is it possible to do two separate tasks for each of the rounds? That would be the simplest way to get around this issue.

 

Regards,

Hannah

Applications Engineering 

National Instruments 

www.ni.com/support 

0 Kudos
Message 2 of 4
(3,538 Views)

Thanks for your reply.

Initially I tried using two taks like below:

config-two-tasks.PNGThe first round is run smoothly but at the beginning of second round I get this error:

error-two-tasks.PNG

For the record after each round I call DAQmx stop task and clear task.

0 Kudos
Message 3 of 4
(3,528 Views)
Solution
Accepted by topic author Hooman91

I figured a way for my problem: I use two create virual channel VIs but connect both of them to the same task. Later when writing signal values for this task, one should simply append two waveforms and feed the 2D array into the DAQmx Write VI. (Needless to say, the N Chan N Sample variation should be selected.). Each subarray will then automatically be assigned to one of the physical channel.

 

However I have to say that this kind of design concept is not trivial at first. One should spend a lot of time figuring out the possible solutions. And NI does not provide sufficient documentation for that.

channel initialization.PNG

0 Kudos
Message 4 of 4
(3,491 Views)