LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling VI's through menu

i tried all those, s im working in TN. "DataPatterns India Pvt ltd"
Wat abt u?? staying in chennai
0 Kudos
Message 21 of 34
(1,378 Views)

Dear Jagan,

Yup. Am from TNSmiley Wink. In chennaiSmiley Surprised. Well know about Data PatternsSmiley Happy. Even i have attended interview there.Smiley Mad

Attach your code soon.Smiley Very Happy

Thanks,

Mathan

0 Kudos
Message 22 of 34
(1,375 Views)
hey in which company u r working???
0 Kudos
Message 23 of 34
(1,368 Views)
I've attached the block diagram of thread and VI conataining that..
Jagan
Download All
0 Kudos
Message 24 of 34
(1,343 Views)

Jagan,

Have you wired a timeout value to your event structure. Your VI may not be stopping as every time an event structure is called in the code, it keeps waiting for the event to occur until it times out. Because of this, the terminal condition of the loop is not invoked. There are two ways for you to work around this:

1. Use a small timeout out so that the VI is not constantly waiting for one of the events to occur and does invoke the terminal condition when the stop button is pressed.

2. In case you don't wish to timeout your event structure, you can add an event case for the stop button and can terminate the program by wiring a true constant through the stop event case to the terminal condition of the while loop.

I hope this helps!

 

Mehak D.
0 Kudos
Message 25 of 34
(1,279 Views)

Mehak

hi, Im having one event  to stop the whole thing. The problem is after it enters into the thread, it not showing any response to the main vi front panel. im not able to click anything in front panel. i think other function didn't get free to  run.

0 Kudos
Message 26 of 34
(1,256 Views)

Hi Mathan

Hey i attached my code..did u see that??

Jagan

0 Kudos
Message 27 of 34
(1,245 Views)
Hi Jagan,
 
          I'm not positive that I understand your application completely.  However, if you are saying that your front panel locks after entering the event structure, you should check the "Edit events handled by this case.." and ensure that you have not selected "Lock front panel until the event case for this event completes."


Message Edited by Jim_M on 05-15-2008 10:37 AM
Regards,
Jim M
Applications Engineer
National Instruments
0 Kudos
Message 28 of 34
(1,213 Views)

Hi Jim,

I've verified those settings, i done one sample,  one main vi and two sub vi's as thread.

>main vi

         It has one event structure and a process(separate while loop which indiacte the count) with in a while loop , event start when boolean is on. Inside the event , one case structure if (case==1) run thread 1, if( case==2) run thread 2 and if (case==3) run both.

>thread 1 and thread 2 has the same function in it.

>It has a while loop which a indicator chows the count, which the while stop by a boolean.

>when i run the main vi. it shows the count continously then i start the event, case both theard.

>Both are running with the main vi. now im not able to stop the main vi while loop. cant click anything in main.vi front panel.

 

 

0 Kudos
Message 29 of 34
(1,186 Views)

Hi Jim,

I've verified those settings, i done one sample,  one main vi and two sub vi's as thread.

>main vi

         It has one event structure and a process(separate while loop which indiacte the count) with in a while loop , event start when boolean is on. Inside the event , one case structure if (case==1) run thread 1, if( case==2) run thread 2 and if (case==3) run both.

>thread 1 and thread 2 has the same function in it.

>It has a while loop which a indicator chows the count, which the while stop by a boolean.

>when i run the main vi. it shows the count continously then i start the event, case both theard.

>Both are running with the main vi. now im not able to stop the main vi while loop. cant click anything in main.vi front panel.

if i want to stop the process. 1st the threads should be stoped by clicking the boolean in that thread, then the front panel of main.vi is responding..  wat is this.. why not im not able to access the front panel of main.vi while running the two process (thread1 and 2 )

0 Kudos
Message 30 of 34
(1,183 Views)