05-19-2010 12:23 AM
hi tbob,
i could get the subVi run at the first time but the subVi does not update the "random value" continuously. or does it? i use enum because i was suppose to open more than 1 subVi at the same time.
thanks
05-19-2010 11:47 AM
fmpfmpf wrote:hi tbob,
i could get the subVi run at the first time but the subVi does not update the "random value" continuously. or does it? i use enum because i was suppose to open more than 1 subVi at the same time.
thanks
Your subvi was not written to update the random value continuously. It was written to take in one random value and display it in an indicator. To display continuously, your subvi would have to have a loop in it with the random generator feeding the indicator. There is no loop in you subvi. The random generator is in main, not in your subvi. I will let you try to make those changes for practice. Let me know if you have trouble.
Do you mean you want several choices in your enum, with each choice opening up a different subvi? If so, then the use of an enum is OK. You did not mention this in your original post.