Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy a DAQmx channel's configuration into a new virtual channel.

Here's my situation:
 
I have a task created in MAX which contains an abitrary number of channels with arbitrary configurations (i.e. some may be  configured in MAX as voltage inputs, others as current, RTD, etc.) which I'm using as a template.  At run-time (LabView 8.2 & DAQmx 8.3), I need to create a new virtual channel in another task which duplicates exactly the configuration of one channel in my template task.  What is the best way to create the new virtual channel?
 
DAQmx Create Channel.vi doesn't seem to be a good option, as I would need to have prior knowledge of the channel configuration (AI Voltage, AI Temp RTD, etc) of the channel in my template task.  It could work, but I would have to handle each possible channel configuration type differently. 
 
Thanks.
0 Kudos
Message 1 of 2
(2,955 Views)
Hello MarkMoss,

It looks like you want to configure a channel with the utilizing the channels setting you have in a Task that you created in Measurement and Automation Explorer. Usually for an application like this I would start looking at the property nodes available in LabVIEW. In the LabVIEW Help, In the Contents tab, under Property and Method Reference>>DAQmx Channel you will see the list of properties you can use.

For your particular application, there is no way to configure the type of measurement you will be making. There is a property node that would read the Measurement Type from your DAQmx Channel, but nothing to set the type.

Perhaps you can consider the use of a case structure. Based on which type of measurement is selected, it will configure the channel with the specified channel inputs and the measurement type.

I hope these recommendations will help you with your application or at least point you to the possibilities.

Regards,
  Sandra T.

Applications Engineer | National Instruments
0 Kudos
Message 2 of 2
(2,931 Views)