09-03-2008 07:59 PM
Hi,
I am very new to LabVIEW. I am going to generate a 8-bit digital signal (00000000 to 11111111) using USB-6008. I am looking at the LabVIEW example "Write dig chan" and wondering what the "data to write" on the front panel and the LED lights mean. Could anyone help me with this? I appreciate!!!
09-03-2008 08:03 PM
more informatiom,
I connected my USB-6008 to my laptop and tried to run this VI. I select one line "Dev2/port0/line0" as Channel line and choce the data to write as "1" bit and all LEDs were off. Then there was a Error 200463 occurred, saying that the number of lines in the data for a channel does not match the number of lines in the channel.
Number of Lines in Channel: 1
Number of Lines in Data: 16
I understand the number of lines in channel is one, but I don't get the number of lines in data. Thanks!!!
09-03-2008 08:45 PM
The Data to Write is a Boolean array. A Boolean can be either true or false and represents the state of a line (True = logic 1 and False = logic 0). The text underneath the channel parameters clearly states that the number of lines in the channel list must match the number of elements in the array (Data to Write). You changed the default number of lines to and you must have increased the number of elements in the array to 16. First, make sure the Index Display of the array is set to 0. Then right click on the Boolean control that is on the far right. Select Data Operations>Delete Element. When an element is deleted, it will be greyed out. Keep doing this until only the very first element is available. Your Dev2/Port0/line0 should work then.
You might want to spend some time with DAQmx basics and LabVIEW training
09-03-2008 10:18 PM
Thanks a lot for your help. I would love to go over the tutorials. Sorry for asking a lot of dummy questions..
One more here, so if everything is set up and a Boolean is assigned to Dev2/Port0/line0, will I be able to measure that output voltage to be 5V ("1") or 0V ("0")? Thanks
09-03-2008 11:06 PM