02-25-2025 09:56 AM
I got error 1149 when,
Launch Main Menu then run >>Back Button
Launch Main Menu then run >> Default Data >> Back Button
Launch Main Menu then run >> Default Data >> 2 Bus System >>Back Button
Launch Main Menu then run >> Default Data >> 2 Bus System >> Fault Analysis >> Back Button
Error 1000 when,
Launch Main Menu then run >> Default Data >> 2 Bus System >> Fault Analysis >> Menu Button
Solved! Go to Solution.
02-26-2025 07:36 AM - edited 02-26-2025 08:00 AM
Hi cute,
@Rusyaidi_arif_cute wrote:
Launch Main Menu then run >>Back Button
I don't see any "back button" in your "Main Menu"…
Why do you think you need to call all VIs dynamically?
Why don't you use ordinary subVIs?
02-26-2025 08:25 AM
I don't see any "back button" in your "Main Menu"…
I might have confused there, there is no back button in Main Menu and its my mistake. I should double check the next time i post something.
- Why are all frontpanels so huge?
- Why don't you cleanup the block diagrams?
- Why don't you read those latching buttons in their corresponding value change events???
I just followed a youtube example that is why im calling them dynamically.
Why do you think you need to call all VIs dynamically?
Why don't you use ordinary subVIs?
02-26-2025 08:32 AM - edited 02-26-2025 08:35 AM
Hi cute,
@Rusyaidi_arif_cute wrote:
There is no reason as of why it is huge and messy.
- I thought putting them in the same folder is the same as organizing my vi's.
- What I am trying to achieve with "back buttons" is by closing current Vi's and go back to previous VI
e.g (Main Menu>> Default Data >> Back Button), I want to close "Bus System Panel.vi" and reappear the "Main Menu.vi"
Example:
@Rusyaidi_arif_cute wrote:
- Why don't you read those latching buttons in their corresponding value change events???
- Did you mean the button behaviour?
I just followed a youtube example that is why im calling them dynamically.
Why do you think you need to call all VIs dynamically?
Why don't you use ordinary subVIs?
If you have any suggestions on how to improve the way I call subVIs, please do let me know.
Also i did all of these in a hurry as my project deadline is coming.
02-26-2025 08:48 AM
I have changed it to use "Back" button to stop the loop but it gave me another Error 1026 and did not close the "Bus system Panel" front panel.
02-26-2025 08:59 AM
Hi cute,
@Rusyaidi_arif_cute wrote:
I have changed it to use "Back" button to stop the loop but it … did not close the "Bus system Panel" front panel.
Because the button is initially in TRUE state and you switch it to FALSE. This will not end the loop and so not close/quit the subVI!
You should set the button to initially FALSE and change the switching mode to (default) "latch when released"!
@Rusyaidi_arif_cute wrote:
it gave me another Error 1026
Where does the error exactly occur?
Do you call the VI already as ordinary subVI in the caller?
02-26-2025 10:02 AM
Okay I did the ordinary subVI caller.
Sometimes the back button works by closing the vi and sometimes the front panel got stuck/frozen unable to close the vi.
Not sure why... Anyways it still works sometimes so its fine.
Another thing I want to implement, at "Fault Analysis Panel.vi" there is a "menu" button. I would like to reopen the "Main menu" panel by means of the "menu" button.
I tried adding SubVI for main menu but it seems I cannot.
02-26-2025 10:48 AM
Hi cute,
@Rusyaidi_arif_cute wrote:
Okay I did the ordinary subVI caller.
Sometimes the back button works by closing the vi and sometimes the front panel got stuck/frozen unable to close the vi.Not sure why... Anyways it still works sometimes so its fine.
You need to apply the very same settings in all your VIs:
@Rusyaidi_arif_cute wrote:
Another thing I want to implement, at "Fault Analysis Panel.vi" there is a "menu" button. I would like to reopen the "Main menu" panel by means of the "menu" button.
I tried adding SubVI for main menu but it seems I cannot.
You want to call your main VI from a 3-level deep subVI: this is called recursion!
02-27-2025 03:34 AM
I did make it work through recursion. But it opens multiple "Main Menu" vi panels with 'clone' instead of the previous 'main menu.vi' front panel.
How do i stop it from making more front panels and go back to the first level of subvi?
02-27-2025 04:25 AM - edited 02-27-2025 04:30 AM
Hi cute,
@Rusyaidi_arif_cute wrote:
I did make it work through recursion. But it opens multiple "Main Menu" vi panels with 'clone' instead of the previous 'main menu.vi' front panel.
How do i stop it from making more front panels and go back to the first level of subvi?
Using recursion and clones isn't the way you should go with your task, instead you should implement a proper architecture to your code!
Example: