08-18-2008 02:47 PM
I am trying to figure out how to pass the sequence context into the Advanced LabVIEW User Interface. I need to check the values of some station global variables before a sequence file is opened.
I was looking for a way to send a UImessage from frontendcallbacks.seq that contains the sequence context, but I couldn't make it work. What is the best way to access the sequence context from the UI?
Solved! Go to Solution.
08-19-2008 12:37 AM
HI,
In your UI, use the Engine.Globals to get a reference to the StationGobals then you can use the PropertyObject.GetVal and SetVal to read or write to the required StationGlobals.
Regards
Ray Farmer
08-19-2008 09:37 AM
02-22-2011 04:45 AM
Is it only possible to access the station globals? How could you get access to SequenceContext object so you could get or set FileGlobals or Locals?
02-22-2011 06:36 AM
You can get the SequenceContext from your ExecutionViewMgr object using ExecutionViewMgr.SequenceContext
02-22-2011 08:45 PM
gives me error code -2147352567 Property Node (arg 1) in OI.vi
It seems I don't understand how to use the execution view manager correctly. I'm starting the execution from the TS UI Application manager and then calling the properties and methods from the Execution view manager. Is there something else I'm missing here?
02-22-2011 11:16 PM
So after digging a little deeper I see that SequenceContext Property can only be accessed if the execution is paused. I'm breaking the execution from Engine.NewExecution with the breakAtFirstStep option set to TRUE. Does the ExecutionViewManager not recognize the execution as being paused when it's is done through the engine class? And/Or is breaking the execution not the same as pausing the execution? I don't see any methods for pausing the execution
02-22-2011 11:19 PM
I forgot to include that I did set the execution property of the ExecutionViewMgr to the NewExecution Object created from the Engine object first but still generating an error when trying to access the SequenceContext
02-23-2011 01:46 AM
illustrate what else I've tried
02-23-2011 02:06 AM
Trouble is when does Locals.ConnectionRef actually exist, Does it exist in the Sequence 'Single Pass' or one or the Callback sequence or in one of your sequences in the Client SequenceFile.
You will probably better to post your local or FileGlobal via a CustomUser UIMessage for the UI to pickup.