Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Extreme timout exceptions on serial interace over FTDI USB-RS232 interface

With the help of this community I was able to implement a program that talks to a serial interface board (nordic nRF52) over a FTDI TTL-232RG cable. The program works very well by acquiring data for few iterations but breaks randomly and gives timeout errors. The theory is that either the program is losing control over the COM port or the USB-RS232 communication is dropping at times. In other words this is a very unstable communication.

Do you recommend to go with any other RS232 over USB hardware that is known to perform good with LabVIEW. Please advise.

NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 1 of 2
(2,336 Views)

The first thing I would do is go into the computer power settings and make sure the USB Suspend option is turned off (go into the Advanced Power Settings and then to USB Settings->USB Selective Suspend Setting and disable it under both Battery and Plugged In).  You should probably also go through the Device Manager under USB Controllers.  Under the properties for each USB hub, there is a Power Management setting to "Allow the computer to turn off this device to save power".  Turn that off for all of your hubs.

 

Another option would be to add something like a PXI-8432/2 (2 port RS232) to your PXI Chassis and use an adapter module to convert from RS-232 to the TTL.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,307 Views)