LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trick on separating lines has random string but; at the end from textile

 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 😞

0 Kudos
Message 11 of 38
(1,239 Views)

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.

Message 12 of 38
(1,232 Views)

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="

 

Trick on separating lines.png

Omar
Message 13 of 38
(1,215 Views)

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.

0 Kudos
Message 14 of 38
(1,202 Views)

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.

 

Read Lines.png

Omar
Message 15 of 38
(1,196 Views)

@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.

 

Message 16 of 38
(1,193 Views)

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. 😞

 

0 Kudos
Message 17 of 38
(1,173 Views)

not sure if that help

 

Download All
0 Kudos
Message 18 of 38
(1,157 Views)

You are still not auto indexing at the output tunnel of the while loop.

Message 19 of 38
(1,151 Views)

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

0 Kudos
Message 20 of 38
(1,145 Views)