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