beautypg.com

More rm3100 eval board code examples, Rm3000-f eval board code examples, V2xe code examples – PNI CommBoard User Manual

Page 18

background image

PNI Sensor Corporation

DOC#1018122 r02

PNI CommBoard User Manual

Page 16

The received signal is: “00C8 00C8”. In this case, the return byte is not read.

Note the default delimiter, , is used in the received signal.

5.2.2

More RM3100 Eval Board Code Examples

Example #1: $0wn04,00,64,00,64,00,64$1

This sentence sets all three cycle count registers to 100

D

(0x64).

Example #2: $0wn00,70$1

This sentence requests a single measurement be taken on all 3 axes.

Example #3: $0wn01,71$1

This sentence places the RM3100 Eval Board in Continuous Measurement Mode.

Example #4: $0wnA4rmmm$1

This sentence first writes the address of the MSB of the MX Read register, then reads

from this byte and the subsequent 8 bytes, to provide the most recent measurement

results on all 3 axes.

5.2.3

RM3000-f Eval Board Code Examples

Example #1: $0wn83,00,64,00,64,00,64$1

This sentence sets all three cycle count registers to 100

D

(0x64).

Example #2: $0wn82 01$1

This sentence requests a single measurement be taken on all 3 axes.

Example #3: $0rc9nmmm$1

This sentence first writes the address of the MSB of the MX Read register, then reads

from this byte and the subsequent 8 bytes, to provide the most recent measurement

results on all 3 axes.

5.2.4

V2Xe Code Examples

Example #1: $0.wnaa,01,00$1.$0rnnnnnnnnnnn$1

This sentence can be used to obtain the ID packet from a V2Xe. Note the “.”
commands causes a 2 ms pause in transmission. These pauses are often necessary

when working with the V2Xe.