05-05-2021 09:13 PM
05-05-2021 10:05 PM
You've got a serious data flow problem in that tiny picture of your code. You need to look over the LabVIEW tutorials again.
Start by getting rid of that inner while loop.
It is impossible to help more since you didn't attach your VI so we can see what is really going on in the rest of your VI.
05-05-2021 10:06 PM
Here's my VI. Hope it helps.
05-06-2021 01:44 AM - edited 05-06-2021 01:46 AM
As RavensFan said, you need serious dataflow change, you have wires going all over the place. Generally it's frowned upon if the wire goes backwards (unless you are using feedback node or similar).
You should open file only once, at the start of your program, and then write to it and close when program stops. What you are doing here is opening the file on every loop, write a glob of data into it and then close it.
The way you concatenate strings together you just get a single string out, no spaces or line breaks or anything, that file will be very hard to read.
EDIT: just noticed that you also use empty error constants before each IF, that does absolutely nothing and should be removed.
05-06-2021 08:14 AM - edited 05-06-2021 08:14 AM
A cleaned up version of your code with the file handling fixed.
05-06-2021 08:19 AM
Ah, the magic of
05-06-2021 08:29 AM
05-06-2021 08:29 AM
Thanks alot, truely appreciated.