george seifert Posted May 29, 2009 Report Share Posted May 29, 2009 I've run across a problem with a graph within a typedef that doesn't display NaN values properly. Nornally NaNs are ignored and no points are plotted, but in my case the values show up as huge numbers. In the enclosed example I feed values to the graph within the typedef and the same graph disconnected from the typedef. You can see that the non typedef graph is fine. I think the problem has to do with the representation of the numbers in the graph because even with the non typedef graph if I make the representation of the number I32 instead of double it will display as the typedef graph. I can't figure out how to make the representation of the numbers in the graph within the typedef be doubles. Even if I change the formatting of the axes to be floating point it still doesn't help. Any thoughts on what I can do? Bundled Quote Link to comment
candidus Posted May 29, 2009 Report Share Posted May 29, 2009 Without looking on your code (I don't have LV8.2), here's how you can create a graph typedef for a specific type: Add a graph to your frontpanel. Feed your graph with an initial value (empty data with the correct type) so the graph set its data representation to the type of that value. Right-click your graph, select Advanced->Customize. Save the graph typedef. Now it should only accept values of the type you specified. Quote Link to comment
george seifert Posted May 29, 2009 Author Report Share Posted May 29, 2009 QUOTE (candidus @ May 28 2009, 10:45 AM) Without looking on your code (I don't have LV8.2),you could try to feed your graph with an initial value (empty data with the correct type) so the graph set its data representation to the type of the initial value. Hey that worked! I feed a double into the graph outside the typedef and then I replaced the graph in the typedef with the new one. Thanks much. George Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.