02-22-2008 12:38 PM
02-25-2008 06:46 PM
Hi David,
What version of TestStand and LabVIEW are you using? Would it be possible for you to post a bit of sample code?
02-25-2008 07:33 PM - edited 02-25-2008 07:39 PM
Jervin,
It is attached. The disable case in the sequence structure is an experiment to try and bypass the login prompt (based on advice in another thread).
This vi is going to be used as an edit substep vi, to allow the end user the ability to drag a few specific step types into the sequence. If I can get the right-click context menu to work in the sequence view control, it will allow the end user to configure the step types they drag in.
Any help is most appreciated.
David
02-27-2008 12:05 AM
Hi David,
What you might have to do is register a callback VI for the CreateContextMenu event.
Refer to the following article that explains how event callbacks work for an operator interface and how to modify them:
Developer Zone Tutorial: Adding Custom Commands to the LabVIEW Operator Interface
Even though you want to use the default context menu, this article explains some of what goes on behind the scenes, especially section 2 and figure 4.
The VI's that the article references are located in:
<Program Files>\National Instruments\]TestStand x.x\UserInterfaces\NI\Full-Featured\LabVIEW\TestExec.llb
Particularly "Full UI - Configure Event Callbacks.vi" and "Full UI - SequenceView CreateContextMenu Event Callback.vi".
Hope this helps.