Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

CP210x UART Bridge and VISA

$
0
0

Сonnectthe adapter USB - RS232to the USB port computer.

Bus 004 Device 008: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

Tuned port /dev/ttyUSB0

stty -F /dev/ttyUSB0 raw speed 9600 -ixon cs8 -parenb -cstopb

Data transmissionworks fine in terminal or PuTYY but VISA Interactive Control gives an error message:

Error opening resource:
ASRL5::INSTR
VISA:  (Hex 0xBFFF0000) Unknown system error (miscellaneous error).

Findlinks: http://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/FTDI-USB-Serial-Adapter/td-p/3375153

and

http://forums.ni.com/t5/NI-myRIO/Using-USB-RS485-or-other-USB-to-COM-devices-on-myRIO/ta-p/3491726

[root@localhost dev]# chmod 666 ttyUSB0
crw-rw-rw-.  1 root dialout 188,   0 Nov 19 03:39 ttyUSB0
[root@localhost dev]# ln -s /dev/ttyUSB0 /dev/ttyS4
lrwxrwxrwx.  1 root root          12 Nov 19 02:15 ttyS4 -> /dev/ttyUSB0

In visaconf.ini 

Name10="ASRL11::INSTR"
Enabled10=1
Static10=1
SystemName10="/dev/ttyS4"
BaudRate10=9600
DataBits10=8
Parity10=0
StopBits10=10
FlowCtrl10=0
Name4="ASRL5::INSTR"
Enabled4=1
Static4=1
SystemName4="/dev/ttyUSB0"
BaudRate4=9600
DataBits4=8
Parity4=0
StopBits4=10
FlowCtrl4=0

The problem (Unknown system error (miscellaneous error)) persists.

What to do next?

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles