06-26-2020 05:57 AM - edited 06-26-2020 05:59 AM
Hi,
I have an issue setting up a second y axis in a xy graph. There is a main vi, sending data and a graph reference to a sub vi that is supposed to do some calculations and build the graph. However, when I change the data and press run in the main vi, only the primary y axis is updated in both, main and sub vi. I have to press run 2nd time and then the second y axis is updated as well.
Using breakpoints and probes in the sub vi, I noticed that the program flow seems ok. Graph data is updated first and then it goes to the prop node but the prop node delivers the old values.
Attached you can find a simplified VIs showing the problem and a screenshot where you can see that the graph is already updated (y1.max = 3) while the property note still delivers the old value 14. (Main VI is main_tester.vi and sub vi is Plot_Kompression.....)
Any ideas how to solve this? Thanks in advance!
Solved! Go to Solution.
06-26-2020 06:48 AM
06-26-2020 07:12 AM
Good to know. For me the problem persists. Is there anything like vi cache or so that could cause the problem? I just began to rebuild the vi, but the original one is quite large and complex so I was very happy to avoid that.
06-26-2020 07:17 AM
I believe you have something weird going on because of how the graph indicator in the SubVI is in the first frame. Stacked sequence structures are nothing but trouble... You already have the reference for the main graph going into the SubVI, just change its value by reference and the problem is fixed for me. See attached.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
06-26-2020 07:22 AM
I cannot load this since you used Labview 2017. I am sitting on 2016. Could you provide a screenshot of your changes?
06-26-2020 07:35 AM
I'm a derp, apologies.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
06-26-2020 09:20 AM
Oh holy.. You would not believe how long I already was trying to fix that. You did it. Thank you so much! 😊