LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LabVIEW and VISA with USB as Serial -- USBSER.SYS

Hi.
A colleague wrote some FW to run in a uP circuit with a USB interface. Upon
connection to a PC, the HW manager in WinXP uses a custom .INF file that makes
use of the windows USBSER.SYS driver. He also wrote a VB program to run on the PC
that communicates to the uP board. All works fine, and the VB code is the same
that he uses for an RS232 port.

I cannot duplicate the VB functions in LabVIEW. At first the device did not look like
a COM port in M&A explorer, even though it did in Device Manager. VISA OPEN
crashed the program. I upgraded the VISA driver (341), and now M&A explorer sees
the device as a COM port.


But LabVIEW M&C code that works with the RS232 interface does not work with the
USB interface. There is no reply from the uP, at least none that I can read. But there
are no LV errors.

Have you LV gurus hacked the USBSER.SYS interface yet?

Thanks!
-- WW
0 Kudos
Message 1 of 2
(4,223 Views)

Hello,

When porting over to use NI-VISA and LabVIEW to communicate with your device it woud be best to read the knowledgbase article How Can I Communicate With a Device Using NI-VISA USB RAW Mode? and also the developer zone article USB Instrument Control Tutorial.  These articles will describe how to make the .inf file driver needed for Windows and the Measurement and Automation Explorer to be able to see and communicate with your USB device.  From there in LabVIEW you canuse the NI-VISA USB VI's to communicate with your device.

Daryl E.
National Instruments
Applications Engineer

0 Kudos
Message 2 of 2
(4,198 Views)