02-01-2006 01:40 PM
02-01-2006 03:23 PM
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.
02-01-2006 03:57 PM
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."?
02-01-2006 04:58 PM
02-02-2006 08:22 AM
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....
02-02-2006 09:14 AM
02-02-2006 09:17 AM
02-02-2006 09:28 AM
02-03-2006 07:28 AM
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...
02-03-2006 08:23 AM