12-15-2009 05:36 PM
12-16-2009 11:50 AM
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.
01-07-2010 04:51 PM - edited 01-07-2010 04:54 PM
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