Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

IO timeout command to set??

What is the VB.NET syntax to change/set the IO timeout??  Thanks!
0 Kudos
Message 1 of 3
(3,694 Views)

snwbrdr,

 

What version of visual studio and measurement studio are you using? What kind of IO are you doing? File IO, DAQmx reading and writing, VISA IO, GPIB IO, SERIAL IO?  Most of this should be available in the help and/or msdn.com if it isn't a NI specific function.

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 3
(3,678 Views)

Howdy snowboarder,

 

Judging from your recent posts, I assume you're working with GPIB hardware under VB. If you're using the NI-488.2 .NET Class Library, then you can set the timeout for a synchronous I/O operation by changing the value of a device's the IOTimeout property. For example...

 

My VB syntax is rusty, but it would look something like

 

Dim myDevice As NationalInstruments.NI4882.Device

myDevice = new NationalInstruments.NI4882.Device() As NationalInstruments.NI4882.Device

myDevice.IOTimeout = <value>

 

 

 

Let us know if you're using another driver, and one of us should be able to offer some more specific guidance.

 

Edit: Here's a link to the documentation on the Device class:

ms-help://MS.VSCC.v90/MS.VSIPCC.v90/NI.MeasurementStudio.2008/NINETNI4882/html/NationalInstruments.NI4882.TimeoutValue.html

Edit again: Actually, this's the link I meant to paste:

ms-help://MS.VSCC.v90/MS.VSIPCC.v90/NI.MeasurementStudio.2008/NINETNI4882/html/NationalInstruments.NI4882.Device.html

Message Edited by pBerg on 01-07-2010 04:52 PM
Message Edited by pBerg on 01-07-2010 04:54 PM
Warm regards,

pBerg
0 Kudos
Message 3 of 3
(3,566 Views)