Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Change input channel on DAQmx

Hi all,

this sounds like an easy task but hey.

I have a on the fly created DAQmx task with one analog input (AI1), I want to change that to AI2.
How on earth?
I can't change the channel, the only thing that will happen is append.
I can't create a new task where I copy setting from my old task because it's an on the fly task.
The only thing I can do is recreate the task from scratch.

Does anyone know how to do this (in LabVIEW)?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 1 of 2
(2,884 Views)
Hi Ton,
 
Unfortunately this is not possible without creating a new task. A workaround would be acquireing data from all wnated channels and only select the data from the channel you want to acquire at that point. But I am aware that this will create quite some overhead and will decrease the maximum sample rate with the amound of channels you want to acquire (in case of a Multiplexed DAQ board).
 
The only other solution (which you already mentioned) would be a setup in which you recreate your task whenever you need a different channel. Again this will not bee a seemless transition from one channel to the other.
 
Regards,
 
RikP - National Instruments Applications Engineering
Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 2 of 2
(2,849 Views)