
Software Crestron Active CNX
methods, properties, or events available for the ActiveCNX they can bring up the
“Object Browser” in Visual Basic. The Object browser list for the ActiveCNX
control is shown below.
Object Browser List
Events
OnDigital
OnAnalog
OnSerial
OnError
OnConnect
OnDisconnect
The ActiveCNX control also triggers events used for feedback and for handling
errors. In “design mode” the user can select the ActiveX component from the combo
box on the left then select which event to capture. Once the event is selected, it is
entered into the program as a “sub procedure”. From this point, the programmer can
handle the signal however they choose. For example, a digital “on” could signal
another component to send a specific email. The event returns the join number and
the corresponding value. For example if a temperature sensor value on the Cresnet
network changes and the signal is fed into the “Virtual Touch Panel” symbol the
OnAnalog event is fired with its join number and the analog value (Long) as
parameters.
The OnConnect() event is only fired if the connection is successful after calling the
Connect() method. If Connect() fails for some reason the type and description is sent
to the OnError() event.
The OnDisconnect() event is only fired if there is a successful disconnection.
4 • Active CNX Introduction & Tutorial - DOC. 5777A
Komentáře k této Příručce