07-03-2013 01:21 PM
Thank you both for helping me.
Based on the "Set y before X"-tips i did some testing, and it seems you also need to set the scale maximum before the minimum.
You are right about the VI you uploaded. However, when I do that on mine, that does not work like on yours. I ended up copying/pasting your diagram in my VI, same issue (see attached Pop-up graph_Yamaeda.vi).
So your problem is coming from wiring both the X minimum and the X offset to the same value in the property node. You shouldn't need the offset since you are already setting the X-min. I went ahead and attached your code that I modified.
I believed that too at some point, but I actually need the offset otherwise when I plot the data, they don't start at the value of Xmin (see attached Pop-up graph_ PTerro.vi).
So I am still looking at clear definite solution because this is a very odd problem but if you need a quick work around you could always put the property node that sets the X-axis in a for loop that iterates twice before moving on.
I'm going to do that for now (see attached Pop-up graph_Final.vi). If you guys have a better solution, I'll definitely use it!
Now, I'm having issues with the memory of the graph. I guess I have changed a setting somewhere while I was trying to look for a solution to my problem. When you run the VI a few times, you can see that the new data are added to the previous ones on the graph, and I don't want that. I'm just asking in case you guys have a quick answer (issue visible on all the attached VIs).
Thanks again
07-08-2013 01:56 PM
MattWSU,
In the future, I recommend starting a new thread for a new issue because it will be viewed by people having similar issues. Here is a link though to clearing graphs programmatically, hope it helps:
http://forums.ni.com/t5/LabVIEW/how-to-clear-graph/td-p/403128
07-08-2013 02:59 PM
Ok, well noted.
Thanks