LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the format for the USB Control Out buffer?

When evaluating NI-VISA USB RAW mode control from the Measurement and Automation software, I noticed that the USB Control Out buffer format is only for keyboard character inputs. For instance, if I use a setup packet of 21 09 00 02 00 00 01 00 (or if you will bmRequest Type=21, bRequest=9, wValue=512, and Index=0) and then input a value in the data buffer, that data value buffer is interpreted only as an ASCII character which only delivers the hex code to the device (i.e. input "A" will put 0x41 out to my device). I have an 8-bit port in my device which requires me to be able to send codes 0-255 or 0x00-0xFF which the standard keyboard command range does not cover. First, is it correct that the data buffer only uses this format? Secondly, how can I send out data past 0x7F?
Message 1 of 2
(2,828 Views)
I know that in LabVIEW or CVI you cam use the "type cast" function to convert a different number type so you can input numbers other than ASCII format. In MAX, there could be some limitations on the input range since it is not designed as a primary programming interface.
0 Kudos
Message 2 of 2
(2,772 Views)