10-23-2006 01:33 PM
10-24-2006 10:06 AM
02-21-2008 02:26 PM
So there is no way to remove channels without destroying the task?
02-22-2008 03:28 PM
Hello Tyzach,
There are several different scenarios:
1. If you want to add a channel to a task after the task has been started, without stopping it, then this is not possible.
2. If you want to remove a channel from a task after the task has been started without stopping it you can do this through software. This isn’t possible to do this explicitly, but you could do this in software by adding in some analysis to ignore the data from the channel you want to remove from the task. Technically you’d still be acquiring from the channel, but you wouldn’t see the data in your analysis.
3. If you want to add in channels before the task is started or after stopping it then you can do this by calling multiple DAQmx Create Channel VIs and using the “task in” input to add the new channel to the given task.
4. If you want to remove a channel from a task before it has started or after stopping it then you basically have to create the channel over again.
I hope one of these situations covers what you want to do. If not it would be helpful if you can describe what you’re trying to do for a more specific answer.
Have a good weekend!
02-23-2008 07:37 AM
Hi c
When refering to,measurment studio can we drop the reference to vi's as we are not using Labview.
"DAQmx Create Channel VIs".
NI should stop ramming Labview down our throats when using other tools.
Look at the CVI help file. You would think we was using Labview.
Ta
Colin
02-25-2008 07:25 AM
02-26-2008 02:03 AM
Can you just stop the task and make changes then restart the task.
Colin
02-26-2008 10:36 AM
Hi Colin,
You can modify the task after stopping it. Brooks discussed it in options 2-4 of his post. Did you have any problems when you tried it?
02-27-2008 08:24 AM
02-27-2008 02:30 PM
Since I was concerned with creating and deleting alot of tasks during my anaylis, (Is this a valid concern?) I decided to create two tasks - one for multi-channel/multi-sample, one for single sample reading.
Was there a better way to do this?