Hi,
-I get the following exeption:
"System.FormatException: Input string was not in a correct format.
at System.Number.ParseDouble(String s, NumberStyles style, NumberFormatInfo info)
at System.Double.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Double.Parse(String s)
at System.Convert.ToDouble(String value)
at a..ctor(Int32 boardIndex, Object sender)
at a..ctor(Object sender)
at NationalInstruments.NI4882.Board..ctor()
at testQuery.Form1.GPIBlist_Click(Object sender, EventArgs e) in c:\gpib\vb_projects\testQuery\testQuery\Form1.vb:line 96"
-Using enironment.stacktrace @ exeption:
"at System.Environment.GetStackTrace(Exception e)
at System.Environment.GetStackTrace(Exception e)
at System.Environment.get_StackTrace()
at testQuery.Form1.GPIBlist_Click(Object sender, EventArgs e) in c:\gpib\vb_projects\testQuery\testQuery\Form1.vb:line 103
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at testQuery.Form1.Main() in c:\gpib\vb_projects\testQuery\testQuery\Form1.vb:line 8"
-Tried the code on a pc with pci-GPIB; same result.
-I'm using only the 3 lines of code described (+ a command button to start it with...)
Thanks for Your help so far!
-Øystein
Message Edited by oystein on 04-11-2005 05:31 AM