Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CP210x UART Bridge and VISA

Have you checked this out? 

http://digital.ni.com/public.nsf/allkb/171D2D70CFB66E74862571390062D12B

 

Eric Wang

Applications Engineering

0 Kudos
Message 11 of 23
(2,438 Views)

If use PuTTY (Serial loopback test) data is transmitted.

In NI-VISA i can not run serial loopback test because viOpen not work.

viOpen() error: 0xbfff0000

status = viOpen(defaultRM, "ASRL5::INSTR", VI_NULL, VI_NULL, &instr);
if (status < VI_SUCCESS) {
		printf("viOpen() error: 0x%x\n", status);
		viClose(instr);
		}
0 Kudos
Message 12 of 23
(2,430 Views)

Are there any other hardware modules that you have not mentioned previously?

 

Eric Wang

Applications Engineering

 

0 Kudos
Message 13 of 23
(2,404 Views)

Also, connect RXI and TX0 with your 6 pin serial converter. Then run a serial loopback test in MAX and/or LabVIEW.

http://www.ni.com/tutorial/3450/en/

 

Eric Wang

Applications Engineering

0 Kudos
Message 14 of 23
(2,400 Views)

I have not installed the MAX and Labview. For normal operation of the NI-VISA, they are (MAX, Labview) required ?

0 Kudos
Message 15 of 23
(2,394 Views)

cp210x and  pl2303 do not works.

ftdi work well.

Important for me to work the cp210x.

0 Kudos
Message 16 of 23
(2,393 Views)

@ewang52 wrote:

Also, connect RXI and TX0 with your 6 pin serial converter.

 

In NI-VISA Configuration -> State of the Device -> Busy

(old state - Uncertain)

 

 



 

0 Kudos
Message 17 of 23
(2,378 Views)

Hi Nisun, 

 

What is your complete hardware setup? I feel like I am missing a couople pieces here

 

Eric Wang

Applications Engineering

0 Kudos
Message 18 of 23
(2,372 Views)

In linux

[root@localhost ~]# stty -a -F /dev/ttyUSB0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>;
eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S;
susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>;
flush = <undef>; min = 0; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar parmrk inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt
-echoctl -echoke

then

[root@localhost ~]# chmod 666 /dev/ttyUSB0
[root@localhost ~]# ln -s /dev/ttyUSB0 /dev/ttyS4
[root@localhost ~]# ls /dev/ttyS4
/dev/ttyS4

In Ni-visa

It is shown in fig9.png

0 Kudos
Message 19 of 23
(2,364 Views)

http://megaeshop.pk/cp2102-6pin-module-usb-2-0-to-ttl-on-stc-for-arduino-pro-mini-download-better-us...

for serial loopback test use two mode

1. connect RXD to TXD

2, connect  RTS to CTS, DTR to DSR, RXD to TXD. (shown RS232Female.gif)

0 Kudos
Message 20 of 23
(2,347 Views)