06-24-2024 07:18 AM
I'm using a .NET script to automate operations with the device and I'm curious to know if there is a way to control the channels of an analog output task without closing the task.
for example, I have set a task for analog output and assigned 3 channels with their own parameters.
later in my program I want to disable one of the channels and keep the other channels active.
is there a way to do it? I couldn't find a way in NI-MAX
Solved! Go to Solution.
06-24-2024 08:53 AM
I don't think you can remove a channel from an existing task, you would need to clear the task and create a new one.
However, it'd often be suitable to start generating a constant 0.0 V output with the channel you intend to "disable". Or if not 0.0 V, some other output will probably cause the kind of neutral behavior you'd want to produce if you were able to disable.
-Kevin P
06-24-2024 09:11 AM
.NET examples are available with the DAQmx installation (if selected) - https://www.ni.com/docs/en-US/bundle/ni-daqmx-.net-framework-4.5.1-class-library-getting-started/pag...
My recommendation concurs with Kevin's.
06-25-2024 08:47 AM
thank you for your reply, what about running several tasks in parallel?
if I will have one running task per channel, I could control each channel individually.
assuming it is possible
06-25-2024 09:56 AM - edited 06-25-2024 09:57 AM
6363 has only one Timing Engine, which in turn means there can be only one "running" task for each type. In your case, there can be only one running AO task.
Only some DAQ with multiple timing engine support simultaneous task - https://www.ni.com/docs/en-US/bundle/ni-daqmx/page/simultaneoustasks.html
06-26-2024 12:35 AM
thank you santo_13, I saw this article here and had some hope that I could apply this in my solution.
the article claims that setting the task to be a software timed task, will allow having one task for each analog output channel
06-26-2024 08:21 AM
@AmitAble wrote:
thank you santo_13, I saw this article here and had some hope that I could apply this in my solution.
the article claims that setting the task to be a software timed task, will allow having one task for each analog output channel
Yes, you can have several software-timed tasks; what kind of signals do you generate? Are they static voltage levels that change without time criticality instead of waveforms in each channel?
06-27-2024 12:44 AM
actually, we currently have only waveform output enabled but we could expand the function to produce static voltage levels as well
06-27-2024 11:18 AM
@AmitAble wrote:
actually, we currently have only waveform output enabled but we could expand the function to produce static voltage levels as well
If you need waveforms, then you need hardware-timed tasks, which means you can have only one task.