LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6501 Write multiple Output

Hello I am using the attached example vi to control the output of the USB-6501,  I am having trouble configuring it to write to multiple output channels at once.  I would like to be able to input a 1D boolean array with a value for each channel (8 will suffice) and have it write each the value to each channel.  When I try I get an error that says "Measurements: Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel."  If anyone is familiar with this device or has suggestions on how to get around this I would love to hear them!

Cheers!!
0 Kudos
Message 1 of 5
(3,915 Views)

Hey,

This could be a problem with the line grouping of your channel configuration (one channel for each line or one channel for all lines).

BR, Christian

0 Kudos
Message 2 of 5
(3,898 Views)

Hi jmcbee,

I did try the attachment you posted and it worked. Make sure like Christian said that you have selected: “one channel for all lines”. The issue is that If you want to control multiple lines your data array size must be the same size as the amount of lines you want to control. Let’s say you are going to write to lines 0 and 1, the field for “lines” in the front panel will be DevX/portX/line0:1 and your data array must be size two.  Attach are twp pictures one with the error you are getting and the other one with the front panel setup you need to accomplish what you want.

 

Check the square box.

Message Edited by Jaime F on 10-17-2007 03:40 PM

Jaime Hoffiz
National Instruments
Product Expert
Download All
0 Kudos
Message 3 of 5
(3,891 Views)

HI all

Have anyone can help me to change the "Write Dig Chan-Set Output Drive Type.vi" to be the LabVIEW 7.1 Version.

As i want to take the reference as i also have the NI USB-6501.

Thanks

Best Regards

Steve So 

0 Kudos
Message 4 of 5
(3,856 Views)
Hi jmcbee,
 
I have attached the example you are referring to saved in version 7.1.  Did you try modifiying your example to do what Jaime said in the above post?  Hopefully you are no longer getting the error associated with "one channel for each line" or "one channel for all lines."  Please post back if you have any further issues!
Regards,
Vanessa L.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,833 Views)