ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-232 IO Resource

Hi,
 
Does anyone know can i access the IO resource of a USB->232 device.
For the normal RS232 (say Com1), i can access the IO resource (03F8-03FF) and use the out port.vi to write a 8 bit data to the data line. How can i do it for the
USB->232 converter?
 
Please help...
 
MY
0 Kudos
Message 1 of 4
(3,771 Views)
I don't believe you can use the port i/o with a USB-RS233 converter. Why would you want to use that instead of a simple VISA Write/Read?
0 Kudos
Message 2 of 4
(3,764 Views)
Cos i am going to output a 8bit data (e.g. 11010011) instead of ASCII code
0 Kudos
Message 3 of 4
(3,761 Views)

You can do that with a VISA write just as well as with the port I/O. You have a couple ofl ways. With a U8 array, use the Byte Array to String function, with a string string control/constant for Hex Display, or with a U8 scalar, use the typecast function.

Message Edited by Dennis Knutson on 09-28-2007 04:56 AM

Message 4 of 4
(3,751 Views)