Background
Phidget is a company that provides products for USB Sensing and Control. Phidget specialize in making affordable, easy to use sensors and controllers that require minimal electronics knowledge. Phidget covers vast range of sensors and motors.
Sensors
Motors
Phidget Protocol Handler Flow
TQLEngine provides phidget protocol handler, which is essentially a wrapper over the Phidget Driver that is provided by Phidget. Note that the developers are required to install the phidget driver for different platform (Linux, Windows, Mac) from the phidget website.
Phidget Protocol Handler Parameters
Phidget has a broad range of sensors and motors. The phidget protocol handler provides wrapper implementation for following Device Types. Adding support for additional device types will be provided on a need basis.
Phidget Interface Kit
Device Type | Name | Description | Example |
---|---|---|---|
InterfaceKit | |||
Servo Motor
GPS Sensor
LCD Display
USB Camera Parameter Structure
<USBCameraParameters> <ImageFormat></ImageFormat> <SaveToDisk></SaveToDisk> <ImageName></ImageName> <Size> <Height></Height> <Width></Width> </Size> <Configuration> <Standard></Standard> <Quality></Quality> <Channel></Channel> <Brightness></Brightness> <Contrast></Contrast> <Gamma></Gamma> <Gain></Gain> <Sharpness></Sharpness> <Saturation></Saturation> <Hue></Hue> </Configuration> </USBCameraParameters>
USB Camera Parameter Structure
Invoking UCAM Handler
Invoking UCAM Handler via Invoke
<Action Name="USBCameraImageAction"> <Workflow Limit="1" Live="1" Timeout="-1"> <Task name="Main" while="true"> <Event name="Argument" as="ActionArgument"/> <Invoke name="GetImage" waitFor="ActionArgument" post="ucam://"> <Message> <Value> <USBCameraParameters> <ImageFormat>[%:Event.Argument.USBCameraParameters.ImageFormat.Value:%]</ImageFormat> <SaveToDisk>[%:Event.Argument.USBCameraParameters.SaveToDisk.Value:%]</SaveToDisk> <ImageName>[%:Event.Argument.USBCameraParameters.ImageName.Value:%]</ImageName> <Size> <Height>[%:Event.Argument.USBCameraParameters.Size.Height.Value:%]</Height> <Width>[%:Event.Argument.USBCameraParameters.Size.Width.Value:%]</Width> </Size> <Configuration> <Standard>[%:Event.Argument.USBCameraParameters.Configuration.Standard.Value:%]</Standard> <Quality>[%:Event.Argument.USBCameraParameters.Configuration.Quality.Value:%]</Quality> <Channel>[%:Event.Argument.USBCameraParameters.Configuration.Channel.Value:%]</Channel> <Brightness>[%:Event.Argument.USBCameraParameters.Configuration.Brightness.Value:%]</Brightness> <Contrast>[%:Event.Argument.USBCameraParameters.Configuration.Contrast.Value:%]</Contrast> <Gamma>[%:Event.Argument.USBCameraParameters.Configuration.Gamma.Value:%]</Gamma> <Gain>[%:Event.Argument.USBCameraParameters.Configuration.Gain.Value:%]</Gain> <Sharpness>[%:Event.Argument.USBCameraParameters.Configuration.Sharpness.Value:%]</Sharpness> <Saturation>[%:Event.Argument.USBCameraParameters.Configuration.Saturation.Value:%]</Saturation> <Hue>[%:Event.Argument.USBCameraParameters.Configuration.Hue.Value:%]</Hue> </Configuration> </USBCameraParameters> </Value> </Message> </Invoke> <Log Message="******Invoked USBCamera******"/> <Output name="Result" as="ActionResult"> <Value> <Image>[%:[%:@Output:%]Invoke.GetImage.Message.Value:%]</Image> </Value> </Output> </Task> </Workflow> </Action>