LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialize variable

Solved!
Go to solution
Hello, I am new to Labview and I'm trying to modify an already existing code. The main VI is _cop_tracker.vi and one of its subVI is random_target_time_coordinator.vi. I have local variable 'Numeric3' (used as a counter) in the subVI. How do I initialize this variable to zero. ie every time I run this code how do I initialize it to zero. Thanks, -PN
Download All
0 Kudos
Message 1 of 6
(6,390 Views)
I cannot see your code (postin by phone), but a counter should be implemented with a shift register. In your case, initialize it with zero.
0 Kudos
Message 2 of 6
(6,384 Views)
Solution
Accepted by pnam

OK, now I see the subVI. Use a globally initialized feedback node, e.g. as follows.

 

(You also need to decide what to do when an error occurs)

Message 3 of 6
(6,370 Views)
Spoiler
 

Thanks a lot. It worked!

0 Kudos
Message 4 of 6
(6,335 Views)

Thanks to you,

I was having the same prob. and was not known to the fact that we can intialize the feedback node.

A Kudo for thanks. Smiley Happy

0 Kudos
Message 5 of 6
(5,783 Views)

Helped me too, thanks!

0 Kudos
Message 6 of 6
(5,334 Views)