LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CWGraph

My process works fine but I wonder if it's possible sometime (only sometime ) to have no line between two points on a plot ?.I explain : I don't want to see a line bewtween two points separated with lot of time.

Is it possible to get the first point of a plot ?.I need that point because the first points are deleted when we have plotted to much points.

Thank you.
0 Kudos
Message 1 of 8
(3,644 Views)
Pierre,

You will probably have better results posting this question in the Measurement Studio forum, since the CWGraph is a Measurement Studio control, and their developers monitor that forum.

Luis
NI
0 Kudos
Message 2 of 8
(3,644 Views)
Pierre,

You can send a "Not a Number" (NaN) constant to the graph to generate these void spaces in the plot. Here is a small example in Visual Basic that could help you.

Hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 8
(3,644 Views)
Thank you, I will try it with CVI.
0 Kudos
Message 4 of 8
(3,644 Views)
When using NaN ( 0x7F800000) I've got a vertical line at the point like if the value were at the maximum. Is it normal ?
0 Kudos
Message 5 of 8
(3,644 Views)
That looks like the bahovior for +Infinity. Give 0xFFFF FFFF FFFF FFFF a try I think that is the value corresponding to NaN; not totaly sure but I would give it a try.

Hope that helps.

Juan Carlos
0 Kudos
Message 6 of 8
(3,644 Views)
I've got the same behaviour with 0xFFFFFFFF. It's like it was the +infinity.I've corrected the pb with the following code:

double d=0.0;

d /= d; // get NaN value

So, the value was not good.
Thank you for all.
0 Kudos
Message 7 of 8
(3,644 Views)
I'm glad it's working, and d /= d seems to be the fastest way to get a NaN and forget about the value.

good luck.

Juan Carlos
0 Kudos
Message 8 of 8
(3,644 Views)