03-07-2009 11:30 AM
Hi,
I am having difficulty wiriting instructions to a PNI MicroMag3, 3 Axis Magnetromoter. A 8 Bit instruction must be sent during the first 8 clock cycles and then the Sensor should return a 8 bit value for the next 8 clocks. The Inital Instruction tell the sensot which axis to return data for.
I am using the USB 8451.
Would anybody have a VI that communicates with this sensor or could they advise how I can send the inital 8 bit instruction throuch the SPI connection.
The Data sheet is attached for the sensor.
All the best.
Gus
03-08-2009 04:12 PM
Here is the VI were are using to communicate to the Magnetromoter. I cant seem to get the sensor to return the data. After the first 8 clocks it should start to shift out the reading.
Great is someone could have a look.
Rgs
Ben
03-09-2009 04:38 PM
Hey Ben,
I can't look at your code now (can't download it while I am at work), so instead I am going to ask some stupid questions.
1) Did you check the clock polarity and phase (settable on the 8451)?
2) I've used the 8451 but it's been a couple of months... I think if you are trying to read from it, you need to write a byte, then read a byte....
I'll look up my code when I get home and see if I can remember the procedure.
09-04-2009 07:07 AM
Hi.
I have a solution to this if anyone requires it contact me.
Rgs
02-09-2010 01:59 AM
Creg wrote:Hi,
I am having difficulty wiriting instructions to a PNI MicroMag3, 3 Axis Magnetromoter. A 8 Bit instruction must be sent during the first 8 clock cycles and then the Sensor should return a 8 bit value for the next 8 clocks. The Inital Instruction tell the sensot which axis to return data for.
I am using the USB 8451.
Would anybody have a VI that communicates with this sensor or could they advise how I can send the inital 8 bit instruction throuch the SPI connection.
The Data sheet is attached for the sensor.
All the best.
Gus
Hi Creg, please can you help me with PNI Magnetometer - USB-8451 communication ? Any working vi code ? Thanks
02-09-2010 04:45 AM
02-09-2010 04:10 PM
Thank you Creg
Best Regards
John