LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the measurement data from IMU using SBRIO through SPI?

Hi All,

 

I’am trying to use the SPI communication protocol to realize the bridge between my Vectornav VN100 IMU chip and the LABView through the SBRIO 9602. I amended the SPI sample code from NI website based on my own device and configuration. It compiled and ran well. The problem is the IMU we are using need a 16 bytes command and it will give back a response containing the measurement data. But it seems that with the code I have, I can only send an at most 32 bits command once. Hope anyone who has experience in IMU implementation on LABView could give me some help! Thanks a lot!

 

Nick

0 Kudos
Message 1 of 4
(3,391 Views)

Nick,

 

Im a bit confused with where the problem came in. Were you not able to send the properly sized commands with the example code, or only once you modified it?

If only when you modified it, what all did you change? Screenshots, VI snippits, or VIs would help us troublehsoot.

If in the original example, which example was it, and what all settings did you have configured?

 

 

Regards,

Kyle M.
Applications Engineering
National Instruments
Message 2 of 4
(3,353 Views)

Kyle,

 

Thank you very much!

 

I attached the amended program and the Manual Sheet of the IMU I am using.

 

Since I only need to one port, I just amended the configuration for port 1 and adjusted the code for my device. 

 

I think the problem exist in the data sending mechanism, you can check the requirement out in P12 and P13 of the manual sheet.

 

Best Regards!

 

Nick

Download All
0 Kudos
Message 3 of 4
(3,350 Views)

Nick,

 

In your program, have you generated all 16 bytes of "write data" as well as set the "total bits" to 16*8 (128) by chance? A screenshot of the configuration, the 16 bytes youre writing (may want to have the Write Data expanded down to show all bytes) plus the returned message and/or error would be helpful to see. 

 

Regards,

Kyle M.
Applications Engineering
National Instruments
Message 4 of 4
(3,333 Views)