Thank you for your answers, though I am clearly in the deep end of the pool.
For Don Manfred - this is a link below:
www.phidgets.com
For Erel:
I took a look at your tutorial about Inline Java and used your Inline Java example as an experiment, the Java code just basically sees if there's a connection to the Phidget Encoder board and returns True or gives an error. The code actually compiled with no errors, but I do get a runtime error, that of course relates to how the code is actually setup I am sure. I do not understand as of yet how to setup the return I assume.
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private NativeMe As JavaObject
End Sub
#AdditionalJar: phidget22.jar
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.Show
NativeMe = Me
Dim s As String = NativeMe.RunMethod("main",Null)
Log(s)
End Sub
#If JAVA
import com.phidget22.*;
public void main() {
try {
Encoder ch = new Encoder();
ch.open(Phidget.DEFAULT_TIMEOUT);
boolean Enabled = ch.getEnabled();
ch.close();
} catch (PhidgetException ex) {
System.out.println("Failure: " + ex);
}
}
#End If
The runtime error I get is: (I just posted the first lines, thought that would be enough).
Program started.
Error occurred on line: 17 (Main)
java.lang.IllegalArgumentException: object is not an instance of declaring class
Line 17 is of course the runmethod call, it just tells me I am really in the deep end of the pool.
I have a feeling, that I should just post a job offer for someone to I guess create a library or wrapper (I am not sure of the terminology) out of the Phidget22.jar file???