LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

I am looking at the output using indicator. I can not connect my output to "spreadsheet string to array " anymore

0 Kudos
Message 21 of 38
(1,119 Views)

@razii wrote:

I am looking at the output using indicator. I can not connect my output to "spreadsheet string to array " anymore


Why would you want to do that anyway?

Message 22 of 38
(1,100 Views)

bec I can have 2D array output which would fit the rest of my logic. I am not sure if you got my last message :

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 23 of 38
(1,092 Views)

Ok, let's take a step back.  What EXACTLY do you you want for an output?  Please provide an example of the input file and the format you want for the data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 24 of 38
(1,070 Views)

@crossrulz wrote:

Ok, let's take a step back.  What EXACTLY do you you want for an output?  Please provide an example of the input file and the format you want for the data.


I agree.

If you are autoindexing, you already get an array (1D). If you want a 2D array (as you seem to want in your code), you need to tell us exacly what should be in the rows and columns.

Message 25 of 38
(1,053 Views)

I do get a 1D array but its eaither emepty array or its array of every sinngle line of the code and not that particular one that I want. the problem with using match block is that it eaither give you exact match ";"  that you are looking for, which would output array of  ";" or if you lookt at "before match" it will just output the whole code in lines. if you look at "after match" then it give you nothing.

I guess at this point it dose not matter if its 1D or 2D as long as I get a code that work. non of those code work for my program. I did my best to provide you an exmaple with the format that my code has, i basically changed the names but let me see if I can provide you my actual code

0 Kudos
Message 26 of 38
(1,046 Views)

omg ... It finally works!  I did not do anything since last night but my first run today it works!!!! ... have no idea!!!.. thanks you all for all your help can you please give me more detail on how {[~{}]*}; work ?

0 Kudos
Message 27 of 38
(1,040 Views)

As many others have asked from you "What exactly do you want your output to look like?"

But we still have not gotten a clear answer from you.

 

Show us what you want your output to look like

 

 

Anyway.....

This is not what I sent you

Omar's Try.png

You need to configure the index output for "conditional"

 

Try this snippet.

This is not just a picture but actual code that you can drop on a block diagram and run if you are running LabVIEW 2013

Trick on separating lines.png

Omar
Message 28 of 38
(1,039 Views)

razii wrote: can you please give me more detail on how {[~{}]*}; work ?

That will return the longest string between the { and } without having any { or } in it.  It is a regular expression.  They can get quite interesting if you dig into them enough.  I stole that from the LabVIEW help for the Match String function.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 29 of 38
(1,033 Views)

@razii wrote:

omg ... It finally works!  I did not do anything since last night but my first run today it works!!!


That typically points to a shift register that you forgot to initialize. It will only start out at zero on the first run.

 

What is "it"? You posted so many code fragments that it is impossible to tell.

0 Kudos
Message 30 of 38
(1,029 Views)