define_int_command


Description:

Macro

Identifier

Displayed Name

Function Identifier

Group*

Unit*

Range Min*

Range Max*


Example using all options:

define_int_command(

cmdSetDac1,

"Set DAC1",

SetDac1,

2,

"steps",

0,

1023

);

Example without options:

define_int_command(

cmdSetCounter,

"Set Counter",

SetCounter,

,

,

,


);


*optional argument. If Group is omitted the Group-Number will default to 0.

The unique message id is derived from the row number, in source file where the macro is used.


Copy to your project:

define_int_command(Identifier, "DisplayedName", CommandFunction, optional_GroupNr, "optional_Unit", optional_Min, optional_Max);

define_int_command_id


Description:

Macro

Identifier

Displayed Name

Function Identifier

Id

Sub Id

Group*

Unit*

Range Min*

Range Max*


Example using all options:

define_int_command_id(

cmdSetDac1,

"Set DAC1",

SetDac1,

3,

1,

2,

"steps",

0,

1023

);

Example without options:

define_int_command_id(

cmdSetCounter,

"Set Counter",

SetCounter,

3,

1,

,

,

,


);


*optional argument. If Group is omitted the Group-Number will default to 0.


Copy to your project:

define_int_command_id(Identifier, "DisplayedName", CommandFunction, Id, SubId, optional_GroupNr, "optional_Unit", optional_Min, optional_Max);