r/LabVIEW • • Oct 27 '25

Need help creating a LabVIEW FPGA project to control a servo

Hey everyone, been at this for 5 hours, want to cry, takes forever to compile, I'm using the pins from the project essentials guide in the image I'll I'm gonna post, please help

I’m working on a LabVIEW FPGA assignment and could use some help. The task is to: Taken from my profs instructions:

Create a new project named LE03HW02_Servo

Set up the necessary infrastructure to program the FPGA (like we did in the lecture)

Write a VI called Servo_FPGA.vi with a Dial Control on the front panel to control the servo angle

The program should use a simple two-state state machine that includes programmable waits and sets the digital output (True/False) to control the servo signal

The reason the wait is outside was I was trying to see if anything would happen

Please of great LabVIEW redditors assist this lowly Uni student in his time of need

6 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Flaky_Type8674 Oct 28 '25 edited Oct 28 '25

https://imgur.com/a/KNaxmgI Managed to come up with this,my prof says I need to use a wait like that, I've got a case structure for true and false, what values would recommend I do for the waits?

The plan is too use 500 micro seconds in the false and 2500 in the true Does this work?, and if so why

1

u/wasthatitthen Oct 28 '25

Sorry, I can’t see imgur… I’m in the UK and our government has brought in online protection laws so Imgur would rather block access than implement checks, and I haven’t sorted a vpn yet.

1

u/wasthatitthen Oct 28 '25

Depending on which way round you’re running things you want the wait of 1-2ms in one case and a wait of 19-18ms in the other case so the total stays at 20ms

1

u/wasthatitthen Oct 28 '25

With the waits you want the output from the case to be what you want to happen in the next case, so with the pulse, that is turned on at the exit of the long wait case and turned off at the exit of the short wait case.. if that makes sense.

If you want the wait (pulse width) to vary then if it’s changed in the On case, the wait is (20-pulse width) in the Off case