AnsweredAssumed Answered

Unable to create an instrument in Command Expert

Question asked by gieb on Jun 9, 2013
Latest reply on Jun 10, 2013 by gieb
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  

Outcomes