09-06-2011 12:26 AM
Hi,
I need a specific client sequence file to be loaded every time whenever i opened my opertor interface.
can any one please tell me how to do this?
Thanks
Bharathi
09-06-2011 10:50 AM - edited 09-06-2011 10:52 AM
Which OI are you using?
If you are using the Full Featured UI for LabVIEW then in the Top Level VI on the block diagram there is a subVI called Init (Full UI - Initialize.vi). On the block diagram there you will find a subVI called Config App Mgr (Full UI - Configure Application Manager.vi). In there you will see a property node for ReloadSequenceFilesOnStart. Change the enum going into that to ReloadFile_none. By default the last Sequence File that was loaded when the UI was shut down will get loaded back upon restart. This disables that.
Now after that property node you need to insert an Invoke Node between the GetEngine invoke node and the ReloadSequenceFilesOnStart property node. Wire the reference and errors. Select OpenSequencefile for the inserted invoke node. There will now be a parameter called sequenceFilePath that you can wire a string to (which will be the path and name of the Sequence File you want to load).
Hope this helps,
09-06-2011 11:03 PM
I am using the C# OI and i coudnt find the ReloadSequenceFilesOnStart property in that.
can you please give me some pointers.
Thanks
IVI
09-06-2011 11:55 PM
It's been a while with the Csharp but here's what I suggest:
On your MainForm.cs [Design] you will see a control that looks like the TestStand logo. It is the Application Manager. Highlight it and in the properties look for something called ReloadSequenceFilesOnStart in the Misc section. Change it to what I suggested before (ReloadFile_None).
Now in the code behind look for the line:
// this application allows setting of breakpoints on sequences files, so let them persist
this.axApplicationMgr.GetEngine().PersistBreakpoints = true;
It should be in the MainForm_Load method somewhere.
Before this line you want to put something like this:
this.axApplicationMgr.OpenSequenceFile("MyPath"); Where MyPath is the path to your file.
Cheers,
09-07-2011 12:01 AM
Thanks got the solution!!!!!!!!!