07-11-2019 08:26 PM - edited 07-11-2019 08:26 PM
Hi,
I am having an issue trying to call a timer from a SUB VI. The timer counter works perfectly in a VI itself. However, when I make a SUBVI and call it in a new VI, the indicator does not update properly as a counter. It only updates at the end. Please check out the attached files.
Thank you for helping!!
07-11-2019 09:41 PM
Of course it doesn't. It's called dataflow. A structure such as a node, a loop, case structure, or a subVI won't output data until the code inside of it is done executing. Since you subVI has a loop, it won't return any data done the loop inside is done and it places all the data on the indicators.
Have you taken any LabVIEW tutorials?
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
Learn LabVIEW
07-11-2019 09:48 PM
You need to start with a few simple tutorials and understand dataflow. A subVI will only return outputs once it is finished.
Run your Vis using execution highlighting to see how things work.
... also your subVI has a lot of questionable and unnecessary code, for example: