Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a MTi inertial sensor with LabView

That sounds very complicated. We have already tried a alternative by reading out the acceleration of the MTi instead of the position because we have noticed in the MT-manager that acceleration doesn`t show a drift. Our problem could be solved if we managed to measure acceleration in our VI. We tried to adjust our VI for this task by changing some of it`s invoke nodes. But it din`t work out.

0 Kudos
Message 21 of 28
(2,690 Views)

Hello Everyone,

Thx for sharing the VI provided by the Xsense Company on the 1st page.

Here I have problems of not obtaining any data from this Demo VI.

 

The serial number and deviceID number should be entered correctly. However all I get is only 0 on all direction rotations as well as gyro speeds.

 

I'm wondering in that VI what should I put into the control DBL "Device Ports", what I did is I put the COM port number of my MTI sensor in it.

 

Does anyone have simliar experience and finally found out the solutions?

 

Thank you a lot.

0 Kudos
Message 22 of 28
(2,682 Views)

Yes we have the same problem using the gyro but the rotations do work. Unfortunately I don`t know how to solve it.

0 Kudos
Message 23 of 28
(2,679 Views)

I'd like to retrieve MTi-G data in LabVIEW Real-Time (Pharlap), does anyone have a pure G version of the driver ?  ActiveX is not available under the RT environment.

0 Kudos
Message 24 of 28
(2,640 Views)

Hey bmann,

 

As of now, no instrument driver has been made for MTI. Though, this could be a feature added to our libraries on ni.com/download as more customers ask for it.

 

Two solutions can be used :

- Use the serial port of your RT system and get started with the NI-VISA commands that support the device.

- Use the .m file shipped with the MTI sensor. It will be used by the Control and Design Simulation, or by the Simulation Interface Toolkit to be used in LabVIEW. In the case of a RT target, the SIT looks like a better idea. 

 

For that latter case, you will need an extra toolkit to purchase if you don't already have it.

For more information : http://zone.ni.com/devzone/cda/tut/p/id/3583

 

 

Hope that helps !

Rik.

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 25 of 28
(2,628 Views)

Hello Everyone, 
I have the same problem that you have discussed before : 
I've tried the labview code : "get CMT input 2.vi" 

But here I can't obtain any data from this Demo VI. All I get is only 0 on all direction rotations as well as gyro speeds.

 

What can be the problem ?! Has anybody solved this issue ? 

Thank you in advance. 

 

 

0 Kudos
Message 26 of 28
(2,328 Views)

Hi Hala7,

 

I've left that project behind now.  I'm not aware of anywhere to obtain a driver to fulfil that need.  Your best bet would be discussion with the vendor.

 

Regards, Brian

0 Kudos
Message 27 of 28
(2,320 Views)

Hi TMirrisNY,

 

Thank so much for your code. It helps me a lot. But I have a question about the frequency of data collection in the code. I saw the frequency set at 100Hz in the code, so the time interval should be 0.01s,right? I recorded the time from the code, then I found that the time interval keep shifting a lot. Most time it is 0.01 and 0.03. Could you give me some suggestions about the unsteady freqency? Attatchment is my code and one group data I collected with time. Thanks advance!

 

 

Download All
0 Kudos
Message 28 of 28
(2,246 Views)