Has anyone ever worked with phidgets?

  • Thread starter Thread starter scott_alexsk
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the use of a 0/16/16 Phidget for controlling digital outputs, specifically focusing on installation and usage of the Phidget Java library. Participants share their experiences and seek clarification on programming aspects related to this hardware.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • Scott inquires about the installation location of the Phidget Java library and requests better examples for using the 0/16/16 Phidget.
  • Chester points out that the digital outputs are documented in the product manual and explains that Java libraries can be installed in any directory, with the location specified when running the program.
  • Scott expresses that he is new to programming and seeks clarification on how to specify the library location in Java.
  • Chester suggests starting with simple programming examples before using Phidgets.
  • Scott clarifies that he has already taken a course in Java and is specifically asking about how to tell Java where the library is located.
  • A later reply provides a method for unpacking the JavaJNI zip file and compiling a simple example, detailing the commands to execute the program.

Areas of Agreement / Disagreement

Participants generally agree on the need for clarity regarding the installation and usage of the Phidget Java library, but there is no consensus on the best approach to learn or implement the programming tasks.

Contextual Notes

Limitations include the lack of clear documentation on the Phidget site and the varying levels of programming experience among participants, which may affect the understanding of the provided instructions.

Who May Find This Useful

Individuals interested in using Phidgets with Java, particularly those new to programming or seeking practical examples of implementation.

scott_alexsk
Messages
335
Reaction score
0
Hi,

I am going to be use a 0/16/16 phidget for a 'seemingly' simple task which amounts to just turning off and on an output at different rates (duty cycle), for different amounts of time. Firstly I was curious where I should install the phidget java library, on my computer, b/c it is not mentioned anywhere clearly. Also, I have seen only a few examples of code, and the exact commands concerning this particular phidget are not that obvious. The section for examples with inputs and outputs on the actual phidget site is still under construction. Does anyone know where I might get some better examples, or know anything relating to phidgets that might be useful to know?

Thanks,
-Scott
 
Technology news on Phys.org
Hi Scott,

The digital outputs are documented in the product manual for the 0/16/16 (PN 1012)
http://www.phidgets.com/documentation/Phidgets/1012.pdf

Java does not specify where libraries are installed. You unzip the java library wherever you want, and specify it's location to the java interpreter when you run the program.

Chester
 
Thanks,

So how would I specify it? I am very new to programming.

-Scott
 
I recommend starting with a few 'hello worlds' before getting into using Phidgets.

Chester
 
No, I already have taken a very good course in java. I just need to know how to tell java where the library is, that is all I am asking.
 
If you unzip the JavaJNI zip file downloaded from Phidgets.com to some directory, you can unpack the library in the same directory with -

> jar xf Phidget21.jar

You can then compile one of the simple examples -
> javac ManagerExample.java
And execute it -
> java ManagerExample
Phidget21 - Version 2.1.2 - Built Sep 7 2007 12:55:53
Press any key to exit...
attachment of PhidgetInterfaceKit v824 #1000012 (attached)
detachment of PhidgetInterfaceKit v824 #1000012 (unattached)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
8
Views
2K
Replies
4
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K