|
|
| Author |
Message |
Felix Guest
|
Posted: Thu May 29, 2003 7:11 pm Post subject: TC-08 get cycle ERROR |
|
|
I have a problem using function tc08_get_cycle and tc08_get_version
When I call the function, it return 1 (OK) but the variable cycle and version are always set to 7 ??????
These variable are supposed to be set to the right VERSION number and
the number of complete CYCLE of readings taken from the TC-08
Thanks!!
Felix
carign00@gel.ulaval.ca |
|
| Back to top |
|
 |
markspencer Site Admin

Joined: 07 May 2003
Posts: 610
|
Posted: Fri May 30, 2003 1:41 pm Post subject: |
|
|
When you use the tc08_get_version function you should get a number (via the version parameter), which can be turned into a hex number similar to this '080A'. The first two hex digits are always 08 and the last two reflect the TC-08 version and firmware release.
The second function tc08_get_cycle will increment when all active channels readings have changed.
The fact that you are getting erronious data implies that there is no connection between PC and TC-08. Check the TC-08 is able to connect to the PC via the serial port with Picolog and once satisfied that it is functioning correctly consult the manual and C examples to see what order the functions should be called. The tc08_get_cycle and tc08_get_version may be called any time after the tc08_open_unit has been called.
Best regards, |
|
| Back to top |
|
 |
Felix Guest
|
Posted: Fri May 30, 2003 5:15 pm Post subject: Fix it |
|
|
I fix the problem...
Just a syntax error in my JNI dll |
|
| Back to top |
|
 |
|