Using the %port Variable |
Top Previous Next |
The %port variable is initialized automatically to the COM port and may be used by a script to easily identify the port in use.
You might, for example, want to have the same script to be used by multiple instances of FileLink and still be able to create dialog messages, files names, etc. that include the active port number.
The following example creates a variable containing a file name that includes the port number. If FileLink is operating on COM3, the resulting variable would be out3.
SET output_file = "out" + %port
|