09-30-2007 09:49 PM
09-30-2007 09:55 PM - edited 09-30-2007 09:55 PM
Why do you have 2 For loops (one inside the other) that only execute once because of the constant of 1 wired to their N terminal? What is the purpose of that lower For loop? You have an indicator called Results, where does it get its value from?
When Dennis said post the actual code, he meant post the actual VI (and also any sub-VI's or anything needed to allow the code to run such as a typedef control). This allows for all the code to be seen and possibly tested.
Sorry, you posted the actual VI while I was writing the reply. But this generated a couple other comments.
1. Why is the control numeric6 a hidden control? Where does it get its value from.
2. Why do you initialize the 2 1-run loops with a local variable of numeric? You may have generated a race condition, the code at the lower part may occur (probably is more like it) before the value gets assigned to the numeric terminal in the upper portion. You can't guarantee that you'll have the latest code. You could possibly get duplicate values, and also miss a value. You should minimize the use of local variables and replace that with a wire to guarantee data dependency and data flow.
Message Edited by Ravens Fan on 09-30-2007 11:02 PM
09-30-2007 10:06 PM
09-30-2007 10:14 PM
09-30-2007 10:52 PM - edited 09-30-2007 10:52 PM
Message Edited by Ravens Fan on 09-30-2007 11:53 PM
09-30-2007 10:57 PM
10-01-2007 01:58 AM
10-01-2007 09:18 AM
10-01-2007 08:31 PM
Hi again,
sorry to trouble you again, could you save the attached .vi in version 8 cause i couldn't open it in LV8.2.
Many thanks!
10-01-2007 09:29 PM - edited 10-01-2007 09:29 PM
Message Edited by Ravens Fan on 10-01-2007 10:29 PM