SYSINFOSET(characteristic as string, value as integer)
Description
Sets a system characteristic to value.
|
|
|
default |
|
CoordinateSystem |
Set to 72 for LoRes, 144 for HiRes. See Section 10.J. |
|
|
HeapVariableCount |
Sets the number of numeric variables to be allocated in the Dynamic Store, where n is the count of variables (default is 200.) This results in faster execution, since variables can be more quickly accessed. Variables are added to this area in order of compilation. Each variable used takes 22 bytes of space from the Dynamic Store. Consult manufactuer's documentation to find out how much Dynamic Store is on your device. Only the actual number of variables used is allocated. The full number in HeapVariableCount will only be used if you actually have that number of variables. This function should be called in your Program Startup code. |
200 |
|
Timer |
Timer feature allows you to generate your own events that fire after a set interval. This is useful for situations where you expect a response after a certain interval and you want to take action if you do not get that response. For example, if you are doing communications with another computer and you want to check from time to time if any data has come in. To set a timer, do the following statement:
SysInfoSet("Timer", 3000) 'Set a timer in 3 seconds.
To respond to the Timer event in your program, use something like this in your Events script:
If getEventType()=nsbTimer then MsgBox "Timer Event Received" 'respond to event SysInfoSet("Timer", 3000) 'set another timer End If
To cancel a timer currently in effect, do SysInfoSet("Timer", 0). If you exit your program, the timer is cancelled. There is no need to do SETEVENTHANDLED for this event. See the Timer sample to try this out. |
|
Example
SysInfoSet("HeapVariableCount",200)