Hello,
I'm using Ivi.Visa.dll and NationalInstruments.Visa.dll installed by NI-VISA 2023 Q4 (NI VISA.NET 23.8).
Using the 32 or 64 bit version of dll-s does not make different about this issue.
OS: Windows 11 Pro 64bit
Visual Studio Professional 2017.
If the ResourceManager find a TcpipSession by the ResourceName, and
there is no delay between session write and read, then read will throw IOTimeoutException very often (but not always).
session.RawIO.Write(request);
// need add some delay
response = session.RawIO.ReadString()
The same instrument with the same code (above without delay) works propererly in SerialSession and UsbSession mode.
Another issue with TcpipSession:
IVisaAsyncResult iar = session.RawIO.BeginWrite(request);
// throws Ivi.Visa.NativeVisaException
// Insufficient location information or the device or resource is not present in the system.
iar.AsyncWaitHandle.WaitOne();
long writeCount = session.RawIO.EndWrite(iar);
Thank's the feedbacks in advance!