//constructer public Measure(string name) { this.entity = new Ivi.Visa.Interop.FormattedIO488(); try { this.entity.IO = (Ivi.Visa.Interop.IMessage)WindowsFormsApplication1.Program.RM.Open(name); } catch (System.Runtime.InteropServices.COMException e) { MessageBox.Show(e.ToString()); } }
public static bool Initialize() { RM = new Ivi.Visa.Interop.ResourceManager(); DMM = new Ivi.Visa.Interop.FormattedIO488(); try { DMM.IO = (Ivi.Visa.Interop.IMessage)RM.Open(AGI33220A_ADDRESS); Flag33220 = true; return(true); } catch { try { DMM.IO = (Ivi.Visa.Interop.IMessage)RM.Open(AGI33511B_ADDRESS); Flag33220 = false; return(true); } catch { return(false); } } }