10-30-2011 05:39 PM
i have a vi which gives roll,pitch and yaw data of the intersense itrax2 interia sensor.. i downloaded this from ni.com.. when i run this vi, it runs smoothly for the first time.. but when i restart it again.. the program throws an error as shown in the picture attached ... can anyone help me solve this issue...? kindly check for the vi attached.. thank you..
10-31-2011 11:29 AM
Hi,
Could you please attach the subVIs that you are using as well? (init_tracker.vi, getData.vi and close_tracker.vi) as I can't run your code without them.
Once I've got them I'll try running your code and see if I can see the problem.
Kind regards,
10-31-2011 01:08 PM
thanks for the reply james..
please find the attachements of Complete VI(TOP LEVEL.VI) and Its Sub Vi's..
10-31-2011 04:24 PM
That error is generated in the Call Library Function Node in the init_tracker.vi. That calls isense_dll_wrapper.dll. Whoever wrote that is the only one who can tell you what actually is going on.
My guess, and it is only a guess, is that the first time through the Close VI does not actually release the handle to the ITrax2 and so the next time it cannot be initialised. Another possibilty is that an error occurs in the loop and the close_tracker.vi does not attempt to release the handle.
Lynn
10-31-2011 08:06 PM
now can get a sample vi where i can control the three servo motors attached to the PC through propeller usb servo controller...? or can i can control the motion of servo motors with this readings wirelessly..(for Tele-operation)..
11-01-2011 04:44 AM
Hi,
Thanks to Lynn for her help with the first question.
As for a sample of how to control servo motors, I've got a link to a worksheet that is designed for students (but is useful for everyone) that you could work through. It explains about how you need to generate a square wave and how to change the duty cycle of that square wave to chose the position that you want to servo to move to.
http://zone.ni.com/devzone/cda/epd/p/id/396#0requirements
It also shows an example program that you could copy.
I hope this helps.