08-31-2022 11:43 AM
The goal is to select a string (button) to send to a RS-232 instrument using a USB to serial converter to be run on any PC from an EXE file. The front panel buttons will select which string to send and select the proper com port. Reading messages is only for errors. When running example simple serial.vi, VISA is installed and does not find the virtual port (Port 😎 in the list. Can a program (with or without VISA) be converted to an EXE file? Can a program in LabView, that does not use VISA, communicates directly with a serial port? Naturally the user must know which com port the USB converter is installed. This is typically a Virtual port, not com 1-4. I am looking for an example project or VI to complete the inital testing on LV2014 or LV8.6. Does anyone have a suggestion of the best way to complete this simple task?
08-31-2022 12:05 PM
This is an excellent tutorial to learn Serial control using LabVIEW - https://labviewwiki.org/wiki/VIWeek_2020/Proper_way_to_communicate_over_serial
08-31-2022 12:34 PM
@Powertech101 wrote:
The goal is to select a string (button) to send to a RS-232 instrument using a USB to serial converter to be run on any PC from an EXE file. The front panel buttons will select which string to send and select the proper com port. Reading messages is only for errors. When running example simple serial.vi, VISA is installed and does not find the virtual port (Port 😎 in the list. Can a program (with or without VISA) be converted to an EXE file? Can a program in LabView, that does not use VISA, communicates directly with a serial port? Naturally the user must know which com port the USB converter is installed. This is typically a Virtual port, not com 1-4. I am looking for an example project or VI to complete the inital testing on LV2014 or LV8.6. Does anyone have a suggestion of the best way to complete this simple task?
1. A virtual port should still show up as a COM port. If not, you likely do not have the right drivers installed.
2. VISA is an abstraction, but makes the communications super easy. I don't think the raw serial VIs are supported anymore.
3. You were already given a link to my presentation on communicating over a serial port. Go watch it.
08-31-2022 07:47 PM
Okay, Thanks for the video suggestion. The serial VI is sending to the instrument and recieving data on a XP that has a dedicated COM1, which can be selected by VISA. The XonXoff function was removed. VISA is not able to find the USB to RS-232 on virtural Com 8. The correct unsigned driver from Tripp-Lite was installed and communcations work when using a terminal program. When a driver is unsigned is VISA not able recognize the serial port?. Tripp-Lite does not offer a LabView driver. Is there a work around for this? Maybe there is a method for VISA to recognize a virtal port?
09-01-2022 06:24 AM
If Windows sees the COM port, so should VISA.