LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

How would you change " [ ] “to”?” that would be great if I can only have the strings in each array and not the {and };

This is great that I have all the string for each loop together in one Colum.

I want my output to fit to the rest of my labview. I attached part of my labview code which the output will connect to. the rest of my logic is basically separating each line, then separate each string in the line by first replacing space with camas then make array out of the , and access to each string. Each line has string and number then I will make an array that place string or repeat them in new array based on their address and there is some logic with the rest of the string. But I made all those logic for one loop and now I have to make it to do it for every loop... Anyway long story!!!! This is my first time using labview so please be patients with me. I am doing my best.

 

0 Kudos
Message 31 of 38
(1,135 Views)

This is sucks that I cannot put comment below each one the respond separately. I tried the "add comment" but it did not work. Any advice?

0 Kudos
Message 32 of 38
(1,129 Views)

Is this what you are looking for as your output?

 

Trick on separating lines.png

 

Omar
Message 33 of 38
(1,118 Views)

That would mess up my code I think that would be great if Altenbach help since he knows why I am going use those string for

Alternback, Remember I asked you before to help me with this:

“delete column and replace it with column it with the column before it”

And you made this:

Bit8

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

jhsgdv

uhuh

jshhgy

kjfhj[0]

kjfhj[1]

jhj

kjhj[0]

kjhj[1]

kjhj[0]

Those name and numbers were coming from the first two column of this code for example:

“DER_KHU_1_0   7:6”    means place DER_KHU_1_0 at 7 &6 but I change the name and numbers. So kjhj   2:0 is the similar to DER_KHU_1_0  7:6

Now that I have all the lines of each array right after each other, my program is confused about incrimination. I think if I make the lines for each array separate from the next array and don’t dump them right after each other, then I can still use your previse code. I need your advice

this is what i get connecting what Omar give me to the rest of my code

1 1 1 1 1 1 1 DER_KHU_1_0
1 1 1 1 1 FRTY_1_RTGC 1 1
1 1 1 1 FG_DERF_1_0 1 1 1
1 1 K_DF_SWRD_DHDDI 1 1 1 1 1
1 L_DFTF_SHDD_DH 1 1 1 1 1 1
SHDDU 1 1 1 1 1 1 1
1 1 1 1 1 1 1 HDGDFD
1 1 1 1 1 1 EDT_n 1
1 1 1 1 1 HGD_l_SDR_ 1 1
1 1 1 1 HGD_l_SDR 1 1 1
1 1 1 HGD_l_SDR_ 1 1 1 1
1 1 HGD_l_SDR 1 1 1 1
HGD_l_SDR 1 1 1 1 1 1
HGD_l_SDR 1 1 1 1 1 1

 

0 Kudos
Message 34 of 38
(1,090 Views)

any advice ?

0 Kudos
Message 35 of 38
(1,063 Views)

Again, what is it that you wait? What is the final output?

I don't see the "rules" you are using to get from this


BLOCK

{

                ABCD_BSU2_TSET <BSU_ ORCAM _CED: 0x000> 32 KLC="hclk"

                {

                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;

                };

                ABCD_BSU_LLP <BSU_ORCAM_CED: 0x004> 32 KLC="hclk"

                {

                HDGDFD   7 NUM DEF=0x1 RW;

                EDT_n   6 NUM DEF=0x1 RW;

                HGD_l_SDR_5_0   5:0 NUM DEF=0x19 RW;

                };

the rest of the code

.

.

.

}


 

To this


1 1 1 1 1 1 1 DER_KHU_1_0
1 1 1 1 1 FRTY_1_RTGC 1 1
1 1 1 1 FG_DERF_1_0 1 1 1
1 1 K_DF_SWRD_DHDDI 1 1 1 1 1
1 L_DFTF_SHDD_DH 1 1 1 1 1 1
SHDDU 1 1 1 1 1 1 1
1 1 1 1 1 1 1 HDGDFD
1 1 1 1 1 1 EDT_n 1
1 1 1 1 1 HGD_l_SDR_ 1 1
1 1 1 1 HGD_l_SDR 1 1 1
1 1 1 HGD_l_SDR_ 1 1 1 1
1 1 HGD_l_SDR 1 1 1 1
HGD_l_SDR 1 1 1 1 1 1
HGD_l_SDR 1 1 1 1 1 1


 

Omar
0 Kudos
Message 36 of 38
(1,053 Views)

Thank you all I finally fixed it using your previse advice. 🙂

I appreciate it if someone can please explain how the match regulator comments work… (\S+)\s+(\S+)\s+(NUM DEF=)(0x\d+)\s+(\S+); and how to change this comment to look at hex decimal instead of “ d” inside here [NUM DEF=)(0x\d+)].

These two row below happen in my file and they are missing in my final array

7:0 NUM DEF=0xf1 RW; 7:0 NUM DEF=0x0f RW;

0 Kudos
Message 37 of 38
(1,048 Views)

never mind I fixed it. I just needed to change the "d" to "w" in the Regular Expression. Thank you all 🙂

0 Kudos
Message 38 of 38
(1,041 Views)