Agilent Technologies InfiniiVision 7000A Series Programmer's Manual page 833

Table of Contents

Advertisement

}
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
}
} while (strInstrumentError.ToString() != "+0,\"No error\"\n");
}
private void OpenIo()
{
m_ResourceManager = new ResourceManagerClass();
m_IoObject = new FormattedIO488Class();
// Open the default VISA COM IO object.
try
{
m_IoObject.IO =
(IMessage)m_ResourceManager.Open(m_strVisaAddress,
AccessMode.NO_LOCK, 0, "");
}
catch (Exception e)
{
Console.WriteLine("An error occurred: {0}", e.Message);
}
}
public void SetTimeoutSeconds(int nSeconds)
{
m_IoObject.IO.Timeout = nSeconds * 1000;
}
public void Close()
{
try
{
m_IoObject.IO.Close();
}
catch {}
try
{
Marshal.ReleaseComObject(m_IoObject);
}
catch {}
try
{
Marshal.ReleaseComObject(m_ResourceManager);
}
catch {}
}
}
Programming Examples
833
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents