06-09-2014 06:50 PM
I am looking at the output using indicator. I can not connect my output to "spreadsheet string to array " anymore
06-09-2014 08:15 PM
@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?
06-09-2014 08:24 PM
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
06-10-2014 06:27 AM
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.
06-10-2014 10:45 AM
@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.
06-10-2014 11:39 AM
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
06-10-2014 12:02 PM
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 ?
06-10-2014 12:02 PM
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
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
06-10-2014 12:20 PM
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.
06-10-2014 12:30 PM - edited 06-10-2014 12:31 PM
@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.