VWorks User Guide : Creating protocol forms for operators : Configuring a run button and other specialized buttons in a form

Configuring a run button and other specialized buttons in a form
About this topic
To create or edit forms, you must have VWorks Technician- or Administrator-level access. You should also have an understanding of how to create protocols in the VWorks software.
This topic describes the following:
The Form Designer window contains buttons that perform specific commands, which are available elsewhere in the VWorks window. You can find these buttons under Specialized Buttons in the Form Designer window.
Figure. Form Designer window Specialized Buttons area and the default buttons
 
For more details on creating forms, see Workflow for creating or editing a form.
Determining which run button to include
The following table describes four different options that you can use as the run button on your form. To configure these run buttons, except the Pushbutton control, see Configuring the specialized buttons in this section.
 
Setup requirements. In the Protocol Options area of the VWorks window, you must specify the form to use (.VWForm). You can also choose to automatically load the form file, so that the form opens automatically when the protocol is opened.
Setup requirements. The properties for the button must specify the protocol file (.pro) and the number of times to run it.
Setup requirements. The properties for button must specify the runset file (.rst), and you must select the Use global context for variables check box for the form.
About including the Pause and Full Screen on/off buttons
IMPORTANT Be sure to include the Toggle Full Screen button in your form if you want the user to view the form in the full screen view.
When you open the Form Designer to create a form, the Pause and Full Screen on/off buttons are included in the form by default. If you accidentally remove these buttons, you can reselect the Pause Run and Toggle Full Screen controls from the Specialized Buttons area of the Form Designer window.
 
Changes the VWorks window between the normal view and full-screen view of the form:
Full screen on. Displays only the form in the VWorks window. Optionally, the view can include the Main Log, Pipette Log, Time Constraints Log, and Progress tabs. All other controls and areas, such as menus, toolbars, and the work area are hidden.
Full screen off. Displays the form as a tab in the protocol area of the VWorks window.
The following figures show examples of the full screen on and off.
Figure. VWorks window with example form in full screen view
 
Figure. VWorks window with example form in tab view (full screen off)
 
About including other specialized buttons
In addition to the run buttons and the Pause and Full Screen on/off buttons, the Form Designer provides the following specialized buttons that you can include in your form:
Initialize All Devices button
If the simulation mode is turned off when you open a protocol, the software automatically loads the device file associated with the protocol and asks you whether you want to initialize the devices. If you want the form user to be able to initialize the devices manually while the form is displayed in full-screen view, you can include the Initialize All Devices button. This button is available under Specialized Buttons in the Form Designer window, and the button performs the same function as the Initialize all devices button in the Devices tab of the VWorks window.
Buttons for data entry values
The Data entry property, which enables form users to enter or edit values, is available for many of the Form Designer controls found under General Controls. The following buttons manage the data entry values that are entered by a form’s user.
 
Menu Action button
IMPORTANT The Menu Action button gives a user who has VWorks Operator-level access the ability to perform actions that normally require Technician-level access.
You can use the Menu Action button to perform the following commands.
 
These commands are also available in the Tools menu of the VWorks window. For a description of the Tools menu commands, see Tools menu.
IMPORTANT These commands normally require VWorks Technician-level access.
This command is also available in the Tools menu of the VWorks window. For a description of the Tools menu commands, see Tools menu.
IMPORTANT This command normally requires VWorks Technician-level access.
Configuring the specialized buttons
To configure the specialized buttons:
1
If the button you are configuring is already in the Form Canvas area of the Form Designer window, go to step 4.
If the desired button is not yet in the form, click Specialized buttons, and drag the button to the Form Canvas area.
An invisible autogrid assists you in aligning the control in the form. To turn off the autogrid, press ALT while dragging the control into position.
2
In the Form Canvas area, click the button that you are configuring. A resizing box appears around the button’s border. To resize the button, drag one of the sizing handles.
Note that the corresponding properties appear for the selected button as the following figure shows.
Figure. Form Designer window displaying properties for the selected button
 
Note: Click Preview to display the image that the form’s user will see.
3
Edit the Properties of the button as required. The following table describes all the properties, but a given button may use only a subset of these properties.
 
Optional. To select an image to use as an icon in addition to the button caption, click the field, and then click the button that appears.
Optional. To change the font size for the selected control and subsequently created controls, type a new number in the field.
Optional. To change the font color for the selected control and subsequently created controls, click the field, and then click the that appears.
4
If you are configuring the Run Protocol button :
a
In the VWorks window protocol tab, under Protocol Options > Properties, click the Form to use field, and then click the button that appears.
b
In the Open dialog box, locate and select the form file that you are creating. (.VWForm), and then click Open.
c
In the Automatically load form file field:
 
5
If you are configuring the Run Runset button , make sure you select the Use global context for variables check box in the Form Designer window.
If you want the JavaScript variables used by the form's controls to interact with variables in the protocols, ensure that the Use global context for this protocol check box is selected in the Protocol Options for each protocol.
If one of the protocols uses its own private context (the Use global context for this protocol check box is not selected), you can include a getGlobalObject() JavaScript call in each case where a variable in the protocol must read from, or write to, one of the variables used by the form. For details, see VWorks-defined functions.
Note: If you want one control to overlap another control on the form, select the control that you want on top, and then click Bring selected control to front.
Related information