07-29-2015 05:20 AM
Some old code that I have been using for a serial RS232 com port device works well. This device through a RS232-USB convertor works well too - that is, the code is looking for a COM port number and the reading of the serial input is correct.
The new version of this serial device is a USB only unit and I dont see a "COM PORT" in the system hardware configuration? how do I "see" my new USB device and let my code be reused? Or do I need to treat the USB differently?
07-29-2015
06:12 AM
- last edited on
01-04-2025
12:58 PM
by
Content Cleaner
I suppose you need to rewrite part of the code using VISA insteead of RS232 library. VISA is a different product that you need to install separately on the target machine (you should have it already installed on the development machine) and is useful for communicating over a variety of buses, inclunding RS232; that is, the new software could handle with little or no change both old and new instruments of yours.
You can find several documents regarding VISA like for example this one or this other one: the best startgin point is probably the Instrument Control Fundamentals page. You'll see that the majority of them is aimed to LabVIEW but don't be afraid of that: CVI version of VISA is equivalent to the LabVIEW one, with functions with the same name and parameters.
07-29-2015 08:07 AM
thanks Roberto I will give that a look,
I was 'hoping' that a different "name" for the port might be a simple fix. I assume that the complete handling of serial coms is different with USB - is that correct?
07-29-2015 01:16 PM