03-21-2006 07:59 PM
03-21-2006 08:36 PM
03-21-2006 08:59 PM
I am creating a counter where each overflow sends a pulse to a subsequent counter upon resetting the original counter.
(0000) 0000.....0001.....0010.....0011.....0100.....0101.....0110.....0111......1000.....1001--->carry one and reset
(0001) 0000.....0001.....0010.....0011.....0100.....0101.....0110.....0111......1000.....1001--->carry one and reset
etc...
I have the first counting program as an input into the second but I get the same output from both.
P.S. how do I set a VI to 'reentrant'?
Thanks
03-22-2006 12:27 PM
Hi why_ME,
I think that the problem you're having may be due the LabVIEW's dataflow paradigm. If you have a wire connecting the output of subVI A to the input of subVI B, then subVI A will execute first. After it completely finishes execution, the second subVI will execute. These subVIs run consecutively and will only run one time each unless they are in a loop. It's often very helpful to watch your program execute with Highlight Execution turned on (by clicking on the lightbulb button). You can also just step through your program execution.
If you're new to LabVIEW, you may want to check out these helpful introductions to LabVIEW:
LabVIEW Three Hour Introduction Course
LabVIEW Six Hour Introduction Course
The way that you can make a VI reentrant is by going to File >> VI Properties >> Execution and checking the reentrant check box. From your description of the problem, I don't think this is the solution, but it's possible.
I hope this helps, if you have more trouble you could always post a small section of your code that demonstrates the problem you are having.
Good luck!
Megan
Applications Engineer