LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

make a subVI do something on first call

Solved!
Go to solution

Hello,

 

I have a SubVI I made and I want it to do one thing the first time it's called and then as long as the program is running it should do another thing.  Right now I have a  "First Call" function wired to it, and that passes it a tru the first time my SubVI is ecounterd and a flase every other time... this works... but I was wondering if there is a way to do this from within the subVI itself?

 

Thanks!

0 Kudos
Message 1 of 4
(2,603 Views)
Solution
Accepted by topic author Fibo
Why don't you place the "first call?" primitive inside the subVI?
Message 2 of 4
(2,601 Views)

because if i do that, the first call would be true every time the Subvi is run.... wouldn't it? let me try this... i didn't even bother trying cause i figured the first call thing would run every time the vi is run.... i'll be back

 

0 Kudos
Message 3 of 4
(2,595 Views)
You are absolutely right! I just thought... well... you know.
0 Kudos
Message 4 of 4
(2,594 Views)