Display Part of Wave in Table
Wed, 06/17/2020 - 04:03 pm
I am running into an issue that seems like it should be simple to solve but I can't figure out. I would like to display a portion of a wave in a table so that I may compare it with another wave. The caveat is that I can't simply duplicate a portion of the wave because edits made in the table must be reflected in the original wave. Let me give an example of what I mean:
Say we have two waves:
Make/O/N=5 wave1=p; Make/O/N=8 wave2 = p
The following command I would hope works, but does not, is
Edit wave1, wave2[0,5]
This would theoretically display two columns of data that are both 5 points long and if I changed the 0th point in wave2 in the table it would also change that same point in the wave. Syntax similar to this works with AppendToGraph wave2[0,5] which is why I tried it.
Basically I am looking for a suggestion of a way to display part of a wave in a table in such a way that when edits are made in the table those edits are reflected in the original wave. I have thought about trying to use dependent waves or hook functions to update another wave after editing a cell but have run into roadblocks there as well.
Any suggestions are welcome!