From iLab Cookbook

Toolkits: PathConventionsInTheSharedDictionary

<< Back to the SharedPhidgets page


There is a path hierarchy of the entries in the shared dictionary at the SharedPhidgets server. The root path of all SharedPhidgets path entries is /sharedphidgets/, followed by the device identifier and the serial number. Thereafter, alle the status, control and metadata keys are added.

You can use the SharedPhidgets Controller tool to see all available entries in the SharedPhidgets dictionary. Here, you can also change values, delete entries and filter displayed entries by specified attributes.

Note: If you add your custom key-value-pairs to the dictionary, please use another root path then /sharedphidgets/! For example you can use the path /yourapplicationname/.

Here are some examples of the path entries in the dictionary:


// Command to control the servo number 0 of servo controller with the serial 481
/sharedphidgets/phidgetservo/418/setservoposition/0

// Location of the servo with the serial 7911
/sharedphidgets/phidgetservo/7911/location

// Value of sensor port 6 at the InterfaceKit with the serial 2501
/sharedphidgets/phidgetinterfacekit/2501/input/6

// Set the display text of the TextLCD with the serial 2334
/sharedphidgets/phidgettextlcd/2334/display/set
 



Retrieved from http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/PathConventionsInTheSharedDictionary
Page last modified on January 25, 2006, at 03:42 PM