
Crestron Active CNX Software
See the Visual Basic examples in the Crestron e-control™ SDK for examples using
this control with the CNMSX control system and a CEN-IO device.
Properties
To get and set the components properties right click the ActiveCNX icon and select
Properties. The “Property Pages” dialog appears. It permits the programmer to set
initial values
NOTE: These property values can always be set programmatically as well.
Property Pages Dialog Box
GatewayIPAddress - This property is the IP address of the PC that is running the
CNX Gateway software. If the configuration is a local server then this property is
need not be set, since it defaults to the local host (127.0.0.1). For distributed
applications there maybe one server and many PC clients (ActiveCNX controls)
connecting to the CNX Gateway from different places on the network (or Internet).
In this case, the CNX Gateway IP address needs to be set by typing the new value in
the property sheet or dynamically by setting the GatewayIPAddress Property.
Dynamic - This property is only used with CEN devices, therefore this property is
ignored if used with the CNMSX control system. If this value is set to TRUE, a
dynamic entry is added into the device's IP ID table. Otherwise, to get feedback to
the application, a static entry must be manually added to the IP table in the CEN
device (refer to the latest revision of the specific CEN documentation). The default
value of this property is FALSE.
There is only one connection per ActiveCNX Control so if connect is called the
second time Disconnect() is automatically called and Connect() is issued again with
the new properties. For multiple connections per application, simply drop multiple
ActiveCNX controls on the form.
Methods
The general procedure for using the components methods are to first call Connect()
to start the control session and when complete call Disconnect(). Between Connect()
and Disconnect() any combination of the sending and receiving the three data types
can be used. At anytime during development if the programmer needs to see
Introduction & Tutorial - DOC. 5777A Active CNX • 3
Commentaires sur ces manuels