LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing Value of Servo Read Using Labview and Arduino (LIFA)

Solved!
Go to solution

Hello Everyone,

 

I have written a simple program that uses Arduino and Labview, that I have linked below, which basically just positions the servo at a given position. I am trying to add on to that program another servo which positions itself basically opposite to the other servo (180 - First Servo Position = Second Servo Position). I am a bit new to Labview and I am not sure how to store the first servo position to a variable and write the second servo to 180 - the variable. If anyone can help or alter the program I would greatly appreciate it.

 

Thank you so much

0 Kudos
Message 1 of 4
(1,024 Views)
Solution
Accepted by topic author robotek73

Hi robotek,

 


@robotek73 wrote:

I am a bit new to Labview and I am not sure how to store the first servo position to a variable and write the second servo to 180 - the variable.


In LabVIEW the wire is the variable, so you just use a wire to "send" the value of your 1st servo to the "180-value" operation!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(983 Views)

Hi GerdW,

 

Thanks a lot, it worked perfectly!

0 Kudos
Message 3 of 4
(942 Views)

I am doing the same job as you did, but my software got error on "Set Number of Servo.vi" due to Timeout (error 5003). I look into it, it seems to be my send-in "Data" is empty in "Packetize.vi" and therefore "Wait For Byte.vi" gets no Byte out. What did you set for "Data" in your case? Thanks in advance. 

yuntan_1-1718725321518.png

 

0 Kudos
Message 4 of 4
(405 Views)