From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-25-2024 01:02 PM
Hi everyone,
I am using a controller that sends data to LabView in the form of strings of data. These strings of data contain various parameters at different timepoints, which I can separate by the commas.
After that, I put this data in a sliding buffer that feed the array to two different graphs.
The array is then feeded back to the sliding buffer by a shift register and new data keeps being added.
I adjust the X axis using property nodes to define the minimum and maximum range.
While troubleshooting, I deleted one of the graphs, and the lagging of the data disappears completely.
The array in the sliding buffer can have 5000 points. I tried decreasing this and it did not help.
04-25-2024 01:24 PM - edited 04-25-2024 01:26 PM
Hi Icy,
@IcyVolcan wrote:
While troubleshooting, I deleted one of the graphs, and the lagging of the data disappears completely.
The array in the sliding buffer can have 5000 points. I tried decreasing this and it did not help.
Did you also delete the ExpressVIs before that graph?
Plotting 5000 points in a XYgraph might need some processing time…
So many questions…
04-25-2024 01:28 PM
I've been told writing to property nodes is a slow operation. See if you get back some performance by only writing to them when "Human gait cycle control" or "Graph Width" are changed.
Are you limiting loop speed by using the 'Wait (ms)' or similar VI? That might be helpful to add if you're not currently doing this.
04-26-2024 03:50 AM
04-26-2024 03:53 AM
How can I make it so that it only writes to the property nodes if some value is change?
And about the wait, I added a basic wait time for the whole loop and it helped a bit but it did not fix it completely.
04-26-2024 04:03 AM
Hi Icy,
@IcyVolcan wrote:
How can I make it so that it only writes to the property nodes if some value is change?
Use a case structure to execute code based on a condition…
04-26-2024 06:47 AM
You could also use an event structure in a separate loop to set the property nodes. For instance, add the "Value Change" event on "Human gait cycle control" and "Graph Width", and move the code updating the property nodes inside it.
04-26-2024 08:10 AM
Hi,
I took out the property nodes and I am trying to autoscale the X and Y.
The problem is that the X scale starts at -1million everytime even though my first timepoint is always 0, making the graph not display my data in a visible way:
What can I do to fix this?
Thanks.