EyesWeb XMI Forum http://forum.eyesweb.infomus.org/ |
|
ZSTAR http://forum.eyesweb.infomus.org/viewtopic.php?f=24&t=534 |
Page 1 of 1 |
Author: | georg48 [ 07 Sep 2009, 10:04 ] | ||
Post subject: | ZSTAR | ||
Hi, I have problems with the ZSTAR module. I can`t get the X,Y,Z values from ZStarIn block. My system: MS Windows XP Home Edition Version 2002 Service Pack 3, v.3264 Laptop: Dell Inspirion I6400 Core 2 CPU T7200 @2.GHz 2.00 GB RAM EYESWEB Version 5.0.3.0 Rev. 3803 XMI Development Environment Ver. 5.0.3.0 XMI Kernel Ver. 5.0.3.0 Device Mapping: Serial Device: COM11 SerialOutput/Input: Device Mode: 9600,N,8,1 How can I get dates from the ZStar triaxial accelerometer board (RD3152MMA7260Q) Thanks in advance Georg Pongracz
|
Author: | georg48 [ 14 Sep 2009, 10:38 ] | ||
Post subject: | Re: ZSTAR | ||
Hi I have made an other test without ZSTARout. I send permanently the Extended Accelerometer Data Transfer (0x76 -> dec.118) command via SerialOut to ZSTAR hardware. I receive correctly the X/Y/Z-axis, temperature and Vbatt via ZSTARin. Wenn I use the block ZSTARout, than I get wrong values. Possible error in ZSTARout? Georg
|
Author: | alessandro [ 15 Sep 2009, 14:20 ] | ||
Post subject: | Re: ZSTAR | ||
Hi György, The ZStarOut block must be used in automatic mode and the block must be executed in a loop using the sync-in pin with a periodic clock (or a counter). With "automatic mode" the block send all initialization packets and start to send the command to read back from the serial the accellerometer and other data. With the other working modality the ZStarOut block send only the selected packet. The periodic schedulation trick is necessary because the Serial block support only one byte input and not one string input. Most of the commands are longer than one byte so, for this commands, the ZStarOut block must be executed more than one single time periodically in order to send the command byte by byte (1 byte for each execution). If you send only one single byte command the periodic schedulation tricks is not required but in this case You can directly send the command to the serial block using one constant generator (as in your zstar1.eywx patch) Feel free to make any other questions, bye
|
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |