12-05-2016 06:31 PM - edited 12-05-2016 06:32 PM
Have you checked this out?
http://digital.ni.com/public.nsf/allkb/171D2D70CFB66E74862571390062D12B
Eric Wang
Applications Engineering
12-06-2016 02:46 AM
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); }
12-07-2016 04:22 PM
Are there any other hardware modules that you have not mentioned previously?
Eric Wang
Applications Engineering
12-07-2016 05:21 PM
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
12-07-2016 10:43 PM
I have not installed the MAX and Labview. For normal operation of the NI-VISA, they are (MAX, Labview) required ?
12-07-2016 10:57 PM
cp210x and pl2303 do not works.
ftdi work well.
Important for me to work the cp210x.
12-08-2016 07:15 AM
@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)
12-08-2016 12:53 PM
Hi Nisun,
What is your complete hardware setup? I feel like I am missing a couople pieces here
Eric Wang
Applications Engineering
12-09-2016 01:18 AM
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
12-09-2016 02:03 PM
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)