Hello...
I have a VI to perform analysis of series and its spectral analysis results. The VI loads two ascii files: the first ascii loaded has one single column with the whole series (9001 values), in the sequence, the second ascii file loaded has 34 columns, each column representing the spectral analysis results of each one of the 34 segments that the whole series were splitted.
After loaded, the first ascii file (9001 values) is shown in 34 different graphs with 512 points each, and the 34 segments are overlapped by 50 %. In the left top of each graph there is a LED, that when is GREEN indicates that the spectral results provided from the analysis of that specific segment, will be used to compute the final result. For example: if I set (just clicking on them) to GREEN only the LED of segments (19, 27, 31, 33), only the columns 19, 27, 31, 33 of the ascii file with spectral analysis results, will be take into consideration to compute the final result. All the other columns (1, 2, 3, 4, ......) will not be used to the calculus.
My problem is, I performed the analysis with this VI of a large amount of files, but I only take note of the final values (Very low, Low, High, Low/High), but I did not take note of which segments were labeled with RED or labeled with GREEN, but now I need this data and will be impossible to try all the possible combinations of GREEN or RED led of the 34 segments, because there are 17.179.869.184 (2^34) possible combinations.
My idea to solve this issue: I need to build a function where I show to the VI the values of Low and High, and the VI by itself promotes the 17.179.869.184 combinations with the LEDS and when the expected values are reached the VI stops. Next, I can see which of the LEDS are GREEN or RED. I think that the COMPARASION vi might be used to test the to values inputed and when the correct combinations provides a value that matchs with the entered value, the VI stops.
One imporant thing to remember is that the LED provides values 0 and 1 like. This way, the sequence might look like this 00000110001000100.... (with 34 digits).
Lets use as example a situation where I have the value 12432 for Low and 36450 for high, which combination of LEDS promotes these results?
Are there any way to do this?
Attached is the VI, and the two ascii files that should be loaded in sequence.
Thanks in advance
Dan07
Message Edited by dan07 on
06-12-2008 11:47 PM