Do_Push; Do_Push_Timed; Do_Release; Double - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Keywords & Run-Time Library Functions (Cont.)

DO_PUSH

DO_PUSH_TIMED

DO_RELEASE

DOUBLE

DUET_MEM_SIZE_GET

DUET_MEM_SIZE_SET

ELSE

FALSE

NetLinx Programming Language Reference Guide
This keyword causes an input change from OFF to ON to occur on a specified
device-channel without the device-channel being activated by external means.
To prevent the program from stalling mainline too long, there is a 0.5 second
timeout on DO_PUSH. DO_PUSH defaults to a 0.5 second push on a channel
before issuing a DO_RELEASE for you (unless another DO_PUSH is executed for
the same channel). NetLinx will forcibly exit the DO_PUSH after 0.5 seconds,
regardless of the operation it is executing. If the channel is already ON, no
event is generated.
Note: The timeout feature is used to prevent un-released pushes and out of
control ramping.
DO_PUSH(DEVICE, CHANNEL)
Similar to DO_PUSH, except DO_PUSH_TIMED lets you specify the timeout, so
you can control the length of time that will pass before the automatic
DO_RELEASE is generated.
DO_PUSH_TIMED(DEV Device, INTEGER Channel, LONG Timeout)
Parameters:
• Device: The device to PUSH.
• Channel: The channel to PUSH.
• Timeout: The time (in 1/10ths of seconds) the PUSH remains active. If zero is
specified as the timeout then the timeout is 0.5 seconds. If
DO_PUSH_TIMED_INFINITE is specified as the timeout then the push never
times out.
DO_PUSH_TIMED (dvTouchPanel, 5, 10) // push button 5 for
1.0S
This keyword causes an input change from ON to OFF to occur on a specified
device and channel without the channel being deactivated by external means.
If the channel is already OFF, no event is generated.
DO_RELEASE(DEVICE, CHANNEL)
This keyword defines an intrinsic data type representing a 64-bit (double preci-
sion) signed floating-point value.
Displays the amount of memory allocated for Duet Java pool.
This is the current Java memory heap size as measured in Megabytes.
An example is a value of 5 = 5 MB.
Set the amount of memory allocated for Duet Java pool. This is the current Java
memory heap size as measured in Megabytes.
This feature is used so that if a NetLinx program requires a certain size of mem-
ory be allotted for its currently used Duet Modules, it can be reserved on the tar-
get Master.
Valid values are:
• 2 - 8 for 32MB systems
• 2 - 36 for 64MB systems
This setting does not take effect until the next reboot.
Note:"DUET_MEM_SIZE_SET(int)" should call REBOOT() following a set.
If the corresponding IF statement is false, the program will jump to the ELSE
section of the IF...ELSE set of statements.
This keyword is a CHAR constant contains the value 0.
While NetLinx does not support a BOOLEAN data type, zero is consider false
conditional expressions.
Reserved Identifiers
119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents