LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create analog channels in Labview

Solved!
Go to solution
I need to create 4 analog pressure channels through PCI-6229 card in Labview v8.2 and I've to define these channels so that labview can communicate with the card... But I'm failing to do so...

If you've any idea then please e-mail me back...
Waiting for your valuable guidance...
0 Kudos
Message 1 of 9
(4,397 Views)

Hi Saurabh A...,

where do you have problems? Can you show what you have done so far? Did you search in the example finder for a solution for you?

 

Mike

0 Kudos
Message 2 of 9
(4,389 Views)

This looks a good place to start : "Cont Acq&Graph Voltage-Int Clk.vi"  except that it's for only one channel 😞

 

So do the following:

1) Delete the first DAQmx vi

2) Create a control for the "task/channels in" connector of the DAQmx timing vi

3) In that control select the "My-4-Channels" task I've made

 

Run the vi 🙂

 

 

The attached file contains one DAQmx task for the four channels.

You can import that file in the MAX, all channels will be created.

Be aware that I used all defaults in that task, so if you differential inputs or so you have to change that.

0 Kudos
Message 3 of 9
(4,380 Views)
The example you mention supports multiple channels and no modification is required or an import into MAX.
0 Kudos
Message 4 of 9
(4,375 Views)

You're right Smiley Surprised

 

I was first confused by the fact that I could see only seperate channels and no predefined DAQmx tasks.

I'm an tasks addict you know Smiley Mad

From the help I got: 

By entering "Dev1/ai0:3" in control "Physical Channel" one can read several channels.

By entering "Dev1/ai0,Dev1/ai4:8" you can even read non consecutive channels.

 

Thanks for triggering my curiosity Dennis Kn... Smiley Wink

0 Kudos
Message 5 of 9
(4,363 Views)
Solution
Accepted by topic author Saurabh Agrawal

thanks to all of u for reply

but still my problem is not solved i want yo define the four channels at a time not individually.

if possible please sen me few screen shots.

thanks

waiting for ur guidence

0 Kudos
Message 6 of 9
(4,331 Views)

Hello Saurabh,

 

By entering "Dev1/ai0,Dev1/ai4:8" you can even read non consecutive channels.

Of course the name "Dev1" should match the name of your DAQ card, but if you have only one card this is the default so it should'nt be a problem Smiley Wink

 

Enter the above string in the channels name and those 6 channels will be read simultanously, so I don't see what you problem is ?Smiley Indifferent?

0 Kudos
Message 7 of 9
(4,323 Views)

i am using pci-6221 as my daq card and labview version 8.2.this card is giving the constant signal input of 10.5 volts to input analog channel AO on pin 68 and67.why it is showing 10.5 even i havent connect any input.i am using k type thermocouple and after signal conditioning with tl0804 i need to interface it with AI channel 0.i dont know about the output drive current at any of the output pins of this card.i need to actuate an electric rod which needs 24 volts DC.i give the input to AI pins with variable dc power supply after reaching the limit i set(eg:2v) it instantly jumps to 10.5 volts.

0 Kudos
Message 8 of 9
(4,182 Views)
Don't hijack unrelated threads. Stick to your original.
0 Kudos
Message 9 of 9
(4,152 Views)