Has anyone ever worked with phidgets?

  • Thread starter Thread starter scott_alexsk
  • Start date Start date
AI Thread Summary
The discussion centers on using a 0/16/16 Phidget for controlling output at varying duty cycles. The user seeks guidance on where to install the Phidget Java library and requests better code examples, as the official site is lacking in documentation. A response clarifies that Java libraries can be installed in any directory, and the user must specify the library's location when running programs. Further instructions are provided on unzipping the JavaJNI library and compiling a simple example, emphasizing the need to run basic Java programs before diving into Phidget-specific applications.
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)
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top