Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

cwserial Test panel

I'm using this sample file in C:\Program Files\NationalInstruments\MeasurementStudio\VB\Samples\Instr\Basic Serial and unable to execute any commands. By only use the test panel in cwserial, I always get time out error while reading the data. After a while, the buffer is loaded and received everything I entered in one line.

Configs are as follow:
Com: 1
BR: 9600
Parity: none
Stop bit: 1
data bit:8
Flow Control:None
Timeout:1000
EOS:none
Buffer size: r:1000, t:1000
Please advice.
0 Kudos
Message 1 of 3
(3,376 Views)
Hi,

I just tried the same configuration and it works properly. Since you're not using any end of string character, any read operation will return after the specified timeout with the data in the buffer. I don't know what could be happening, but I can give you some testing ideas.

It seems that you are already doing a loopback test. Try doing the test using hyperterminal. Here's a document that describes the process:

http://zone.ni.com/devzone/conceptd.nsf/webmain/D48BA43C59B60277862569EE000501FD?opendocument&node=DZ52363_US

Using hyperterminal will show if there's any hardware or connection problems.

If not already doing it, do a loop backtest with the sample program or the Test panel of the ActiveX control.

Hope this helps.
DiegoF.
Message 2 of 3
(3,376 Views)
Thanks for your reply, you're right on the money. I figured it out right after I post the question :(.
It was the EOS problem. Still, it doesn't work in the test panel but works fine in code. That's all I need. Again, thanks for your input.
0 Kudos
Message 3 of 3
(3,376 Views)