Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop/pause an subvi from main panel control

Hi all
 
I am in need of a solution from you all.
 
in my code i need to stop the subvi from the main vi panel.
 
once i start my code control goes to the subvi which is Data Acquistion from DAQ card.
 
I need to stop/pause this data acquisition when ever i need. i tried with global variables or passing through reference but i couldnt succeed
 
Can anyone help me in this
 
thanks
 
Regards
Bala
0 Kudos
Message 1 of 11
(3,599 Views)

Hi Bala,

It should work with a reference, don't use the globals.

Can you post your VI's so we can look at it ?

0 Kudos
Message 2 of 11
(3,580 Views)
Hi KC
 
sorry i cant post my vi as it is a big one and also little bit confidential.
if you require i can make a sample of that and i can post here
with reference i am getting error.can u send me a vi with reference so i can have a glance
 
thanks
 
regards
Bala
0 Kudos
Message 3 of 11
(3,572 Views)
VI 1 has a stop button and a led on the front panel. The value of the stop button is used to stop VI 1 and VI 2. VI 2 controls the led
Download All
0 Kudos
Message 4 of 11
(3,570 Views)

Hi KC

Thanks for the vi. i tried the same but got a error before. now its working.

but i have another problem in this.i am using the same structure as u have made but inside the subvi i am using a case structure which also contains the while loop.the case structure is for DAQ card.i tried the same for that but i couldnt stop the while loop inside the case structure.

Thanks and regards

Bala

0 Kudos
Message 5 of 11
(3,563 Views)

Hi Bala,

I don't see what the case structure has to do with your problem. Can you simplify your VI's and post them ?

0 Kudos
Message 6 of 11
(3,560 Views)

You really need to post at least an image of your code. I'm guessing that you have the read of the value property node in the wrong place. It would need to be inside the inner most while loop.

p.s. Questions of this nature have nothing to do with DAQ and should be posted in the LabVIEW forum.

0 Kudos
Message 7 of 11
(3,559 Views)
Hi KC
 
I have attached the screen shot with this mail.sorry i couldnt post the vi
 
this is inside the case structure of the subvi
 
like this i am using while loop in each case.
 
so when i press stop in main panel i have to pause the action doing here inside the case structure
 
this is a state machine architecture so case is inside the while loop
 
thanks and regards
Bala
0 Kudos
Message 8 of 11
(3,550 Views)
Like Dennis said you placed the read of the property node outside the while-loop.
Also note that Dennis pointed out you post to the wrong board.
 
You also should keep good wiring aspects. The error cluster inside the while-loop going from right to left. I think you should use a shift register there.
 
and now I understand your hurry you only 30 days for your program.........
0 Kudos
Message 9 of 11
(3,546 Views)

Sorry guys really i am in hurry tats why.

i have to edit the code.

but im trying for functionality first....

also i tried the both placing inside the loop. but i couldnt succeed in that also ok i will try again

thanks

Bala

0 Kudos
Message 10 of 11
(3,520 Views)