05-06-2024 10:57 AM
So we found this existing vending machine LabVIEW program, and we wanted to add a simple data logging feature to it using the table. With minimal changes to the existing vending machine program, we added another case structure for the data logging (named data log). Testing the data logging program in itself (without the whole vending machine program), works just fine. It inputs each soda clicks input into the next cells. Whereas adding it to the vending machine program does not do that but instead overwrites the same cell. I've tried fiddling around the state machines processes (which I have little knowledge of) but it does not fix it. I am guessing it has something to do with the arrays or index, but then again, I'm not experienced with this application.
If you want to check this exact part, it is just under the data log case in the case structure. Also the preexisting vending machine program has some sort of object codes in different files. You can maybe download it all and open the main file with "latest" on the file name.
Thank you in advance
05-06-2024 11:05 AM
You forgot to attach the code 🙂
Also, if you're on LV2024, be sure to use File- Save for Previous and go back to 2019 or so. Not everyone here (myself included) is on the latest version yet.
05-06-2024 11:08 AM - edited 05-06-2024 12:40 PM
Did you add another case (state) to an existing case structure or did you add an additional case structure?
If you always want to log, why can't you do that in one of the existing states?
Assuming you append to the log string kept in a shift register, is it wired across in all other cases?
It would also be nice to give a link where you "found" the original code. Things found in the certification forum are often of very variable quality. 😄
05-06-2024 11:24 PM
My bad, here are the codes.
05-07-2024 09:44 AM
I'm not on LV2024 yet- could you do a File- Save for Previous back to 2019?
05-07-2024 09:59 AM
@BertMcMahan wrote:
I'm not on LV2024 yet- could you do a File- Save for Previous back to 2019?
... and attach everything as a single zip file.