TC-08 get cycle ERROR

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
Felix
Guest





PostPosted: Thu May 29, 2003 7:11 pm    Post subject: TC-08 get cycle ERROR Reply with quote

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 ?????? Confused
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
Site Admin


Joined: 07 May 2003
Posts: 610

PostPosted: Fri May 30, 2003 1:41 pm    Post subject: Reply with quote

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





PostPosted: Fri May 30, 2003 5:15 pm    Post subject: Fix it Reply with quote

I fix the problem...

Just a syntax error in my JNI dll
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group