Search found 4 matches

by Metzsch
Wed Oct 17, 2012 4:32 pm
Forum: Java
Topic: TC-08 in a Java application
Replies: 6
Views: 27342

Re: TC-08 in a Java application

Finally I got it running in Java... Got help from the JNA group, and it turned out that all I had to do to get the temperature readings now was to change: FloatByReference[] ArrayFBR = new FloatByReference[9]; With: float[] ArrayFBR = new float[9]; And then the TC-08 understood the datatype I handed...
by Metzsch
Tue Oct 16, 2012 6:14 pm
Forum: Java
Topic: TC-08 in a Java application
Replies: 6
Views: 27342

Re: TC-08 in a Java application

I only use one array, but I put a value in the array before handing it over. Se the examples below. I have seen ypu example, but I am not familiar with writing the wrapper.dll in C og C++, so thats why I chose JNA, as their code works fine with other dll-files I use for my application. I have tried ...
by Metzsch
Sat Oct 13, 2012 4:55 pm
Forum: Java
Topic: TC-08 in a Java application
Replies: 6
Views: 27342

Re: TC-08 in a Java application

Now I pass the temp_buffer and the times_ms_buffer as arrays with the length of 9. I did not do that before. But still, it is as if the TC08 does not write any values in the buffer-array. It just passes through the function without changing the value in the array. I have changed the data types to so...
by Metzsch
Fri Oct 12, 2012 11:29 am
Forum: Java
Topic: TC-08 in a Java application
Replies: 6
Views: 27342

TC-08 in a Java application

I have a problem reading the temperature from a PicoLog TC08. I access the unit with Java Native Access (http://jna.java.net/), because there is no original dll-file for Java. I can see that Java can communicate with the TC08, but I can't read any temperature. Can you help me, so I can use the TC08 ...