11-21-2007 02:59 AM - edited 11-21-2007 03:00 AM
11-21-2007 11:16 AM
11-21-2007 11:36 AM
Can you show us the "one loop" version? Maybe it has a simple solution. 🙂
Anyway, this is not such a complicated problem, but you should not constanty do file IO (this is only needed if everything absolutely needs to be recorded immediately so the data is retained even if the computer crashes).
Use a state machine architecture with a single loop and an event structure.
11-29-2007 04:26 PM - edited 11-29-2007 04:27 PM
11-29-2007 06:14 PM
WEvans wrote:
I restructured the program to have a single loop, and everthing works good except a couple issues:
1) Refering to Fig 14, the cirlced portions of the program does not seem to be able to work simultaneously. If just one portion is there... the program works fine. If both are there, the circled portion of code with the "x" does NOT execute (at all).
2.) Refering to "Venue text", For some reason the program writes extra spaces between the name. This affects the the reading of the file (names will apear as a single string) since the "spreadsheet to array.vi" is looking for a SINGLE space.
You still have many things to clean up. For example,
12-01-2007 07:36 AM
12-01-2007 12:14 PM - edited 12-01-2007 12:14 PM
Well, now it is an even bigger mess. 😮 You should not add sequence frames to determine execution order, but just used wires and things will fall into place. One very big No-NO! is your right-to-left wiring. That will confuse everybody! The initial reading of the files should occur on the left for clarity.
What is the purpose of OK1?
Here's a quick draft how you could do it. I did not test it so there are probably bugs everywhere, Still it should give you some ideas on how to do certain things.
Let me know if you have any questions.
Tab is a good delimiter. Space is not as good, because the name or venue could contain a space. You could also use a newline character. That would place each entry on a new line in the file.
12-01-2007 12:47 PM
12-04-2007 03:33 PM
12-04-2007 03:54 PM
You can find out more about the
Grand Wizard here.
Ben