...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Lon:<value>;Lat:<value>;Alt:<Value>;Vel:<Value>;Head:<Value>;Status:<Value> Default Value for Lon, Lat, Alt, Vel, Head is: Unknown Default Value for Status is false |
Examples
Running Phidget Handler in Simulated Mode.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<USBCameraParameters> <ThingFacet Name="PhidgetSimulatedFacet"> <ImageFormat></ImageFormat> <Integer <SaveToDisk></SaveToDisk> <ImageName></ImageName>Name="SimulatedValue" Update="auto" KnownBy="PhidgetSimAction"/> <Size> <Height></Height><String Name="DeviceType"/> <Width></Width><String Name="SerialNumber"/> </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
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<Action Name="USBCameraImageAction"> <Action Name="PhidgetSimAction" Documentation="Returns integer values from 1 - 100 in Random order"> <Workflow Limit="1" Live="1" Timeout="-1"> <Task nameName="Main" whileWhile="trueTrue"> <Event nameName="Argument" asAs="ActionArgument"/> <Invoke nameName="GetImageReadValue" waitFor="ActionArgumentArgument" postGet="ucamphid://"> <Message> <Value> <USBCameraParameters> <ImageFormat> SerialNumber="[%:Event.Argument.USBCameraParametersSerialNumber.ImageFormat.Value:%]</ImageFormat> <SaveToDisk>" DeviceType="[%:Event.Argument.USBCameraParametersDeviceType.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>" Simulated="true"/> <Output Name="Result" As="ActionResult"> <Value> <SimulatedValue>[%:[%:@Output:%]Invoke.GetImageReadValue.Message.Value:%]</Image>SimulatedValue> </Value> </Output> </Task> </Workflow> </Action> </ThingFacet> |
Driver Installation Steps
Installing Phidget Driver
Installing V4l4j
...
1.Before installing the v4l4j some packages are needed to be installed. If you are running debian based operating system type the command
...
2. To download the v4l4j you need subversion(svn) tool, download and install it as shown below
sudo apt-get install subversion
3. Now download the library using the following command
svn co http://v4l4j.googlecode.com/svn/v4l4j/trunk v4l4j-trunk
4. Then go to the v4l4j-trunk directory (cd v4l4j-trunk) and start the build process by typing the command shown below
...
5. If you get this error "error: libv4lconvert.h: No such file or directory" , type
sudo apt-get install libv4l-dev
And do the build process again.
6. Once the build process is completed
7. Install by running command
...
8. Finally test the library by running command
...