04-20-2025 08:13 AM
Hello, I’m very new to LabVIEW and I need to complete an application. I’m struggling to understand how to use the Event Structure and push button setup. In the application I’m working on, there are two buttons: one to start the system and one to stop it. When I press the start button, I want the system to begin running and continue until I press the stop button. I am required to implement this using the Event Structure. There are additional parts to the project, but I’m currently stuck at this stage. I really need your help.
04-20-2025 09:24 AM - edited 04-20-2025 09:28 AM
Look up the term "state machine".
Currently, your loop cannot even spin because the event structure can never complete (A timeout event with the timeout unwired waits forever!).
A picture is insufficient to even analyze your code, because we cannot see what's in the other cases or the mechanical action of your buttons, etc..
Please attach your VI, and make sure to use "save for previous" (2020 or below) so more can look at it. Unless this is homework, the requirement of an event structure is pointless. It can also be done equally we without one. There are also serious logical problems, for example an equal comparison of a random number with 2.5 can never be true. There is also no need for local variables.
Maybe you should post the entire requirements document.
04-20-2025 10:27 AM
If you type "LabVIEW Events" into a search engine (I used Google), you should find a link called Event-Driven Programming in LabVIEW . This gives an overview of the Event Structure (inside a While Loop). One of its uses is responding to a change in a Front Panel control (like "Pushing a Button", which changes a Boolean from True to False, or the other way around). It will also lead you to several of the ways Event Structures can be used.
Have you learned about how (in particular) Boolean Controls can be used? Does the term "Mechanical Action" mean something to you? If not, open LabVIEW, click the Help button, search for "Mechanical Action" (which probably will not take you to the most helpful place), and see if "Boolean Controls and Indicators" is a few lines farther down. Read that.
Bob Schor
04-20-2025 10:45 AM
Here is a quick skeleton to get you started. Make sure you understand all parts before making changes.
04-20-2025 11:11 AM - edited 04-20-2025 11:24 AM
Tekrar merhaba,
yazdıklarınızı okudum ve benimle paylaştığınız başvuruyu inceledim — gerçekten mükemmel bir iş çıkarmışsınız. Projenin tüm gereksinimlerini bir Word belgesinde paylaşıyorum. Cuma akşamından beri bu proje üzerinde çalışıyorum ve LabVIEW'ı ilk kez kullanıyorum. Bu projeyi tamamlamak için YouTube ve ChatGPT Plus kullandım ancak kafamı karıştıran birçok durum oldu. Bana yardım ederseniz çok sevinirim. Proje dosyasını ve oluşturduğum VI dosyasını ekliyorum.
04-20-2025 11:15 AM
You did not see my note about doing a "save for previous" (2020 or below). Most users here cannot open your VI saved in LabVIEW 2025.
04-20-2025 11:20 AM
Hello again,
I’ve read what you wrote, and as you suggested, I did a bit of research online when I first started this project. To carry out this project, I created small demo applications using YouTube and ChatGPT Plus, but since I couldn’t fully implement the scenario I had in mind, I wanted to consult the forum. In my previous comment, I shared the VI file I created and explained the work I’m trying to accomplish. Since I have limited time to complete the assignment, I wasn’t able to learn enough about LabVIEW structures.
04-20-2025 11:27 AM
As you suggested, I have updated the VI file to be compatible with LabVIEW 2020 and earlier versions.
04-20-2025 12:28 PM - edited 04-20-2025 12:30 PM
Most people here don't understand Turkish, but we can use google translate on your labels. Since the instruction is in English, you should use English labels as described.
04-20-2025 12:41 PM
I started using the LabVIEW program last Friday. Since then, I've been reviewing examples on the internet, trying to find example scenarios on this forum, and trying to understand the block structures. I don’t know more than what I’ve seen online and what I’ve learned through ChatGPT Plus. While trying to implement what you've suggested in LabVIEW, I’ve been researching each step, which makes the process quite challenging. I need to complete the project by Wednesday. What kind of roadmap do you think I should follow? Could you help me with this?