LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of Event Structure and push button

dogukan12324_3-1745411203376.pngdogukan12324_0-1745411162571.pngdogukan12324_4-1745411294724.png

 

Currently, I’m unable to share the VI file, but based on the comments and my own research, I’ve tried three different approaches. However, since I couldn’t resolve the issue, I wanted to ask for your help.

 

 

0 Kudos
Message 21 of 29
(684 Views)

Hi dogukan,

 


@dogukan12324 wrote:

Currently, I’m unable to share the VI file, but based on the comments and my own research, I’ve tried three different approaches.


So you show 3 different images with just small parts of your block diagram!?

None of those images allow us to help you…

 


@dogukan12324 wrote:

However, since I couldn’t resolve the issue, I wanted to ask for your help.


You should step back and start over with the Training resources offered at the top of the LabVIEW board.

Especially focus on "THINK DATAFLOW!" as the basic LabVIEW mantra: you cannot connect two data sources with a wire!

 

  • Why do you think you need to use a case structure to output a TRUE values from a case that is selected by a TRUE value???
  • Why do you think you need to use a local variable of the "stop" button?
  • Why do you still think you need to connect two data sources even though we recommended to use a boolean operation? You want to stop your VI on "time elapsed OR stop button"…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 22 of 29
(672 Views)

I'm trying to understand what you've explained — this is my first LabVIEW application.

 

I tried to use the Case Structure like an if-else block. I thought that if the elapsed time reached 60 seconds, the structure would enter the True case and return a True value, which I could wire to the While Loop's stop terminal to end the program.

As a simple attempt, I also tried using a local variable of the Stop button in my application. My idea was to send a value to the Stop button when the time reached 60 seconds, so the system would stop. It was a basic test approach.

 

Best regards

0 Kudos
Message 23 of 29
(641 Views)

I have now completed the assignment... I finally realized my mistake — I had been struggling with this for days just because I didn't use the OR block... After adding the OR block and making a few small adjustments, I was able to complete it. I might have been a bit frustrating and annoying while working on this assignment... But completing this assignment taught me a lot. I sincerely thank all of you.

Message 24 of 29
(615 Views)

Hi dogukan,

 


@dogukan12324 wrote:

I tried to use the Case Structure like an if-else block. I thought that if the elapsed time reached 60 seconds, the structure would enter the True case and return a True value, which I could wire to the While Loop's stop terminal to end the program.


So you need a case structure that outputs a TRUE when the selector condition is TRUE? why not use the selctor condition itself???

This is called "Rube-Goldberg code" and there is a whole thread with bad examples

 


@dogukan12324 wrote:

As a simple attempt, I also tried using a local variable of the Stop button in my application. My idea was to send a value to the Stop button when the time reached 60 seconds, so the system would stop. It was a basic test approach.


You still don't understand you should use a boolean function (like OR) to handle two stop conditions?

Have you learned anything about boolean logic (independently from LabVIEW)?

 

Edit: we wrote our messages nearly the same time. It's nice to know you solved your homework!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 25 of 29
(614 Views)

@dogukan12324 wrote:

...the structure would enter the True case and return a True value, which I could wire to the While Loop's stop terminal to end the program.


If you have a true case, you already have a true value wired to the condition terminal. Use that directly. No case structure needed.

0 Kudos
Message 26 of 29
(613 Views)

 

Hi,

 

I want to place the system I designed into a box to make it look better. However, it stays behind the box, like in the example. How can I fix this?

 

Best regards.

 

dogukan12324_0-1745518205114.png

 

0 Kudos
Message 27 of 29
(558 Views)

Hi dogukan,

 


@dogukan12324 wrote:

However, it stays behind the box, like in the example. How can I fix this?


Use the Z order options in the frontpanel menu bar…

 


@dogukan12324 wrote:

I want to place the system I designed into a box to make it look better.


I don't think it will look "better" when you place rectangular decorations on the frontpanel.

Do you know any other software with a similar GUI design?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 28 of 29
(545 Views)

@dogukan12324 wrote:

 

Hi,

 

I want to place the system I designed into a box to make it look better. However, it stays behind the box, like in the example. How can I fix this?

 

Best regards.

 

dogukan12324_0-1745518205114.png

 


Yamaeda_0-1745588184193.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 29 of 29
(516 Views)