10-30-2020 05:01 PM
Hi,
I want to insert a graph inside a while loop which will build gradually on each iteration. The X and Y axis ranges will be prespecified outside the loop and the expected curve will build while the code is running. Please have a look on the attached script. The output is pretty much the input squared and the curve on the graph at the end of the code execution should look like the one below
Cheers!
10-30-2020 05:08 PM
10-30-2020 05:30 PM
@Gregory thank you for your suggestions. They seem to work however I can not figure out hot to set-up properly the X axis on the chart. For example my X values need to be x_min=0 and x_max=6 and stay like this for the entire code execution.
10-30-2020 05:56 PM
10-31-2020 09:40 AM
Seems to work that way. The only minor issue is that the XScale.Increment property does not seem to respond to its input. The Y one does. Any ideas on how to fix that?
11-01-2020 04:27 AM - edited 11-01-2020 04:28 AM
I don't know if you are looking for that, but if you want to see all the X markers from 0 to 6 you have to set xscale.style property to 0. You can also set it in the right click menu of the chart.
https://zone.ni.com/reference/en-XX/help/371361R-01/lvprop/scl_style/
11-01-2020 05:56 AM