LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot use the menu function to open the file again.

Hi I am working on an application that comes with menu functions and subpanel.
I have probelms and I cannot seem to figure out what went wrong.
 
I have 2 problems but not sure if if I have similar problems with other menu items. The  2 problems are similar.
1. I open the Edit... > Limits. It worked well first time. Again I closed and open the same or other file.
    This time I cannot open it without closing the running program.
2. Same problem with the Help > About MK6 Utility Program
 
It seems the problem lies with the event structure.
 
I am not sure if I can switch the test in the open menu.
 
Here are attached. Only achm_main.vi, test.txt, achm.rtm and about_achm2.vi. All of them are zipped to Four Heaven Kings - 4HK.zip
 
When i am testing the small simple program, It worked as I can open it several times.
 
regards
Clement
 
 
0 Kudos
Message 1 of 5
(3,050 Views)

Your main loop cannot spin, unless all the other loops finish. The upper loops don't stop unless text has been eneter or OK is pressed, resp. This means that the event structure can only fire once. Use execution highlighting to verify!

Put the upper and lower parts in paralell loops to prevent the blocking. (see attached quick modification, LabVIEW 7.1).

Btw, you don't need these references (use the terminals directly) and sequence structures (use dataflow to force execution order).

(You also don't need that fancy shutdown procedure in the exit case, etc. There are probably better ways do do the upper condes isntead of using stacked while loops.)

Message Edited by altenbach on 09-14-2005 07:28 PM

Message 2 of 5
(3,044 Views)
Hi I am sorry I did not let u know beforehand. I am using Labview 7.0
 
regards.
Clement
0 Kudos
Message 3 of 5
(3,042 Views)
OK, here's the 7.0 version.
 
0 Kudos
Message 4 of 5
(3,037 Views)
Hi Thank you very much. No wonder we must use the parallel loops if the event structure is ever needed.
 
Is it a must that we must employ the method of parallel looping if the event structure is used?
 
And may I know why I dun need to use the reference as It is easier for me to wire the same reference whether for property or method nodes. If I have many controllers and indicators, I will have to search the list of controls and indicators or go back to terminal to create nodes.
 
regards,
Clement
 
 
0 Kudos
Message 5 of 5
(3,033 Views)