Jump to content

Type def'd graph doesn't ignore NaN values


Recommended Posts

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?

zip.png Bundled

Link to comment

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.

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.