Codecore Logo
Quick Search
»
Advanced Search »

Input / Output Simulator Driver

RSS
This driver simulates a real input/output system and is helpful for demonstrating the system and viewing/designing touch screen interfaces when a real input/output system is not available. If your Elve system came preconfigured with an instance of this driver in the device list, you will likely want to replace this with the appropriate device driver for your system.

Manufacturer: Codecore Technologies, LLC


Configuration Settings

Events

Input State Changed

Occurs when the state changes on an input.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Output State Changed

Occurs when an output's state changes.

Whenever Filter:

  • PropertyIndex : Set this to the ID of the output (1-208) to watch for state changes.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:

  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Instance Properties

Connected

Gets a value indicating if a connection is established with the I/O device.

Accessibility : Read Only

Type: Boolean

InputNames

Get the input names. The QK108 does not provide configurable names so they are predefined.

Accessibility : Read Only

Type: Array

InputStates

Get the input states.

Accessibility : Read Only

Type: Array

OutputStates

Gets the state of all outputs. true=closed, false=open

Accessibility : Read Only

Type: Array

OutputNames

Gets the names or all outputs.

Accessibility : Read Only

Type: Array

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

TurnOnOutput ( Number )

Turns off an output.

Syntax

void TurnOnOutput( Number outputID )

Parameters

outputID : The ID of the output to turn on.

TurnOffOutput ( Number )

Opens an output

Syntax

void TurnOffOutput( Number outputID )

Parameters

outputID : The ID of the output to turn off.

ToggleOutput ( Number )

Toggles the on/off state of an output.

Syntax

void ToggleOutput( Number outputID )

Parameters

outputID : The ID of the output to toggle.

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.