04-17-2012 12:08 PM - edited 04-17-2012 12:09 PM
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
04-18-2012 11:52 AM
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?
04-18-2012 01:23 PM
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
04-19-2012 05:58 PM
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.