01-28-2012 10:55 AM
I'm a student for a First Robotics team in the 2012 season. I'm trying to write a program in Labview that gets an angle measurement from two sources, then compares them and adjusts the second angle until it is equal to the first. The first angle is calculated using trigonometry, and the second angle is retrieved from whatever sensor we'll use on the robot. I can get it to work when the angle difference is 1, but no higher because I'm not sure how to loop it back on itself. If I can store the angle from the robot as a variable, it would make this a lot easier.
Is there a way to store a numeric value from an input/output as a variable that can be changed from other sources and checked by the program? I can provide the program I've built so far if that would help explain it.
Solved! Go to Solution.
01-28-2012 11:14 AM
Use a shift register.
Lynn
01-28-2012 11:22 AM
What is a shift register and where may I find it?
01-28-2012
12:15 PM
- last edited on
07-09-2024
06:00 PM
by
Content Cleaner
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
01-28-2012
01:40 PM
- last edited on
07-09-2024
06:00 PM
by
Content Cleaner
This specific tutorial covers shift registers: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YKYuCAO&l=en-US
Note that in newer versions of LabVIEW you can use a Feedback Node to accomplish the same thing.