I am trying to create a pop up window that offers default graph sizes based on the monitor resolution and also a custom option where the user can define their own graph size. However, I am struggling to get the property nodes (to the graph size) to work in my case structure in my sub VI. I have tried using control references in my sub VI to control the size of the graph - which is located on the main VI - but I can't get it to work.
Any help is appreciated!
Solved! Go to Solution.
If only we had some code to look at to help you diagnose your issue...
I think what your immediate problem here is that your reference input on the subVI is on the class "Control". You need it to be of class "Waveform Graph". The simple way to fix it is to right-click on the referece of the XY graph and create a control. Copy that over the current input on the subVI. That will give you more specific properties you can set.
I will let others comment on the rest of your code and how it needs some major cleaning up/refactoring.
Thanks, that got rid of the errors! Also, I'm not sure why the sub VIs (graph resolution01 and graph resoultion) in the case structures are not executing. I have "Run when opened" selected in VI Properties>Execution but it does not execute when I run the code.