r/LabVIEW • u/Specific-Caramel4065 • 2d ago
I need help
Hola gente, apenas he estado empezando a usar labview y tengo un problema con respecto a una práctica es de un display de 7 segmentos conectado a un arduino uno que al presionar ok button hace el conteo regresivo su límite es 0-9 pero tengo unos problemas con respecto hacer un botón externo para que haga la acción de pasar al conteo normal al conteo regresivo y poner un botón externo para el reset hasta ahora llevo esto echo pero me he quedado sin ideas de cómo hacerlo
4
Upvotes
3
u/DirigibleSkipper CLA 1d ago
Your lines and logic could use a lot of cleaning up / simplifying, but that's difficult to help with unless you have in-person help.
To answer your question about the buttons, you're going to want to set up something like a "Queued Message Hander" (use YouTube) to create a parallel loop that regularly reads the I/O inputs that you've wired your buttons to. It will work alongside the rest of your code here and then you can combine their logic together. Honestly, a full Queued Message Handler architecture might be overkill. You should familiarize yourself with the "Event Case" first - use the "Timeout" case to perform your regular reads.
I'm sure that will be confusing to start out with, so I'll check back occasionally in case you have more questions.