LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Create & Configure Channel

Hello, 

 

I have a DAQ board which accepts universal inputs. I have to design a configuration screen for all the channels available for properties based on type of input Strain, Voltage, Current, Thermocouple Etc. Based on this I have to do Data Acquisition.

 

I have been trying with DAQmx Task create and Channel Create for past few days but unable to find a solution. Can anyone suggest. My device is NI9219 Universal module on a NI9174 Chassis.

0 Kudos
Message 1 of 4
(2,817 Views)

Can you show us what you have tried so far?  You didn't say what the specific problem is.  Do you get an error?

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 4
(2,806 Views)

Hi,

 

I don't have much to show cause nothing so far worked. To explain a bit more. 

 

My device have 4 Universal Analog Input channels ( NI9219  in a NI9174 Chassis)

 

I need to configure each channel for type of input( Type of Analog Input)  and specific properties to that type of input. E.g. Bridge configuration for Bridge based sensors or Thermocouple setting . I tried using create Virtual channel Vi but that do not allow to select type of input programmatically. Until I do that I cannot get full control of the properties. I do not want to use Max for creating channels or tasks everytime. One reason can be because Create Virtual Channel is a polymorphic VI. 

The workflow have to be

 

Select Channel > Select type of input > Configure property based on type of input > add to task . This have to be done 4 times for 4 channels.

 

On Execution the DAQ will read this task for measurement.

 

Once all the channels are configured I need to create a task . Based on this my Data Acquisition will work. 

 

0 Kudos
Message 3 of 4
(2,802 Views)

Take a look at this example and see if it helps:  (download the zip file)

 

http://zone.ni.com/devzone/cda/epd/p/id/899

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 4
(2,773 Views)