SET.PORT.PARAMS() |
![]() ![]() ![]() |
The SET.PORT.PARAMS() function sets the communications parameters for a serial port. This function is not available on the PDA version of QM.
Format
SET.PORT.PARAMS(fvar, params)
where
The SET.PORT.PARAMS() function returns true (1) if successful, false (0) if an error occurs.
The params dynamic array contains the following data:
To allow for the possibility of additional fields being added in future releases, programs should use the GET.PORT.PARAMS() function to retrieve the current settings, modify this as required and then use SET.PORT.PARAMS() to set the new parameters.
Example
PARAMS = GET.PORT.PARAMS(PORT) PARAMS<2> = 9600 IF NOT(SET.PORT.PARAMS(PORT, PARAMS) THEN STOP 'Error setting parameters' |