Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling channels while operating a multiple channel task with PXI-6363

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(784 Views)
Solution
Accepted by topic author AmitAble

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

ALERT! LabVIEW's subscription-only policy coming to an end (finally!). Permanent license pricing remains WIP. Tread carefully.
Message 2 of 9
(762 Views)

.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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 3 of 9
(754 Views)

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

0 Kudos
Message 4 of 9
(732 Views)

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

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 5 of 9
(724 Views)

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 

0 Kudos
Message 6 of 9
(689 Views)

@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?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 7 of 9
(676 Views)

actually, we currently have only waveform output enabled but we could expand the function to produce static voltage levels as well

0 Kudos
Message 8 of 9
(668 Views)

@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.

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 9 of 9
(651 Views)