public static GPIB Open(string GPIBAddress) { if (GRM == null) { GRM = new Ivi.Visa.Interop.ResourceManager(); } GPIB gpib = new GPIB(); gpib.Session = GRM.Open(GPIBAddress, AccessMode.NO_LOCK, 2000, ""); gpib.FIO488 = new FormattedIO488(); gpib.Message = (IMessage)gpib.Session; gpib.FIO488.IO = gpib.Message; return(gpib); }
public static GPIB Open(string GPIBAddress) { if (GRM == null) { GRM = new Ivi.Visa.Interop.ResourceManager(); } GPIB gpib = new GPIB(); gpib.Session = GRM.Open(GPIBAddress, AccessMode.NO_LOCK, 2000, ""); gpib.FIO488 = new FormattedIO488(); gpib.Message = (IMessage) gpib.Session; gpib.FIO488.IO = gpib.Message; return gpib; }