04-19-2021 07:36 AM
Hi
I am using an table in LabView to store some CAN data. My Table is now overflowing with data that have the same values. My question is if someone knows how to overwrite the data in a table if the data is the same.
Example if the first row has data: 12 30 12 and this comes on again that the row will be updated with the same value.
Solved! Go to Solution.
04-19-2021 07:50 AM
Hi VH,
@VH_NIELS wrote:
I am using an table in LabView to store some CAN data. My Table is now overflowing with data that have the same values. My question is if someone knows how to overwrite the data in a table if the data is the same.
A table is a 2D array of strings: to replace subsets of an array you should use the ReplaceArraySubset function…
04-19-2021 07:56 AM
Hi,
I think i formulated my question wrong.
I am receiving data from a device. I am storing all the data in a table (2D array). The problem is that the data keeps filling up the table.
I can prevent this by overwriting the data if a single row pops up that is the same of an row that is already in my table.
I hope you understand my problem better.
04-19-2021 08:09 AM
Hi VH,
@VH_NIELS wrote:
I am receiving data from a device. I am storing all the data in a table (2D array). The problem is that the data keeps filling up the table.
I can prevent this by overwriting the data if a single row pops up that is the same of an row that is already in my table.
And what is the question? Now it seems you already know how to prevent "overflowing the table"…
04-19-2021 09:17 AM
Well maybe if you posted your code we would get a better idea of what you mean. But in general I would say use the Arbitration ID to determine what the packet holds and where in the table to write its contents.