Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

COM port time out, but can read back data from MAX

Solved!
Go to solution

When short RX and RX directly, COM port can feedback data on MAX test panel, but always display "time out" error. What's the possible reason? Thanks. 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 1 of 5
(4,676 Views)
Solution
Accepted by topic author colinzhang

Hi Colin, 

 

When you read back the data, there is a parameter called "Bytes to read" you need to key in, the default value is 1024, in this case, it will keep waiting for 1024 bytes until the timeout occur.

 

I found a good article talking about this and you can change the bytes to read in the LabVIEW environment or MAX test panel.

http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0

 

Do let me know after you try it out, thanks.

 

Regards,

KwokHow

AE NI Singapore

Applications Engineer | National Instruments
Singapore (65) 6226 5886 | Malaysia (60) 3 7948 2000 | Thailand (66) 2 298 4800
Philippines (63) 2 659 1722 | Vietnam (84) 28 3911 3150 | Indonesia (62) 21 2783 2355
Message 2 of 5
(4,652 Views)

If you leave the default port settings, then you can use a termination character to stop the read.  By default, it is 0xA (line feed).  So if you addend a line feed to your sent data, then it will work much better.


GCentral
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
Message 3 of 5
(4,642 Views)

Hi Asean,

Thanks your reply, this issue has been resolved. You are right.

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 4 of 5
(4,590 Views)

Thanks for your reply, your info is useful as well.

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 5 of 5
(4,587 Views)