Read data from serial port – QuickLabel PowerForms User Manual
Page 18

- 18 -
l
Fixed: The number entered in the edit field defines how many labels will be printed.
l
Unlimited: The maximum quantity of labels supported by the current printer will be
printed. This options is generally used with database files, where unlimited would be
used as: print the whole database.
Note:
Be careful and do not create an infinite loop, when label printing would not end.
l
Variable quantity: Some variable on the label will set the quantity of labels to be
printed. In most cases this will be some field from the database. The form does not know
how many labels will be printed. When the data is processed on the label, the variable
quantity gets its value.
l
From variable: The value of the selected variable defines the quantity of labels that will
be printed.
Advanced Options: Click this button to set advanced options for the quantity of labels.
Condition: This is a scripting boolean expression. Only two results are possible (True and False).
Use this option to enable current action only when some term is met. The action will be started only
if condition returns True as the result of the expression (this setting is only available in the advanced
Action Editor mode).
Read Data from Serial Port
Define how the data will be read from the serial port.
The data received on the serial port is stored in the generated variable. You can use the value of the
variable directly on the label or use it in some other action in the form (like Visual Basic script if
additional data-manipulation is required).
Serial Port Settings: Define the properties of the serial port where you have attached the serial
device. The parameters in this dialog box have to match the settings on the device. Refer to the doc-
umentation of your serial communication device so you will be able to specify the correct com-
munication parameters. If the settings on the device and in the software do not match,
communication will not be possible.
Initialization Data: Initialization data is set of characters that need to be sent to the serial device in
order to activate it and make it ready to send data to the PC computer. Type in the set of characters
that must be sent to the device. Click on the small arrow button on the right to display list of all avail-
able special characters.
Send initialization data: Tick the option to enable initialization data. This is optional feature.
Wait before starting to read data: You can define the time-out in milliseconds after which
the receiving data will begin. This is optional feature.
Filter: You can filter the data you receive from the serial port and cut only the important characters.
You can limit what data you will receive. This is optional feature.
Use start and stop string: Define the two strings that will enclose the data you need to
extract. For example, if start string is ### and stop string is $$$, the extracted data from the
raw data q###12345$$$1 is 12345.
Use start and end position: Define the start and stop position of characters you want to
extract. For example, if start position is 10 and stop position is 14, the extracted data from the
raw data q###12345$$$1 is 12345.