LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table not writing to next cell but overwrites the same cell instead

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

0 Kudos
Message 1 of 6
(629 Views)

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.

0 Kudos
Message 2 of 6
(624 Views)

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. 😄

0 Kudos
Message 3 of 6
(622 Views)

I'm not on LV2024 yet- could you do a File- Save for Previous back to 2019?

0 Kudos
Message 5 of 6
(536 Views)

@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.

0 Kudos
Message 6 of 6
(531 Views)