Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5664

ReadString() get time limit exceed to complete operation error

$
0
0

I have a device name Time Electronics 5075. I am trying to use the SimpleReadWrite.2010 in National Instruments\NI-488.2\Examples\DotNET4.0\SimpleReadWrite\cs to comunicate with the device.

I can open the connection and send commands to the device by using this code

 

device = new Device((int)boardIdNumericUpDown.Value,(byte)primaryAddressNumericUpDown.Value,(byte)currentSecondaryAddress);
device.IOTimeout = TimeoutValue.T100s;
device.Write("X0/A1/F0{13}");

 But I am stuck at 

 

stringReadTextBox.Text = device.ReadString();

 

I get the error "Time limit exceeded to complete operation."

I don't know exactly should I add 

 

device.Write("T/D{13}");

before the device.ReadString() or not. But I get the same error for both cases.

Some info: Visual Studio 2010, Measurement Studio 2013, NI.488.2, Windows 7 Pro

Any idea?


Viewing all articles
Browse latest Browse all 5664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>