07-19-2018 03:38 PM - edited 07-19-2018 03:47 PM
Platform: Windows10
LabVIEW 2016
I wrote a software (not LabView) which can listen to multiple serial devices data as long as the format are correct.
Is it possible to configure the USB-6341 to act as a serial device that will output data to a COM port so that my software can listen to USB-6341 through the COM port? In summary, I want to send the collected data from USB-6341 to Putty serial connection.
I found several resource about configuring LabView to communicate with other serial device, but I didn't find anything about making LabView/NI-Box act as a serial device.
Solved! Go to Solution.
07-19-2018 06:37 PM
It's not something normally done, because the speed and timing constraints of RS-232 even at a low baud rate, aren't possible with a USB device running under Windows.
Typically, a UART chipset is used for RS-232, or it can be done with an FPGA, this is because with a UART and FPGA you can maintain the timing required for character-to-character.
As a bizarre time-wasting experiment, you can output a digital waveform, provided it's in the correct digital data stream of an RS-232 signal. This requires intimate knowledge of the RS-232 protocol.
Since the USB-6431 is already connected and running from the PC, can you use the RS-232 of the PC to send what data you need?
07-19-2018 08:53 PM
In addition, the DAQ will not show up as a COM port for use in Putty. If you really need a RS-232 connection, I recommend looking at Startech and get one of their USB-RS232 devices.
07-19-2018 11:10 PM
So if I simply want Labview to write to Putty (or any serial terminals), I will have to use an additional hardware USB-RS232 in order to convert digital waveform to serial data.
Originally, I thought I could create a virtual COM port in LabView and write to it. Using Putty to connect to that virtual COM port to received the data. Base on yours answer, that seems not to be the case.
I guess Labview is not meant to be a slave/server of other applications.
07-20-2018 01:28 AM
To clarify, the USB-6341 is not an embedded device, it is only an electronic circuit(s) allowing the output of digital or analog signals to and from a PC via the USB interface. It only converts analog signals into digital data which are sent to LabVIEW running on the PC.
It's not an 'embedded' system such as a Arduino, Raspberry Pi. I cannot be 'programmed' and used as a 'stand-alone' device.
It's a very high-performance, accurate Analog-Digital converter.