05-08-2008 06:47 AM
05-08-2008 06:55 AM
Dear Jagan,
Yup. Am from TN
. In chennai
. Well know about Data Patterns
. Even i have attended interview there.![]()
Attach your code soon.![]()
Thanks,
Mathan
05-08-2008 07:33 AM
05-09-2008 11:30 PM
05-13-2008 09:08 AM
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!
05-13-2008 11:05 PM
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.
05-14-2008 04:40 AM
Hi Mathan
Hey i attached my code..did u see that??
Jagan
05-15-2008 10:36 AM - edited 05-15-2008 10:37 AM
05-16-2008 01:41 AM
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.
05-16-2008 01:47 AM
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 )