LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I store mathematical variables in Labview?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(11,248 Views)

Use a shift register.

 

Lynn

0 Kudos
Message 2 of 5
(11,245 Views)

What is a shift register and where may I find it?

0 Kudos
Message 3 of 5
(11,242 Views)

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours 
LabVIEW Introduction Course - Six Hours 

0 Kudos
Message 4 of 5
(11,237 Views)
Solution
Accepted by topic author FRCStudent4296

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.

Message 5 of 5
(11,226 Views)