Search Results

by StanGreen
Thu Jul 09, 2020 9:31 am
Forum: Java
Topic: set DeviceSerialNumber?
Replies: 4
Views: 15074

Re: set DeviceSerialNumber?

I think you want to use setDeviceSerialNumber(serial) in Java. Our code generator gives me this for 1014 import com.phidget22.*; class Example { public static void main(String[] args) { try { DigitalOutput ch = new DigitalOutput(); ch.setDeviceSerialNumber(123456); ch.open(Phidget.DEFAULT_TIMEOUT);...
by StanGreen
Thu Jul 09, 2020 8:53 am
Forum: Java
Topic: set DeviceSerialNumber?
Replies: 4
Views: 15074

Re: set DeviceSerialNumber?

I found the way to do this:
DigitalOutput.setDeviceSerialNumber(serial);

I don't understand why the example will not compile.
by StanGreen
Thu Jul 09, 2020 8:29 am
Forum: Java
Topic: set DeviceSerialNumber?
Replies: 4
Views: 15074

set DeviceSerialNumber?

I have an app that controls multiple "1014 - PhidgetInterfaceKit 0/0/4", which requires the use of the serial numbers. The API doc does not show how to set the serial number. (BTW: is there a real Java Doc like in 21? The 22 API doc is very sparse.) The example shows: int serial = 324781; ...
by StanGreen
Wed Jul 08, 2020 10:19 pm
Forum: Java
Topic: Convert from Phidget21 to 22
Replies: 9
Views: 21673

Re: Convert from Phidget21 to 22

This is such a pain. Why not simply create a wrapper class so as not to break applications! I think the best thing for me to do is to write my own wrapper class. Again, I should not have to do this.

:( :( :( :(
by StanGreen
Sat Jul 04, 2020 10:34 am
Forum: Java
Topic: Convert from Phidget21 to 22
Replies: 9
Views: 21673

Convert from Phidget21 to 22

I have a 32bit Java application I am trying to convert to 64bit. The application allows for control of multiple "1014 - PhidgetInterfaceKit 0/0/4 Version 707". I make extensive use of the InterfaceKitPhidget class in Phidget21. It seems that this class has been removed in Phidget22.jar. I ...