06-09-2014 03:12 PM
Thank you both for your help .. I don't know what I am doing wrong but I get nothing for " bit in line 3" and I get the whole code for "bit in line 2" .. I rather to have 2D array as my output so taht I dont have to chage the rest of my code.. It's too late to start them all over 😞
06-09-2014 03:39 PM - edited 06-09-2014 03:41 PM
If the program does not work, attach your code instead of pictures. we cannot debug pictures.
Also include the datafile.
Since you are not autoindexing at the output tunnel, all you get is the output string of the last iteration.
06-09-2014 04:12 PM
I am not sure just what or how you wish your output is to look
Is this what you wish for your output?
DER_KHU_1_0 7:6 NUM DEF=0x0 RW;
FRTY_1_RTGC 5 NUM DEF=0x0 RW;
FG_DERF_1_0 4:3 NUM DEF=0x0 RW;
K_DF_SWRD_DHDDI 2 NUM DEF=0x0 RW;
L_DFTF_SHDD_DH 1 NUM DEF=0x0 RW;
SHDDU 0 NUM DEF=0x1 RW;
HDGDFD 7 NUM DEF=0x1 RW;
EDT_n 6 NUM DEF=0x1 RW;
HGD_l_SDR_5_0 5:0 NUM DEF=0x19 RW;
Could not just check for lines that contain "DEF="
06-09-2014 04:47 PM
Altenback, I am so sorry and I totally understand that would be easier to debug if I share my labview and my data log file but I'm not allowed bec its company confidential.
Omar, I have indexing problem with your code and my previuse code and There is no way to enable the index unless I tell the loop how many times to iterate which is impossible bec the code may not work for another data log file.
06-09-2014 04:52 PM
Did you select the correct mode for the file read?
Select the Read Lines version and feed in a -1 and the output will then be an array of lines.
06-09-2014 04:53 PM
@razii wrote:
Altenback, I am so sorry and I totally understand that would be easier to debug if I share my labview and my data log file but I'm not allowed bec its company confidential.
You can attach a code snippet, which is just a picture that turns into runnable code later. Apparnetly, you are allowed to attach pictures.
razii wrote:Omar, I have indexing problem with your code and my previuse code and There is no way to enable the index unless I tell the loop how many times to iterate which is impossible bec the code may not work for another data log file.
You can enable indexing on a WHILE loop by right-clicking the tunnel. You don't need to know the number of iterations.
06-09-2014 06:04 PM
Either the picture or the actual code, has detail about the registers in the design and I am not allowed to share but I sent you a similar format that my code has, I am so stuck I did everything you guys asked me but it’s not working. 😞
06-09-2014 06:30 PM
not sure if that help
06-09-2014 06:32 PM
You are still not auto indexing at the output tunnel of the while loop.
06-09-2014 06:45 PM
ok I just changed them now. the second loop I get no output in my array and for the 3rd loop I only get "};" in my output array