WebConsole - System Options
71
NI Series WebConsole & Programming Guide
Configuring Application-Defined Devices
Elements such as
DUET_DEV_TYPE_DISC_DEVICE
and
DUET_DEV_POLLED
are defined within the
NetLinx.axi file.
The NetLinx.axi file contains both the new API definitions, as well as the pre-defined constants that are
used as some of the API arguments (ex:
DUET_DEV_TYPE_DISC_DEVICE
).
Example Code:
PROGRAM_NAME='DDD'
DEFINE_DEVICE
COM1 = 5001:1:0
COM2 = 5001:2:0
dvRECEIVER1 = 41000:1:0
dvDiscDevice = 41001:1:0
DEFINE_CONSTANT
DEFINE_TYPE
DEFINE_VARIABLE
DEFINE_START
STATIC_PORT_BINDING(dvDiscDevice, COM1, DUET_DEV_TYPE_DISC_DEVICE,
'My DVD', DUET_DEV_POLLED)
DYNAMIC_POLLED_PORT(COM2)
DYNAMIC_APPLICATION_DEVICE(dvRECEIVER1, DUET_DEV_TYPE_RECEIVER,
'My Receiver')
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
DATA_EVENT [dvRECEIVER1]
{
// Duet Virtual device data events go here
}
Sample code can be found within the DEFINE_START section, as shown in FIG. 49:
Physical device names are typically prefixed with "
dv
" and Virtual device names are
typically prefixed with "
vdv
".
Содержание NetLinx Master-Ethernet Card/Module NXC-ME260
Страница 8: ...vi NI Series WebConsole Programming Guide Table of Contents ...
Страница 12: ...Overview 4 NI Series WebConsole Programming Guide FIG 1 Internet Explorer with BonJour plug in ...
Страница 13: ...Overview 5 NI Series WebConsole Programming Guide ...
Страница 14: ...Overview 6 NI Series WebConsole Programming Guide ...
Страница 34: ...Onboard WebConsole User Interface 26 NI Series WebConsole Programming Guide ...
Страница 36: ...WebConsole WebControl Options 28 NI Series WebConsole Programming Guide ...
Страница 88: ...WebConsole System Options 80 NI Series WebConsole Programming Guide ...
Страница 104: ...Programming 96 NI Series WebConsole Programming Guide ...
Страница 156: ...Appendix A IPSec Configuration File 148 NI Series WebConsole Programming Guide ...
Страница 161: ...Terminal Program Port Telnet Commands 153 NI Series WebConsole Programming Guide ...