LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i configure multiple channels using daqmx?

Hello,
i'm trying to acquire signals from strain gages, i'm using an scxi 1000 chassis with scxi 1600 and 1520 modules.
How can i configure the channels with different settings?
Thanks
0 Kudos
Message 1 of 9
(3,776 Views)
The easiest way is through the Measurment & Automation Explorer (MAX) by creating a DAQmx Task and configuring each channel differently. You can select multiple channels for the task then change each one to the configuration needed.

If you need help getting this setup, let us know and we can walk you through it.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 9
(3,770 Views)
Hi,
no problem configuring channels in MAX, but i'm trying to bulid an application in Labview with the possibility to configure the channels.
0 Kudos
Message 3 of 9
(3,769 Views)
So you want to be able to configure/reconfigure the channels from a front panel in LabVIEW?

This can be done, but is not really a trivial task. There are caveats as well. The main one being you can't reconfigure a channel without stopping all the tasks on that card. (at least I haven't found a way)

Can you give a few more details?


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 4 of 9
(3,764 Views)
 
Yes, i need to configure channels from a front panel. It's not a problem if i can't reconfigure the channels when the vi is running, i just need to set them at the beginning (each channel with different settings).
0 Kudos
Message 5 of 9
(3,758 Views)
The attached VI shows basically what you need to do to programatically create a multi-channel task in LabVIEW where each channel can be configured with its own values.

This creates an empty task, then configures each channel and adds it to the task. This would probably work better using arrays and For loops, but I just threw this together quick.

What you'll need to do is come up with a dialog that the user can enter all the configuration values and pass them to the "Create Channel" VIs and the Channel property nodes.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 6 of 9
(3,749 Views)
Thanks a lot
0 Kudos
Message 7 of 9
(3,739 Views)
One more question,
are the filters settings reconfigurable only when the task is stopped right?
0 Kudos
Message 8 of 9
(3,734 Views)


@Michael80 wrote:
One more question,
are the filters settings reconfigurable only when the task is stopped right?


Probably, but I"m not sure. I usually just try it and see what happens. You'll either get an error or not, it won't hurt anything.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 9 of 9
(3,724 Views)