LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

The (plot) attribute passed is not valid

Solved!
Go to solution

Hello, hello,

I currently have a minor error that leaves me wondering. It's "Function SetPlotAttributeAnsi: (return value == -46 [0xffffffd2]). The attribute passed is not valid" on the last line (the ATTR_VISIBLE), which is currently 0. No other line has errors and the plot displays fine in the C graph. Any idea ?

 

 

Plot = PlotXY(P, C, RsB, CopyI, NbRs, VAL_DOUBLE, VAL_DOUBLE,
				   PlotStyle, PointStyle, LineStyle, 1, Color);
SetPlotAttribute(P, C, Plot, ATTR_PLOT_LG_TEXT, "7 - Filtered %s");
SetPlotAttribute(P, C, Plot, ATTR_PLOT_SNAPPABLE, 0);
SetPlotAttribute(P, C, Plot, ATTR_VISIBLE, Visible);

 

I should add that the program is single thread and there are 4 plots on that graph, none of which have this problem.

0 Kudos
Message 1 of 3
(1,113 Views)
Solution
Accepted by topic author gdargaud

The corrrect attribute to use is ATTR_TRACE_VISIBLE (1234) instead of ATTR_VISIBLE (530).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(1,074 Views)

Woah, talk about missing the obvious. I had several other SetPlotAttributes with the proper attribute in my code, and I kept comparing the code to no avail...

Grazie...

0 Kudos
Message 3 of 3
(1,047 Views)