Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Do I really need to create virtual channels in data neighborhood in order to access my pci 6034E?

Hello all,
 
This may sound a little weird, but I would like to know how to configure my 6034E without having to create virtual channels in data neighborhood. Reason being, the data is often lost when users update or search for new instruments in Measurement and Automation.
I have tried using the AI CONFIG.VI, which gives me all the attributes I need...set channel name, device name, device channel, input mode, sensor/actuator type ect..  When I connect the AI READ.VI the value read back is incorrect. Matter of fact as an exapmle, the power supply could be off and I still read 10 Volts. But when I have created a virtual channel in data neighborhood, the data read back is correct.
 
Is there another way to read back data but not have a virtual channel in the data neighborhood?
 
Thanking you in advance,
Demo
0 Kudos
Message 1 of 14
(5,226 Views)

No, you do not have to create virtual channels. Whether you use DAQmx or traditional DAQ, you can use the physical channel. Since your board is supported by DAQmx, I would recomend that you use that as long as you have LabVIEW 7 or higher. To define a physical channel, the syntax is like Dev1/ai0. For consecutive channels, use Dev1/ai0:1. For non-consecutive channels, use Dev1/ai0,Dev1/ai2.

If you have to use traditional DAQ because your version of LabVIEW doesn't support it, the syntax is similar (i.e. 0:1) if each channel is configured the same. If not, you would use a different element for each in the channels array and corresponding elements in the input limits and coupling arrays.

Have you tried any of the shipping examples? What happens when you read a channel in MAX.

0 Kudos
Message 2 of 14
(5,200 Views)

Well...
The LabView version I am using is 6.1.
Old I know, but the powers that be, see no reason to upgrade.

That being said...Yes, I have looked at some of the Labview examples.

When I run them, I have no choice but to set the device channel to a virtual channel I have already created in the data neighborhood.
Otherwise I get the error -10001 occurred at AI Group Config.

When I read a value in MAX, it works fine but I do not want to have to use the data neighborhood.

I have taken over a cycler project, and the company plans to send the software abroad. The old engineer setup about 50 virtual channels and my boss does not want us to have to go and manually set them up each time. I know that they can be saved, but that does not help my cause due to the fact it is time consuming and may cause complications down the road. It seems preferable to hard code the data in the Labview code.

 

I have spent the day messing around with my 6025e but if I do not use a virtual channel, the data comes back incorrect.

 

"If you have to use traditional DAQ because your version of Labview doesn't support it, the syntax is similar (i.e. 0:1) if each channel is configured the same. If not, you would use a different element for each in the channels array and corresponding elements in the input limits and coupling arrays."

 

I have not looked deep enough to see if each channel is configured the same or not. I am simply trying to start with one channel, reading back a voltage from a variable power supply. Once I can correctly read the voltage, without having a virtual channel declared, my problems should be over. What kind of element for each channel should I declare? Have you an example with "corresponding elements in the input limits and coupling arrays."?

0 Kudos
Message 3 of 14
(5,192 Views)
That I don't understand. I have never used a virtual channel and have never had a problem. Can you completely delete the virtual channel and see if works then?
0 Kudos
Message 4 of 14
(5,186 Views)

It's funny that you should say that, because I don't see how it could work without a virtual channel.

When I remove my virtual channel, I get the error -10001, -10002...depending on the input string for the channel.

I am using AI ONE PT.VI, as well as AI CONFIG.VI.


When I use a virtual channel it works fine and i get the right readings...

When I don't, I get errors...

I am wondering how you configured it to work without a virtual channel....

0 Kudos
Message 5 of 14
(5,181 Views)
I just put the channel number (i.e. 0) into the channel control.
0 Kudos
Message 6 of 14
(5,175 Views)
I did that a long lomg time ago... this is what i get...
 
Warning -10403 occurred at an unidentified location.
 
Possible reasons:
 
NI-DAQ LV:  The specified device does not support the requested action (the driver
 
recognizes the device, but the action is inappropriate for the device).
Maybe it is important to mention that I am using the cable 1 of 2...1- 50 and not 50 - 100???
 
 
0 Kudos
Message 7 of 14
(5,172 Views)
I found a little bug in my code.
I no longer get errors...but the data i read back is off...it almost seems to display random data...
0 Kudos
Message 8 of 14
(5,170 Views)

FYI

I found out why the data I am reading was off. It seems Labview prefers to be in differential mode, instead of ref single ended mode. When I switched over and rewired, it worked. Unfortunately this does not help me, as I cannot rewire the cycler connections...

It seems the only way I can read correct data without creating virtual channels is using differential mode...If i use ref. single ended, the data read back is off...has anyone else noticed this?
0 Kudos
Message 9 of 14
(5,159 Views)
LabVIEW will acquire the data in any mode that you specify. On AI Config, you have an input called coupling & input config. Set the input config to single ended. You see, this is what creating a virtual channel does. When you create it, you set gain, coupling, config, etc. When you use a physical channel, none of this iinformation is used and you get the defaults.
0 Kudos
Message 10 of 14
(5,154 Views)