A Slider Control is a Screen Object which allows the operator to adjust any set point of a DAQ Module or the value of a variable simply by sliding the knob with the mouse during run-time much like the operation of a typical slide potentiometer. During setup, the user defines the range and the number of tick marks, and the value of each tick mark is automatically calculated and displayed if desired.
Once a Slider Control is placed on the screen it can be selected by clicking on it with the left mouse button. To move the object, place the cursor over it, hold down the left mouse button and drag the object to the desired position. Resize handles are provided to allow adjustment of the overall size by dragging on them with the mouse in a similar fashion.
To set the properties of a Slider Control, right-click on the object or select "Properties" in the <Edit> menu while the Slider Control is selected. The following is a summery of the user defined attributes in the Properties dialog box.
Properties Dialog Box:
Title: Type in the text that will appear on the top of the Slider Control.
Size: Selects the font size used for the text characters in the Slider Control. Making changes to this attribute will also change the overall size of the Slider Control respectively.
Color: Selects the font color used for the characters in the title.
Start with this value: Check this box to set the numerical field of the transmitting command string to the value entered at the right. If the value is blank, the value of the last run session will be used. This value will be updated and retransmitted each time the Slider Control knob is moved. Note, if the Value Type is set to hexadecimal or binary and this box is checked, the most significant digits of the numerical field will be padded with zeros as its value is decremented. This is useful if the DAQ Module requires a fixed number of characters in its numerical field.
Get value from Module by sending this command: Check this box to read a value from a DAQ Module and use it for the numerical field of the transmitting command string. In the space at the right, type in the command string required to read the value from the DAQ Module. This value will be updated and retransmitted each time the Slider Control knob is moved. Note, if this box is checked and the command does not receive a response from the DAQ Module, the Slider Control will not function and the "Error" message will be sent to any Screen Object listed in the "Slider Monitoring:" section below.
Value Type: Select the appropriate value type (decimal, hexadecimal or binary) which the numerical field is formatted in.
Response expected from Module: Check this box if a response is expected from the DAQ Module that is the target of the transmitting command string. In this case, ModCom will automatically wait for the response before transmitting the next Slider Control command. Uncheck this box if the DAQ Module will not be sending back a response because its ECHO has been turned off. Note, turning off the DAQ Module's ECHO and unchecking this box provides the fastest update rate.
Continue to transmit new value while slider is being moved: Check this box to have ModCom transmit the command string while the Slider Control knob is being moved. If unchecked, ModCom will wait until the Slider Control knob has been released before transmitting the command string with the new value.
Send the response to this Screen Object: To monitor or log the response from a DAQ Module which is the target of the transmitting command string, create a Screen Object such as a Data Window, Text Window, or instrument gauge and type in the object's ID label here. Note, "Response expected from Module" must be checked in order to use this feature.
Send current value to this Screen Object: To monitor or log the current value of the numerical field of the command string, create a Screen Object such as a Data Window, Text Window, or Instrument gauge and type in the object's ID label here. Note, the data format of this value (Decimal, Binary, or Hexadecimal) is determined by the "Value Type" chosen in the "Initialization" section.
Tick Marks: Select the number of tick marks to show along side the Slider Control knob. These will be spaced evenly from top to bottom.
Show Values: Check this box to show the numerical values of each tick mark.
Top Value: Type in the value of the numerical field of the transmitting command string when the Slider Control knob is moved to the extreme top position.
Bottom Value: Type in the value of the numerical field of the transmitting command string when the Slider Control knob is moved to the extreme bottom position.
When slider is moved, append new value to these characters and transmit: Each time the operator moves the Slider Control knob with the mouse, these characters (representing the Header, Command Title, and Channel Number) followed by the current value will be transmitted. If wishing to use a Slider Control to adjust a variable used by some other object in ModCom instead of transmitting a command, leave this box blank and include the name of a Screen Object in the "Send current value to this Screen Object:" section. This Screen Object will be the variable used elsewhere.