I'm totally new to Agilent Command Express and I hope my problem is trivial.
I would like to create some commands for Agilent 3631A, but after successful installing Command Express and IO Libraries Suite I am unable to create any instrument in the Command Express programme. No matter which model I choose (either among 'normal' instruments or simulated ones) there is error "Command Expert did not handle an exception." and access denial to the path 'C:\ProgramData\Agilent\Command Expert\instruments.xml'. I made folder with all subfolders ald files ProgramData visible and accesible and I albo opened instruments.xml without any problems but it still doesn't work in Command Express.
I will be really grateful if anyone tells me what should I do.
Error details are below:
w System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
w System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
w System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
w System.IO.StreamWriter.CreateFile(String path, Boolean append)
w System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
w System.IO.StreamWriter..ctor(String path)
w Agilent.CommandExpert.InstrumentAbstraction.ConfigurationManager.a()
w Agilent.CommandExpert.InstrumentAbstraction.ConfigurationManager.AddICDBEntry(ICDBEntry entry)
w Agilent.CommandExpert.CommandExpertLib.Common.CommandExpertHelpers.AddInstrument(Window owner, Boolean forecSimulate)
w Agilent.CommandExpert.CommandExpertLib.Controls.Instruments.InstrumentsICDB.InstrumentItemAdd(Boolean forceOffline)
w Agilent.CommandExpert.CommandExpertLib.Controls.Instruments.InstrumentsICDB.ExecuteAddInstrumentOffline(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
w System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
w System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
w System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
w System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
w System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
w System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
w System.Windows.Input.RoutedCommand.Execute(Object parameter, IInputElement target)
w Agilent.CommandExpert.CommandExpertLib.Controls.Misc.Welcome._linkNewInstrumentSimulate_Click(Object sender, MouseButtonEventArgs e)
w Agilent.CommandExpert.CommandExpertLib.Controls.Misc.TextBlockCustom.FireClick(MouseButtonEventArgs e)
w Agilent.CommandExpert.CommandExpertLib.Controls.Misc.TextBlockCustom.TextBlockCustom_MouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
w System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
w System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
w System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
w System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
w System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
w System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
w System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
w System.Windows.Input.InputManager.ProcessStagingArea()
w System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
w System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
w System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
w System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
w System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Edited by: gieb on Jun 9, 2013 6:47 AM
I would like to create some commands for Agilent 3631A, but after successful installing Command Express and IO Libraries Suite I am unable to create any instrument in the Command Express programme. No matter which model I choose (either among 'normal' instruments or simulated ones) there is error "Command Expert did not handle an exception." and access denial to the path 'C:\ProgramData\Agilent\Command Expert\instruments.xml'. I made folder with all subfolders ald files ProgramData visible and accesible and I albo opened instruments.xml without any problems but it still doesn't work in Command Express.
I will be really grateful if anyone tells me what should I do.
Error details are below:
w System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
w System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
w System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
w System.IO.StreamWriter.CreateFile(String path, Boolean append)
w System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
w System.IO.StreamWriter..ctor(String path)
w Agilent.CommandExpert.InstrumentAbstraction.ConfigurationManager.a()
w Agilent.CommandExpert.InstrumentAbstraction.ConfigurationManager.AddICDBEntry(ICDBEntry entry)
w Agilent.CommandExpert.CommandExpertLib.Common.CommandExpertHelpers.AddInstrument(Window owner, Boolean forecSimulate)
w Agilent.CommandExpert.CommandExpertLib.Controls.Instruments.InstrumentsICDB.InstrumentItemAdd(Boolean forceOffline)
w Agilent.CommandExpert.CommandExpertLib.Controls.Instruments.InstrumentsICDB.ExecuteAddInstrumentOffline(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
w System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
w System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
w System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
w System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
w System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
w System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
w System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
w System.Windows.Input.RoutedCommand.Execute(Object parameter, IInputElement target)
w Agilent.CommandExpert.CommandExpertLib.Controls.Misc.Welcome._linkNewInstrumentSimulate_Click(Object sender, MouseButtonEventArgs e)
w Agilent.CommandExpert.CommandExpertLib.Controls.Misc.TextBlockCustom.FireClick(MouseButtonEventArgs e)
w Agilent.CommandExpert.CommandExpertLib.Controls.Misc.TextBlockCustom.TextBlockCustom_MouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
w System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
w System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
w System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
w System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
w System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
w System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
w System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
w System.Windows.Input.InputManager.ProcessStagingArea()
w System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
w System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
w System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
w System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
w System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Edited by: gieb on Jun 9, 2013 6:47 AM
That exception indicates that the access level of Command Expert is not sufficient to access its own folder directory. The instruments.xml is a record log that keeps track of instrument addreses to be used by Command Expert. Most likely the directory only has read-only access.
Please do the following:
1. Close Command Expert. Log off and make sure you are logged in as a Administrator for the PC.
2.Navigate to C:\ProgramData\Agilent. Right Click on the "Command Expert' folder and select the general tab. De-select the "Read-only" attribute. This will allow read and write access to all the files in this directory including instruments.xml. Please see the attached picture.
3. As a Administrator, open Command Expert and try to add an instrument.
If this does not work, can you attach the screenshot of the exception and include operating system information. Can you actually write to the instruments.xml file? Can you take a screenshot of the permissions of the above directory?
By the way, I have posted online Command Expert Examples that include the E3631A.
They can be downloaded here: http://www.home.agilent.com/agilent/redirector.jspx?action=ref&cname=AGILENT_EDITORIAL&ckey=2341830&lc=eng&cc=US&nfr=-35491.992473
Connectivity