Appendix b: clock manager netlinx programming api, Types/constants – AMX NI-2100/3100/4100 User Manual

Page 149

Advertising
background image

Appendix B: Clock Manager NetLinx Programming API

141

NI Series WebConsole & Programming Guide

Appendix B: Clock Manager NetLinx
Programming API

Types/Constants

The NetLinx.axi file that will ship with NetLinx Studio includes the following types/constants:

(*-----------------------------------------------------------------------------------*)

(* Added v1.28, Clock Manager Time Offset Structure *)

(*-----------------------------------------------------------------------------------*)

STRUCTURE CLKMGR_TIMEOFFSET_STRUCT

{

INTEGER HOURS;

INTEGER MINUTES;

INTEGER SECONDS;

}

(*-----------------------------------------------------------------------------------*)

(* Added v1.28, Clock Manager Time Server Entry Structure *)

(*-----------------------------------------------------------------------------------*)

STRUCTURE CLKMGR_TIMESERVER_STRUCT

{

CHAR IS_SELECTED; (* TRUE/FALSE *)

CHAR IS_USER_DEFINED; (* TRUE/FALSE *)

CHAR IP_ADDRESS_STRING[48]; (* Allow enough room for IPv6 in the future *)

CHAR URL_STRING[32]; (* Example: time.organization.net *)

CHAR LOCATION_STRING[32]; (* Example: Boulder, Colorado, US *)

}

(* Added v1.28, Clock Manager *)

INTEGER CLKMGR_MODE_NETWORK = $01; (* Used to enable Clock Manager Functionality *)

INTEGER CLKMGR_MODE_STANDALONE = $02; (* Use a free-running clock - legacy

behavior. *)

Advertising
This manual is related to the following products: