Instrument Control Toolbox: terminator arriving on input stream but not being detected?

조회 수: 1 (최근 30일)
Hello,
I am using an Instrument Control Toolbox tcpip object to communicate with a Data Translation TEMPpoint device. I'm having success with all commands and reads, but my reads usually don't detect the terminator character and hence I have to wait until the timeout is hit. I frequently get this warning:
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
I'm confused by this warning, as the strings returned by the device for either fgets or fgetl commands show the device is issuing the terminator character at the end of its strings.
My tcpip terminator is set to the default line feed character
>> tempPointTcpIPObj.Terminator
ans =
LF
which I believe is ASCII code 10.
This is the character that is terminator character that is reliably returned by the device. For example the code
temp_string = fgets(tempPointTcpIPObj)
rawInputVector_single = single(temp_string)
returns
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
temp_string =
#14@·Yk
rawInputVector_single =
35 49 52 64 183 89 107 10
I'm confused why it seems the terminator character 10 is being generated by the device but doesn't seem to be detected by the toolbox?
Thanks in advance for your help.

답변 (1개)

Vinod
Vinod 2014년 2월 14일
Have you contacted technical support on this issue?

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by