LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using a case structure selector controlled by a cluster of enums

OK, I put an indicator on the i terminal and the loop is happening 10 times (0-9) however, the enum constant is only advancing between P1 and Rad5. At the 10th loop, it rolls over to P1.  The enum array seems to not getting to Rad6???

Also, I'm not sure if the last IO.vi had the cal factors array with the added elements so here it is again.

 

 

 

0 Kudos
Message 11 of 16
(884 Views)
Data In (SIM) and SIM/DAQ have 10 elements. CalFactors has 6 rows and 2 columns. (previous version). The array of enum constants has 19 elements. The for loop runs 6 times.

You need to understand how autoindexing works on for loops. Check the help and tutorials.

Lynn

Message Edited by johnsold on 07-12-2007 10:39 AM

0 Kudos
Message 12 of 16
(885 Views)
It still only hs 6 rows.
0 Kudos
Message 13 of 16
(878 Views)
Well crap!!
 
All I got to do to add elements to the cal factor array is to input a value in the two columns and advance the adix until I see 9. Then I push save... correct?
 
 
0 Kudos
Message 14 of 16
(875 Views)
I see what's wrong now. For the enum array, you selected to make the index display hidden so I just assumed that you had a constant with 10 elements. What it actually is, is an array with 20 elements and elements 9 through 19 are being displayed. If you show the index display and select that to display the first 10 elements, you will see that element after Rad5 is P1. Change that and delete all of the extra elements in the array.
0 Kudos
Message 15 of 16
(868 Views)

Dennis, you are truly a genius and a generous person for helping me!!  Thank you so much!! That worked....hooray!!

CJL

 

0 Kudos
Message 16 of 16
(857 Views)