background image

Variables

Variables are used to store information that can be retrieved or acted upon by the Event Manager, or by 

calls to RPC functions (see Variable Methods, page 

161

). You can create Variables that hold temporary 

data, or configure them to keep their value even when the WACI is reset. You can also use Variables to 

store data to be used by your own Web interface or Flash application stored on the WACI. Use the RPC 

calls to access the Variables within Flash, or VB Script to access them within an HTML page.

Variables are created independently of Events or Actions, and any Variable may be used in any Event or 

Action; however, a Variable may not be deleted until it is cleared from all the Events or Actions that use 

it.

Creating and Editing Variables

Variables may be created from the main Event Manager web page (see The Event Manager Web Page, 

page 

55

) by selecting the “Add variable” button.  To edit an existing Variable, first select it so that it is 

highlighted, then select the “Edit” button above the list of Variables.  The “edit variable” screen allows 

you to specify options and values for a Variable.

Some options for Variables will differ by the type of Variable.  The options common to all Variables are 

Persistence, Default Value, and Current Value.  

Group Name

Use the Group field to help organize Variables into meaningful groups. Enter any text into this field. On 

the main Event Manager page, click on the Group label at the top of the Variable list to sort the Variables 

by their Group name.

Persistence

When the persistence flag (“Persist” check box) is set, the “Current value” of the Variable will be stored 

to permanent storage whenever it is changed.  This value will persist through a system reset or power 

Содержание WACI NX-22

Страница 1: ...Reference Manual Programming Guide WACI NX 22 Revision 2009 09 03 Aurora Multimedia 205 Commercial Court Morganville NJ 07751 732 591 5800 732 591 5801 Fax www auroramultimedia com...

Страница 2: ...reproduce this guide or parts thereof in any form without the express written permission of Aurora Multimedia Inc Trademarks and registered trademarks are the properties of their respective owners So...

Страница 3: ...S 8 VI EXPANSION HARDWARE 17 VII FACTORY DEFAULT CONFIGURATIONS 18 VIII QUICK START 19 IX USING THE WACI 23 X WEB SERVER FEATURES 26 XI BOOT MENU REFERENCE 27 XII ADMIN WEB PAGES 31 XIII THE EVENT MAN...

Страница 4: ...THE NX 22 TO A LAN 20 STEP 3B DIRECT CONNECTION IF STATIC IP IS SET 21 STEP 3C DIRECT CONNECTION WITH A SERIAL CABLE 21 STEP 4 ACCESS THE WACI 21 STEP 5 CONFIGURE WACI USING THE ADMIN WEB PAGES 22 IX...

Страница 5: ...87 SYNTAX FOR HTTP POST 87 FAULT CODES 89 USING MACROMEDIA FLASH 90 VISUAL BASIC SCRIPTING 92 NOTE ON ERROR CHECKING 92 RPC QUICK REFERENCE 93 ERROR INFORMATION METHODS 100 GENERAL INFORMATION METHODS...

Страница 6: ...uipped with a standard web browser be it PC Pocket PC Palm or Mac is now enabled to access your system The WACI does all this with a powerful 32 bit engine with 32 bit pipeline memory in a small box t...

Страница 7: ...IV Box Contents Box Contents for the NX 22 12v 15 Watt Supply International Supply Kit 2 IR Port Emitters NX 22 Device Power Adapters IR Emitters...

Страница 8: ...ardware Robust security is ideal for most business network environments meets U S government and banking industry requirements IR True Trigger Highly Accurate IR Capture and reproduction Memory Total...

Страница 9: ...Impedance 200ma Sink Open Drain Relay SPDT 2 C Type NO NC CP Audio Unbalance Input 1 20Hz 20Khz Unbalanced Output 1 20Hz 20Khz Monitoring 32 Bit Internal Clock Calendar IR Learner 30KHz 2MHz Expansio...

Страница 10: ...at or above these ratings for extended periods of time may affect reliability Min Typ Max Units Notes WACI Input Voltage 8 12 18 V WACI NX Min 15watt supply Storage Temperature 20 55 C Digital I O Inp...

Страница 11: ...enu navigation 4 IR Learner Port 5 Reset paperclip button hole 6 Micro SD Memory Expansion 7 USB 2 0 Host 8 IR In Port 9 Power Adapter Port 10 Two 10 100 Auto MDX LAN Ports LAN1 has capability POE 11...

Страница 12: ...reen LED indicates that the WACI is powered and operating LCD Display The 106 x 56 backlit pixel based display helps with the diagnostic and setup of the WACI NX Access Boot Menu Press and hold the an...

Страница 13: ...using RS 422 485 communications the LEDs indicate activity on the corresponding TX TX RX and RX pins RS 422 Operation When using RS 422 operation the RX and RX should have a 120 Ohm resistor across t...

Страница 14: ...lays The Relays on the NX 22 have two connection types N O Normally Open and N C Normally Closed The Normal position is the state of the relay when it is not turned on not energized You can turn the r...

Страница 15: ...t to ground Setting the port as a 1 will put the port into a high impedance state The digital output can be used for triggering relays LEDs or any device that will not require more then 200mA of curre...

Страница 16: ...lit IR Learner The IR Learner is used to learn the IR codes from a device s remote control It can read many different types of remotes If it has trouble with your remote you may need to download from...

Страница 17: ...h speed connection up to 400Mbps to pass through small or large amounts of data for additional features like additional ports Bluetooth Voice Lift WIFI and much more With the use of a USB Hub even mor...

Страница 18: ...DHCP Enabled Yes IP Address From DHCP Subnet Mask From DHCP Gateway From DHCP Host Name WACI Password admin Default Serial Settings Baud rate 9600 baud Data bits 8 Parity bits None Stop Bits 1 Signal...

Страница 19: ...LED will immediately light as well as the LCD backlight It will remain lit while the WACI is plugged in All other LEDs will be off and the LCD will have a message Initializing The WACI will run throug...

Страница 20: ...in the Boot Menu or You need to set up the manual IP address for a static LAN network SKIP to STEP 3C Direct Connection with a Serial Cable Ignore steps 3A 3B STEP 3A Connecting the NX 22 to a LAN The...

Страница 21: ...10 10 IP Address 10 10 10 9 Subnet Mask 255 255 255 0 Gateway 10 10 10 1 STEP 3C Direct Connection with a Serial Cable You may also configure WACI directly from your computer with a serial connection...

Страница 22: ...use the WACI s host name or IP address to Upload User Defined Web pages to ftp IP Address or Host Name wwwpub View User Defined Web Pages http IP Address or Host Name Access Admin Web Pages Setup Diag...

Страница 23: ...Information IR Emitter Ports see page 39 Serial Ports see Serial Port Diagnostics page 43 Relay Ports see Relay Diagnostics page 45 DIO Ports see Digital I O Diagnostics page 46 System Logs see Log F...

Страница 24: ...TP server It is typically used to examine user access and determine network needs The log for the Web Server see Web Server page 47 allows you to monitor activity on the WACI s Web server It is typica...

Страница 25: ...ame wwwpub These custom web pages may be viewed with a web browser at http IP Address or Host Name For more information about the FTP server and uploading files see the Files section page 49 in the Ad...

Страница 26: ...r Pages ASP File Extension Hyper Text Markup Language HTML File Extension Flash Programs SWF File Extension Java Script JS File Extension Server Side Includes For example use include file MyInclude tx...

Страница 27: ...power connector The WACI Boot Menu will appear on the terminal screen WACI Boot Menu 0 Display Current Settings 1 Restore Factory Defaults 2 Configure IP Settings 3 Change Password 4 Set Host Name 5...

Страница 28: ...ctory Defaults This option restores the WACI s network settings to the factory defaults see Factory Default Configurations page 18 2 Configure IP Settings Use to enable DHCP or manually set an IP addr...

Страница 29: ...th ports will be on You will now need to upload the OS or boot file using a tfpt client To use the default Windows tftp client open a Command Prompt or DOS shell window and execute tftp i IP Address p...

Страница 30: ...o validate the integrity of the system RAM 8 Erase File System Deletes all files downloaded to the WACI These are normally the files that have been downloaded using an FTP client to ftp Host Name 9 OE...

Страница 31: ...ick on SETUP for firmware version date time setting network settings and network security settings DIAGNOSTIC firmware upgrade instructions logs options and other diagnostic tools for using and or mon...

Страница 32: ...etup This web page allows you to set several administrative options Many of these options are also available from the Boot Menu Firmware Version The firmware version installed on the WACI is displayed...

Страница 33: ...tting the time zone also allows the WACI to appropriately apply corrections for Daylight Savings Time You can set the active time zone by simply choosing one from the list of time zones Check the Auto...

Страница 34: ...ateway will be black and editable Host Name By setting the host name your WACI s web server may be accessed at http Host Name Similarly the FTP server may be reached at ftp Host Name SMTP Server Addre...

Страница 35: ...ed privileges The URL for user account setup is the IP address of the unit user ex 10 10 10 10 user Entering this URL address will bring up the user log on access which is limited by the access grante...

Страница 36: ......

Страница 37: ...This page allows you to change Serial Port and IR Port settings NX 22 has 2 Serial ports and 2 IR ports SQL Setup Using SQL Setup users are able to create tables make queries and store data in a WACI...

Страница 38: ...NX 22 reflects its supported diagnostics Clicking on either the button or the link on the web page will take you to the available diagnostic tools All the diagnostics are presented in this section in...

Страница 39: ...ion is available for the NX 22 It shows available memory current network settings IR Port Serial Port Relay Port and I O Port settings By clicking System Reset button you can remotely restart WACI It...

Страница 40: ...ed commands or to send RS 232 commands out the IR if used as a serial device The other selection is to learn a new remote or to add commands to an existing one IR Diagnostics This page allows you to t...

Страница 41: ...e the selected command by selecting Delete Command or delete the selected group including all its associated commands by selecting Delete Group Depending on your web browser you may need to scroll dow...

Страница 42: ...ame should contain letters and numbers only no spaces In Step 2 select the learn mode Standard is a simple sample of the incoming IR Try this mode first If it does not work then try alternate mode whi...

Страница 43: ...from the sensors and press the desired remote button you wish the WACI to learn The IR LED will glow slowly while the WACI is waiting for an IR signal and turn solid when it detects a signal If the r...

Страница 44: ...be displayed as decimal value 32 or hex value 20 Send String The second diagnostic allows you to send a byte stream through the port specified at the top of the page The byte stream you wish to send...

Страница 45: ...encoding rules 2 and 3 above you may add hex or decimal values using the hex and decimal fields just below the Send String text box Adding a hex number to your Send String with the Add tool simply pla...

Страница 46: ...as Digital Input 0 to 3V Digital Output Open Drain sink up to 200mA When the state of the port is High the LED light will be on Log Files Log files for the WACI servers are available for the WACI NX...

Страница 47: ...this log to monitor calls made to the WACI by your custom web applications It is quite useful when debugging your application Event Manager Log Logs information about the status and execution of Even...

Страница 48: ...s Firmware upgrade files will have either the extension AFW for operating system upgrades or ABT for bootstrap loader upgrades Once your upgrade file has been located the web page will tell you the tf...

Страница 49: ...e While the file is uploading the serial LEDs will blink one at a time Once the file is uploaded the WACI will reset and you will be able to access the WACI s web pages again Two important notes You w...

Страница 50: ...ne may be used to manage files on the WACI s FTP server File Structure The WACI automatically creates three directories at the root level of its FTP server EventManager holds data for your custom Even...

Страница 51: ...mands for that device are saved as a group in one file you choose a name for this Group File in Step 1 of the IR learning process These groups of commands are stored as data files in the IR directory...

Страница 52: ...zip to be easily accessed from custom web pages At this time the WACI does not support PERL PHP or built in databases Uploading Files You may use any FTP client or web browser to manage the files in...

Страница 53: ...Finally drag and drop selected files from your File Explorer...

Страница 54: ...of Events Actions Variables In the simplest terms when certain conditions in hardware or variables are met the WACI may be programmed to automatically perform specified tasks To put this into the cont...

Страница 55: ...ent and display all its associated Actions Events Actions and Variables may be added edited and deleted from this page Clicking on the heading at the top of the Event or Variable list will sort the re...

Страница 56: ...ng configurations Restoring copying or updating an Event Manager file see EventManager page 51 Disable the Event Manager by selecting the Disabled radio button at the top of the page Enable the Event...

Страница 57: ...th the Event as described in the next two sections Types of Events As mentioned earlier Events are triggered when a condition is met in the hardware a Variable matches a specific value or an expressio...

Страница 58: ...27 seconds or 36 hours Variable A Variable Event is triggered when the value of a Variable matches a constant or expression If the expression check box is checked then the expression defined by Trigge...

Страница 59: ...ined initial state Telnet The Telnet Event connects via TCP to a Telnet server and monitors any incoming data The connection to the Telnet server will be continuously maintained and if the connection...

Страница 60: ...of one of the Ethernet Ports changes IR Input The IR Input Event allows you to trigger events based on the IR command received from the external device connected to WACI using IR In port Named Event T...

Страница 61: ...ression page 73 When the expression evaluates to a value not equal to 0 then the Event triggers and executes its Actions If the expression check box is UNCHECKED the value specified in the Trigger val...

Страница 62: ...the Event is place on the remote WACI This remote copy cannot be changed but can be seen if you open the Event Manager web page on the remote WACI The copy will have the IP address of the local WACI...

Страница 63: ...o edit an Action first select an Event and then select the associated Action When the desired Event and Action are both highlighted the Edit button above the list of Actions may be selected From the e...

Страница 64: ...Variable s type is not changed by the assignment Prior to assigning the result of the expression to the Variable the result is converted to the Variable s type e g a number The interpretation and calc...

Страница 65: ...The E mail Action sends an e mail to a set of recipients There are fields for the To Cc and Bcc addresses as well as a field for the message body The message body can be either a simple text string or...

Страница 66: ...Output to field The content of the Output value field is written to the log file The Output value can contain either an expression or a simple piece of text Log files are created in a logs directory...

Страница 67: ...Value of High or Low to the specified port The state of the DIO port will change only if the port is set as an output You can check whether a port is set as an input or output using the DIO diagnosti...

Страница 68: ...sent to a device which use the UDP as its means of communication via LAN PJLink PJLink action also known as Projector link is an action that allows easy communication to a PJLink device via LAN Inste...

Страница 69: ...tions may be Infinite execute forever or until another Action cancels the Event Two notes first checking the Infinite checkbox will override the Execute number of times field Second the associated Eve...

Страница 70: ...x and specify the host name or IP address of the remote WACI To make setup easier make sure that both the controlling WACI and remote WACI are connected to the network and powered up Network Timeouts...

Страница 71: ...ariables may be created from the main Event Manager web page see The Event Manager Web Page page 55 by selecting the Add variable button To edit an existing Variable first select it so that it is high...

Страница 72: ...r failure If a Variable has the persistent flag set the Default value is not used Current Value The Current value is the working value of the Variable It is the value accessed in all Event and Action...

Страница 73: ...10 CHAR 0o102 B The following functions are available for use when the expression check box is checked in one of the supported actions The following types of actions support expressions Variable Seria...

Страница 74: ...ing gives the date and time in text form Example GetSystemTime HEX Char Returns a HEX string that represents the character value passed in Example HEX A HEX var_name LStr string integer Returns string...

Страница 75: ...2find bc returns 4 Rtrim string Returns string Removes trailing spaces from string Example Rtrim test returns test strlen string Returns Integer Returns the number of characters in the string Example...

Страница 76: ...dentifier For example Hello in quotes is a string value in the expression Hello without quotes is an identifier for a Variable Special characters inside string values inside quotes must be escaped see...

Страница 77: ...comparison operators Logical operators Bitwise operators Range operator in Assignments Addition Plus Operator The operator is used to append one string to another or to add two integer values together...

Страница 78: ...es to this value 4 5 20 Hello 3 HelloHelloHello 3 Hello 0 Division Divide Operator The divide operator is valid only for numerical values and Variables Use this operator to divide one numerical value...

Страница 79: ...example assuming MyNumber has an integer value of 4 and MyName has a string value of John This expression resolves to this value MyNumber 4 0 MyNumber 4 0 MyNumber 5 1 MyName John 0 MyName ul 1 0 John...

Страница 80: ...e The expression will return 1 if the first token has a smaller value than the second and 0 if the second value is smaller or equal For example assuming MyNumber has an integer value of 4 This express...

Страница 81: ...esolves to this value 3 3 4 4 1 1 4 5 0 0 4 4 0 3 6 0 0 Logical Or Operator Assume you have two Boolean expressions Expression1 and Expression2 each returning true 1 or false 0 The logical or operator...

Страница 82: ...g four bits 12 1 1 0 0 10 1 0 1 0 12 10 1 0 0 0 Therefore 12 10 Binary 1000 Decimal 8 Bitwise Or Operator The bitwise OR operator performs the logical OR operation bit by bit between two integers This...

Страница 83: ...t Operator The operator stores a value R Value into a Variable L Value The value on the left of the assignment operator is the L Value The result of the assignment is an R value and cannot be used in...

Страница 84: ...er also contains 3 MyString ll Heo MyString also contains Heo 10 3 Illegal L Value not a Variable Multiplication Assignment Operator This operator multiplies two numbers or can be used for creating a...

Страница 85: ...string Matches one or more characters Matches any single character Either character can be used anywhere within a string constant When used with a comparison operator he llo he o and he o will all mat...

Страница 86: ...feed Character code 0x0D o Origin that triggered Event Port number Variable name etc The value depends on the type of Event r Carriage return Character code 0x0A t Horizontal tab Character code 0x09 v...

Страница 87: ...Error Checking RPC Quick Reference to Methods Detailed List of All Methods RPC Server Logs As noted in Diagnostics web pages section key information regarding the RPC server can be retrieved from the...

Страница 88: ...the end of this reference for details about the returned values for any given method These returned values are denoted by the text out retval in the Syntax and Parameters sections The response to the...

Страница 89: ...allocation failure 4 Configuration does not support action i e setting a Digital I O output when it is configured as an input 5 Failed to find entry in database registry or FRAM 6 Failed to store per...

Страница 90: ...on href URLarr thispage split theIP URLarr 2 theFILE MyWACIShockWaveFlashFile swf script Next use this bit of script to embed the flash file in the desired area of the web page script type text javasc...

Страница 91: ...es based on buttons text fields constants or whatever else is appropriate for your page WACI_Call method Desired RPC Method WACI_Call param1 Parameter 1 for the Method WACI_Call param2 Parameter 2 for...

Страница 92: ...s return value Strings will return the null string integers will return 1 and Booleans will return FALSE See the detailed list of methods at the end of this reference for details about the parameters...

Страница 93: ...1 2 12 Serial Port Pin Out Diagram 13 LED Indicators for Serial Ports 1 2 13 RS 422 Operation 13 RS 485 Operation 13 Network Interface 14 LAN Port 14 LED Indicators 14 Relays 14 Relay Ports 1 2 14 LE...

Страница 94: ...NU WITH A SERIAL CONNECTION 27 0 DISPLAY CURRENT SETTINGS 27 1 RESTORE FACTORY DEFAULTS 28 2 CONFIGURE IP SETTINGS 28 3 CHANGE PASSWORD 29 4 SET HOST NAME 29 5 DOWNLOAD NEW FIRMWARE 29 6 LAMP TEST 30...

Страница 95: ...ents 57 Clock 57 Timer 58 Variable 58 Serial 58 DIO Digital Input Output 59 Startup 59 Telnet 59 Network 60 IR Input 60 Named Event 60 Other Event Options 61 Group Name 61 Execute Actions Concurrently...

Страница 96: ...ator 79 Greater Than or Equal Comparison Operator 80 Less Than Comparison Operator 80 Less Than or Equal Comparison Operator 80 Logical And Operator 80 Logical Or Operator 81 Logical Not Operator 82 B...

Страница 97: ...endExpression NetCard Expression MaxWaitMS 108 Telnet_Read NetCard 108 Telnet_ClearReadBuffer NetCard 109 Telnet_ReadBufferCount NetCard 109 LOGGING METHODS 109 Log_Write FileName IsExpression Buffer...

Страница 98: ...d 133 GetEventName EventId 134 GetEventOption EventId OptionType 134 GetEventSchClockType EventId 134 GetEventSchRecurType EventId 135 GetEventSchMaskOrDay EventId 135 GetEventSchMonth EventId 136 Get...

Страница 99: ...me Type Delay DutyCycle StopAfter Port Output 157 SetActionHost ActionId 158 SetActionOption ActionId OptionType OptionVal 159 SortActions SortType Direction 159 VARIABLE METHODS 161 AddVariable Name...

Страница 100: ...ng Returns the description of the error from the last failed method call Syntax HRESULT GetLastErrorString out retval BSTR ErrorString Parameters ErrorString out retval String describing an error Rema...

Страница 101: ...parated from the next port value by a comma Element Field Type Example 0 Date DATE 1 Serial Rcv Buffer Count BSTR 0 1092 2 Relays BSTR 1 0 0 1 3 DIO IsOutput BSTR 0 1 0 0 4 DIO State BSTR 1 1 1 1 5 DI...

Страница 102: ...tor password and FALSE if password does not match Remarks If this function is called with an invalid password more than 25 times then ValidatePassword will return FALSE for the next 15 minutes regardl...

Страница 103: ...out retval VARIANT_BOOL Success Parameters Milliseconds in The number of milliseconds to wait Success out retval TRUE if the Milliseconds value is greater than or equal to 0 and less than or equal to...

Страница 104: ...P Parameters IP out retval String containing the current IP address of the device such as 10 0 1 3 Net_GetIPAddressEx NetCard Returns the current IP address of the device Syntax HRESULT Net_GetIPAddre...

Страница 105: ...st mechanism Syntax HRESULT Net_PostHtmlData in BSTR Url in BSTR PostData out retval BSTR RetData Parameters Url in The server address to post to e g http waci rpc PostData in A string that represents...

Страница 106: ...ers SenderId in Sender s email address e g joe mycompany com ToIds in Email addresses to be included in the To line of the email Separate each email address with a semicolon CcIds in Email addresses t...

Страница 107: ...Id in Email address to send server errors and responses to This parameter is normally set to the same address as the SenderId ReturnRcpId in Email address to send return receipt requests to Pass an em...

Страница 108: ...d Failed Telnet_SendExpression NetCard Expression MaxWaitMS Writes a string to the log file identified by FileName Syntax HRESULT Telnet_SendExpression in long NetCard in BSTR Expression in long MaxWa...

Страница 109: ...eared successfully Telnet_ReadBufferCount NetCard Counts the number of characters in the buffer Syntax HRESULT Telnet_ReadBufferCount in long NetCard out retval long Count Parameters Netcard in ID of...

Страница 110: ...the specified log file Syntax HRESULT Log_ReadFile in BSTR FileName in long MaxLength out retval BSTR RetData Parameters FileName in Name of the log file MaxLength in Number of bytes to return in RetD...

Страница 111: ...s cleared FALSE on failure Log_NextFile Wildcard Read the name of the last file in the Logs directory Use this to loop through all filenames and use wildcards to filter results Syntax HRESULT Log_Clea...

Страница 112: ...1 0 HARDWARE Remarks Valid values for the different settings are Baud 300 600 1200 2400 4800 9600 19200 38400 57600 and 115200 Parity ODD EVEN NONE Stop Bits 1 2 Flow Control HARDWARE SOFTWARE NONE Se...

Страница 113: ...rial data before timing out NotSent out retval If an error occurred or the timeout expired then this is the number of bytes not sent otherwise this value is set to 0 Remarks The rules applied for Expr...

Страница 114: ...Port Returns the number of characters in the read buffer for the specified port The maximum number of characters stored by the circular buffer is 4K Syntax HRESULT Serial_ReadBufferCount in long Port...

Страница 115: ..._Off Port Switches off the relay at the specified port Syntax HRESULT Relay_Off in long Port out retval VARIANT_BOOL Success Parameters Port in Port number for the relay Valid values are 1 2 3 and 4 S...

Страница 116: ...is on 0 if is off Relay_GetPortCount Returns the number of relays supported by the WACI hardware Syntax HRESULT Relay_GetPortCount out retval long NumPorts Parameters NumPorts out retval Number of rel...

Страница 117: ...al I O port to an active low state approximately 0 3v Syntax HRESULT DIO_OutputMode_Close in long Port out retval VARIANT_BOOL Success Parameters Port in Port number for the digital I O Valid values a...

Страница 118: ...of the specified DIO line Syntax HRESULT DIO_IsPulledUp in long Port out retval long Result Parameters Port in Port number for the digital I O Valid values are 1 2 3 and 4 Result out retval If the ret...

Страница 119: ...Remarks Commands are typically grouped together by device IR_SendCommandEx Port Group Command Sequence Repeat Sends an IR command out the specified IR port Syntax HRESULT IR_SendCommandEx in long Port...

Страница 120: ...r Valid values are 1 2 3 and 4 Sequence in Denotes which of the two sequences in the IR data stream should be output Set to 1 to output the one time stream and 2 for the repeat stream DATA in A string...

Страница 121: ...01C 09C4 0030 03CC 0030 03CC 0034 00D4 wFreq Calculation wFreq 4 145146 106 Carrier_Freq or Carrier_Freq 4 145146 106 wFreq In the above example the wFreq value was 005C or 92 decimal So the carrier f...

Страница 122: ...s in the specified group Remarks If a group contains no commands then the returned string is IR_ListAllCommands Returns an array containing all commands from all groups Syntax HRESULT IR_ListAllComman...

Страница 123: ...specified device Model out retval String containing the model name or number of the device Remarks This function returns the string that follows the Model label in the WIR file associated with the spe...

Страница 124: ...containing comments about the specified device Remarks This function returns the string that follows the Comment label in the WIR file associated with the specified Group The Comment for the specifie...

Страница 125: ...he Event Manager will not execute any Events Syntax HRESULT EnableEventManager in VARIANT_BOOL Enable out retval VARIANT_BOOL Success Parameters Enable in Set to TRUE to enable the Event Manager and F...

Страница 126: ...your interested in must already exist Or the following bits together to set the ChangeMask as desired The ChangeMask bits are defined as follows Bit Value Bit Description 0x00000001 Bit 0 One of the V...

Страница 127: ...in Type of the Event e g Serial see GetEventType EventId page 139 for a list of types Concurrent in Set to 1 to execute Actions concurrently and 0 otherwise Source in Port Variable etc to be used for...

Страница 128: ...d by its ID Syntax HRESULT CloneEventById in long EventId in long CloneActions in BSTR NewName out retval long CloneID Parameters EventId in ID of the Event to modify CloneActions in Duplicate all the...

Страница 129: ...x in long Idx out retval long EventId Parameters Idx in The index of the Event in the Event list EventId out retval Event ID of the specified Event Remarks GetEventByIdx is normally used as part of a...

Страница 130: ...val 1 if Actions should be executed concurrently 0 if Actions should be executed sequentially Remarks When Actions are set to execute sequentially the next Action in the list will not execute until th...

Страница 131: ...in ID of the Event Group out retval A returned string filled in with the group for the specified Event GetEventNetCard EventId Returns the group name for the Event with a specified ID Syntax HRESULT G...

Страница 132: ...ray of Event IDs Remarks Use GetEventIds to get the complete list of Event IDs stored by the Event Manager This function is more efficient than calling GetEventCount and GetEventByIdx GetEventIdxById...

Страница 133: ...ge in data Syntax HRESULT GetEventMatch in long EventId out retval BSTR Match Parameters EventId in ID for the specified Event Match out retval The value that incoming data should be compared against...

Страница 134: ...l long OptionVal Parameters EventId in ID for the specified Event OptionType in Type of option for the Event OptionVal out retval Value of the specified option for the Event Remarks Pass one of the fo...

Страница 135: ...curType EventId Returns the type of schedule used by the specified Event Syntax HRESULT GetEventSchRecurType in long EventId out retval long RecurType Parameters EventId in ID for the specified Event...

Страница 136: ...000020 32 5 Friday 0x00000040 64 6 Saturday Remarks This function is valid only for Clock Events GetEventSchMonth EventId Returns the month value for the Event s schedule Syntax HRESULT GetEventSchMon...

Страница 137: ...pecified Event EveryN out retval Repeat every N periods The period depends on the type of schedule e g Weekly Monthly etc Remarks This function is valid only for Clock Events The Recur Every value Eve...

Страница 138: ...that the Event is to be triggered Syntax HRESULT GetEventSchSecond in long EventId out retval long Second Parameters EventId in ID for the specified Event Second out retval Integer representing the sc...

Страница 139: ...where d represents a number Telnet IP address or host name of the Telnet server to connect to GetEventType EventId Returns the type of the Event with a specified ID Syntax HRESULT GetEventType in lon...

Страница 140: ...was successfully set FALSE if setting the Event failed Remarks Call this function to set up an Event After making this call a call to SetEventSchedule is required for all Events of type Clock or Time...

Страница 141: ...entId in long NetCard out retval VARIANT_BOOL Success Parameters EventId in Name of the Event to set the information for NetCard in The ID of the network port the event should monitor Success out retv...

Страница 142: ...ecute concurrently 2 Expression 0 The trigger value is a simple text string 1 The trigger value is an expression 3 Disable 0 The Event is enabled 1 The Event is disabled If both SetEventSchedule and S...

Страница 143: ...in ID of the Event to modify the schedule of Recur in The recurrence pattern used for this schedule Recur value Description 0 Once 1 Daily 2 Weekly 3 Monthly 4 Yearly MaskOrDay in Mask of days or spec...

Страница 144: ...e SetEventSchedule SortEvents SortType Direction Sorts the list of Events by the sort type and direction Syntax HRESULT SortEvents in long SortType in long Direction out retval VARIANT_BOOL Success Pa...

Страница 145: ...ger Success out retval TRUE if the Events are successfully sorted FALSE if sorting the Events failed Remarks An Action executed by the triggered Event has access to the Data value by using the g escap...

Страница 146: ...onds to delay between each successive execution of the Action This is a real number and non integer values are allowed StopAfter in Number of times to repeat the Action Set to 1 to repeat infinitely P...

Страница 147: ...utions of the Action This is a real number and non integer values are allowed StopAfter in Number of times to repeat the Action Set to 1 to repeat infinitely Port in Location where the output is sent...

Страница 148: ...tId in long Idx out retval VARIANT_BOOL Success Parameters EventId in ID of the Event that owns the Action Idx in Index into the Event s list of Actions that identifies which Action to delete Success...

Страница 149: ...nt can contain up to 16 Actions GetActionByName EventId Name Returns the Action ID for a specified Event ID and Action name Syntax HRESULT GetActionByName in long EventId in BSTR Name out retval long...

Страница 150: ...ggered before executing the Action For Actions that execute serially the value is the amount of time to wait after the previous Action completed GetActionDutyCycle ActionId Returns the number of secon...

Страница 151: ...n Event This function is more efficient than calling GetActionCount and GetActionByIdx GetActionInfo ActionId Returns an array filled with the data for an Action Syntax HRESULT GetActionInfo in long A...

Страница 152: ...n long OptionType out retval long OptionVal Parameters ActionId in ID for specified Action OptionType in Type of option to examine OptionVal out retval Value of the specified option Remarks Three opti...

Страница 153: ...oup Command to execute The string value is a combination of the name of the IR group a and the name of a command within that group e g VCR Play HTTP Post A simple string or complex expression This val...

Страница 154: ...e xyz com bob abc com tom ccaddr com support foo com Log The name of the file to write the logged information to Telnet The IP address or host name of the Telnet server to command All other cases The...

Страница 155: ...2 6 Send an Infrared command NX 22 7 HTTP post command NX 22 8 Email message NX 22 9 Log to file NX 22 10 Telnet command NX 22 MoveActionByIdx EventId Idx Where Changes the order of execution for the...

Страница 156: ...ng Output to Port This is a real number and non integer values are allowed DutyCycle in Number of seconds to delay between each successive execution of the Action This is a real number and non integer...

Страница 157: ...sive execution of the Action This is a real number and non integer values are allowed StopAfter in Number of times to repeat the Action Set to 1 to repeat infinitely Port in Location where the output...

Страница 158: ...mes to repeat the Action Set to 1 to repeat infinitely Port in Location where the output is sent Output in Data that should be output Success out retval TRUE if specified Action settings were updated...

Страница 159: ...etActionOption in long ActionId in long OptionType in long OptionVal out retval VARIANT_BOOL Success Parameters ActionId in ID for specified Action OptionType in Type of option to modify OptionVal in...

Страница 160: ...rt to perform Direction in Direction of the sort 1 for ascending and 0 for descending Success out retval TRUE if the Actions were successfully sorted FALSE if sorting the Actions failed Remarks This f...

Страница 161: ...Variable Value in Current value of the new Variable Persist in Set to 1 to make the Variable persistent 0 if not VarId out retval ID for the new Variable Remarks Default and Value The returned value i...

Страница 162: ...n The value to be given to the Variable The format of this parameter should match the type of the Variable to be assigned see GetVariableValue VarId page 166 Success out retval TRUE if specified Varia...

Страница 163: ...able in the array of Variables VarID out retval ID of specified Variable Remarks Use this function within a loop to get a list of all Variables on the system The first Variable in the list has an inde...

Страница 164: ...that represents the Variable s default value The string value will need to be converted by the caller into the actual type e g a Variable of type long The format for the returned string depends on the...

Страница 165: ...ied Variable Persist out retval Returns 1 if the Variable is persistent and 0 if it is not Remarks When a Variable is persistent the value of the Variable is stored to permanent storage after each tim...

Страница 166: ...s VarId in ID of specified Variable Value out retval String containing the current value of the specified Variable Remarks The returned value is a string that represents the stored value of the Variab...

Страница 167: ...consist of letters numbers and the underscore All other characters are not permitted Default and Value The returned value is a string that represents the stored value of the Variable The string value...

Страница 168: ...nverted by the caller into the actual type e g a Variable of type long The format for the returned string depends on the Variable s type see GetVariableType VarId page 165 Persistence When a Variable...

Страница 169: ...sort type and direction Syntax HRESULT SortVariables in long SortType in long Direction out retval VARIANT_BOOL Success Parameters SortType in Type of sort to perform Direction in Direction of the so...

Страница 170: ...oved or E External equipment other than supplied by manufacturer in determination of manufacturer shall have affected the performance safety or reliability of the product F Part s are no longer availa...

Страница 171: ...the interference by one or more of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and the receiver Connect the equipment into an outlet...

Страница 172: ...mation Methods 100 Event Manager Methods 125 Events 24 47 49 50 54 55 57 58 59 61 63 65 71 76 Expansion Hardware 17 F Factory Default Configurations 18 FCC Part 15 Statement 171 Firmware 23 24 32 48 4...

Страница 173: ...34 NX 22 Parts Overview 11 P Power Status Indicators 12 Power Adapter 7 8 11 12 power over Ethernet 14 Power Port 12 Q Quick Start 19 R Relay Diagnostics 45 Relay Methods 115 Relays 14 Remote Procedu...

Страница 174: ...Time Zone 33 U Using the WACI 23 V Variables 50 54 55 61 71 72 73 78 84 W Web Server Features 26 17...

Отзывы: