04-13-2013 06:52 AM - edited 04-13-2013 06:52 AM
I created a subVI and wanted to output boolean status to my main vi, I wrote a simple code in the subVI but I fail to achieve my goal in the mainVI,
I know i dont have to create subVI but just one VI to do this job, however, output boolean is only one function of my work, the subVI has another things to do
so in order to do this correctly, what should I do?
Thank you
Solved! Go to Solution.
04-13-2013 08:19 AM
04-13-2013 09:03 AM
WOW, a little complex, but i redid everything based on your instructions. you are so great.
So, the idea is to create a reference value in the subVI and that reference can be controlled by the subVi and the final result is reflected in the main VI
what's wrong with my origin method?
Based on your idea, i even dont have to create a boolean arrary in the subVI (see picture) and run the mainVI without problem 🙂
Thankyou!!
by the way, to master this skill, any other tutorial I can practice?
04-13-2013 11:54 AM - edited 04-13-2013 12:21 PM
no problem my friend....i would question your use of flat sequences in the sub vi., when you could use a state machine or do this that does the same thing: inserts a true/false into a bool array, the iteration looks for odd numbers and inserts a true and false for even numbered iterations @500ms wait per iteration...also, look at the tutorials
use of cntrl ref....