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

1 view (last 30 days)
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.

Answers (1)

Vinod
Vinod on 14 Feb 2014
Have you contacted technical support on this issue?

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!