04-03-2013 08:49 AM
Hello,
I'm trying to change the table values while the VI is on, but without success, someone can show me please how to do this.
Thanks
MGarry
Solved! Go to Solution.
04-03-2013 09:01 AM
04-03-2013 09:25 AM
In fact aCe i'm reading from the table in another VI, the values are transfered from it to an Excel file and i want to allow some flexibility to the programme by making changes after reading and saving them. If i can change the values in the LV table i can do the same with the excel file.
Thanks for your reply.
MGarry
04-03-2013 09:31 AM
MGarry,
you are writing new values into the table every 6 seconds. So, if you made any changes, they will be overwritten because the data you write to the table is held in the shift register.
So instead of using a shift register, you can read from the table itself, add new stuff and write back using the local variable as you do right now. This is one of the rare cases, where a shift register might not be suitable for the task.
Norbert
04-03-2013 09:38 AM
Ok Norbert, so how would i be able to perform the continuous reading if there is not any shift register, what do i have to add ?
MGarry
04-03-2013 09:42 AM
Put the table terminal into the loop and read from that instead of the shift register. Delete the shift register (and connected wires) but keep the writing local variable referring the table.
Norbert
04-03-2013 09:54 AM
I can't make it work this way maybe there is something i'm missing or doing badly, please if you could modify the VI i posted that'll be nice.
MGarry
04-03-2013 09:59 AM
MGarry,
something like this:
Please note that this does not reset the table content if you rerun the VI. You might want to add some code for that.
Norbert
04-03-2013 10:04 AM
Thanks Norbert this is working,
MGarry
04-03-2013 10:16 AM
there is something else, after doing the changes, i'm trying to modify directly from the Excel file and it seems to be impossible, i guess in order to do that Labview should be able to read from the Excel file while it's writing to it, can this be done ?
MGarry