LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Independant VIs from a VIT

Thank you both for helping me.

 


Yamaeda:

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).

 

 


PTerro:

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).

 

 


PTerro:

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

0 Kudos
Message 11 of 13
(396 Views)

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

 

 

Peter T
Applications Engineer
National Instruments
0 Kudos
Message 12 of 13
(380 Views)

Ok, well noted.

 

Thanks

0 Kudos
Message 13 of 13
(373 Views)