View unanswered posts | View active topics It is currently 28 Mar 2024, 15:22



Reply to topic  [ 3 posts ] 
ZSTAR 
Author Message

Joined: 23 Feb 2009, 21:33
Posts: 28
Location: munich, germany
Reply with quote
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


Attachments:
File comment: EyesWeb patch
ZSTAR.eywx [85.9 KiB]
Downloaded 1115 times
07 Sep 2009, 10:04
Profile WWW

Joined: 23 Feb 2009, 21:33
Posts: 28
Location: munich, germany
Reply with quote
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


Attachments:
zstar1.eywx [94.98 KiB]
Downloaded 1145 times
14 Sep 2009, 10:38
Profile WWW

Joined: 13 Nov 2008, 17:50
Posts: 12
Reply with quote
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.

:arrow: 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


Attachments:
File comment: ZStar control patch used for ZStarIn and ZStarOut blocks development
ZStar.eywx [97.46 KiB]
Downloaded 1119 times
15 Sep 2009, 14:20
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.