05-15-2007 08:52 AM
05-15-2007 09:07 AM
update:
This does not occur though, if I run it with highlight execution on or if I just run it with a "static" array not one that I am acquiring in a previous step. I have tried to put a large time delay in play to emulate the effect of highlight execution, and to also give extra time for the array to be stored, but this did not work either.
05-15-2007 09:09 AM - edited 05-15-2007 09:09 AM
Message Edited by smercurio_fc on 05-15-2007 09:10 AM
05-15-2007 09:36 AM
Yeah I have something against comma's 😛 in this case I am looking for specific message content coming back from a decoder which replicates a satellite reciever. Part of my code builds an array with all of the data received from the reciever, and the other part takes that array converts to a spreadsheet string then uses this funtion first to delete all of the commas in the string, then I use it as a search function by "replacing" the message that I am looking for. I do this because the string could have numerous instances of the same message and so I just use the "number of replacements" output as a pass/fail criteria. Here is a screenshot of the code:
05-15-2007 09:50 AM
05-15-2007 10:17 AM
05-15-2007 10:24 AM
05-15-2007 10:29 AM - edited 05-15-2007 10:29 AM
Message Edited by smercurio_fc on 05-15-2007 10:30 AM
05-15-2007 10:36 AM
There are a ton of commas per line (30-50 ish depending on the message length). The data that comes back from the reciever is commas seperated for every one of its critera, and then again every 2 bytes in the message content. I did try to use the commas as the delimiter in building the spreadsheet string, but it still did not help. In response to the while loop abuse I added a function that scans the incoming strings for length, so it now is controlled by if a message of or greater than a specific length is found, or x number of iterations pass, then stop the loop.
I found a work-around.....but it is kinda of hookey.....if I write the data from the while loop into a global variable, then read from the variable the code works fine, I tried it over and over and it seems to work.....I don t really like this approach though and I am open to a better solution if anyone has an idea. I do not change anything else with the code other than split the data line to a varible and read back that variable. Would this help only because the data is "forced" to be written to memory in sequence?
Andrew
05-15-2007 10:42 AM
OK, that makes so litttle sense, it's scary! Can you show your code?
@labstew wrote:
I found a work-around.....but it is kinda of hookey.....if I write the data from the while loop into a global variable, then read from the variable the code works fine, I tried it over and over and it seems to work.....