Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

3-D imaging for the MTi-Xsens sensor

Hello there,

 

I am trying to create a 3-D imaging of my Mti-Xsens sensor while connected via the RS-232 MTi cable (CA-USB2). I have found an already build in driver that has that feature for the sensor, but unfortunately I always get an error "VISA:  (Hex 0xBFFF006C) An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived." I have tried to add in a buffer, but I still get the same error. I have taken a screen shot of the driver I have. I hope some one can help, as I really need to get a 3D imaging of the sensor for my project. I am new to the LabView environment. I would appreciate your help. Thanks for you time.

 

Best regards,

Hosam

0 Kudos
Message 1 of 8
(4,834 Views)

Have you tried using the signle read function rather than reading continously? Setting the skip factor to 65535 allows the MT to only send data when it is requested. Try setting this up first and see if you are able to communicate correctly.

Ian M.
National Instruments
0 Kudos
Message 2 of 8
(4,809 Views)
I am able to read the Euler angles properly in a continuous way. That is the case of removing the 3-D images plate, and adding an indicators instead. I am sure it is communicating properly, but I want a 3D imaging instead of indicators. The driver works properly without the 3D imaging, and also one problem I noticed is that the error is not generated directly, I almost have 5secs 3D imaging. Thanks for your time, looking forward for your help.
0 Kudos
Message 3 of 8
(4,797 Views)

So now you are able to get the VI to communicate properly but you are getting a different error? Or the same VISA run time error that was mentioned in the first post? When you say that the error is not generated directly, do you mean that the object stops changing its orientation? Maybe before setting the rotation of the object check to make sure that the radians to be rotated is not more than pi. I believe that objects can be plus pi rotated about the positive axis and then negative pi rotated about the negative axis so if the rotation to be set is greater than pi then it will not set the orientation correctly.

Ian M.
National Instruments
0 Kudos
Message 4 of 8
(4,770 Views)

The error is probably  because the 3D picture controls are taking too long to finish execution.  The MT is continuously sending data to serial port buffer on your PC and LabVIEW can't read it fast enough because the 3D picture is taking too long.

 

This is why it takes some time for the error to occur, the buffer doesn't fill up straight away.  

 

You can either read from  the buffer faster or decrease your sample rate.

Lewis Gear CLA
LabVIEW UAV

0 Kudos
Message 5 of 8
(4,759 Views)

This might be a good situation for producer consumer loop using queues to enqueue the matrix elements in one loop and dequeue the elements and display the 3D image in another loop.

Ian M.
National Instruments
0 Kudos
Message 6 of 8
(4,748 Views)
I think my problem is having overflow reading from my Xsens sensor in labview. It does not seem it is communicating properly. I have kept it stationary, but using numerical indicators, I have realized that the yaw values are always changing even when the sensor is not moving. I am not sure how to fix them, but when ever I make a move, the indicators show the position, but keeps changing when the sensor is stationary. Most changes are associated within the yaw values. Any suggestions?
0 Kudos
Message 7 of 8
(4,746 Views)

The values of roll pitch and yaw will change a small amount (<1 degree) because the MT is ESTIMATING them and its not absolute.

 

How much are they changing by?

Have you configured the MT to use the correct scenario for your application?

 

Which VIs are you using to communicate with the MT?  Install this driver.

 

There are examples of how to communicate included with the driver.

Lewis Gear CLA
LabVIEW UAV

0 Kudos
Message 8 of 8
(4,739 Views)