Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Annotation not visible in CNiGraph in 8.6

We have just moved from MeasurementStudio v 8.0.1 to v 8.6. Now we encountered the problem that an annotion (a simple colored rectangle, CNiAnnotation) plotted in the CNiGraph is no more visible. We have used the same code base once compiled with the 8.0.1 and once with 8.6 to exclude any code errors. The rectangle is visible with v8.0.1 but not visible with 8.6.

 

We are creating the graph programmatically without resources.

 

Have there been any changes regarding annotations? Is there something we have to set different in the new version? 

 

Torsten

0 Kudos
Message 1 of 8
(8,627 Views)

Hi Thorsten,

 

could you pleas post your example code?  thx

 

 

Marco Brauner NIG

0 Kudos
Message 2 of 8
(8,549 Views)
Find a code example in the attachment. I have also attached a screenshot which shows the dialog created in the example. Once ran with the older ActiveX control, once with the latest.
Download All
0 Kudos
Message 3 of 8
(8,417 Views)
hi, are you having VS.NET 2008 installed together with Measurement Studio 8.6, or VS.NET 2005 ?
0 Kudos
Message 4 of 8
(8,196 Views)

Hello Torsten,

 

I have had a look at your example and clearly see what you are referring to.  It appears that the change occurred between versions 8.1.2 and 8.5 of Measurement Studio.  I have filed a bug report ( ID 143046 ) on this for further investigation.

 

Sorry for the inconvenience,

 

NickB

National Instruments 

0 Kudos
Message 5 of 8
(8,184 Views)
Thank you Nick

Marco Brauner NIG
0 Kudos
Message 6 of 8
(8,165 Views)

Hello Torsten,

 

Because of a change we made to fix a bug in version 8.5, annotations no longer show in the graph frame area.  The annotations you were drawing were actually on the graph frame, and not within the plot area.  Because of this change we inadvertantly made, annotations will now be clipped against the plot area, thus hiding your previous annotations.  To work around this issue, you can simply move the annotations down into the plot area.  With respect to the example you posted, this just means appending 26 to your vYPos CNiReal64Vector instead of 18.  I am very sorry for the inconvenience.  We will continue to look into this issue to make a decision about what should be done for the future - but I just wanted to let you know how to work around the issue in the meantime.  Please let me know if you have any further questions.

 

NickB

National Instruments 

0 Kudos
Message 7 of 8
(8,120 Views)

Thanks for that information.

The workaround is not very nice for us, since the annotations would overlay the plotted data. We use this annotations to mark the axis a colored plot belongs to.

If it is not possible anymore to draw annotations in the graph frame area, is it on the other hand possible to switch off the frame area to safe that space and expand the plot area?

 

Torsten

0 Kudos
Message 8 of 8
(8,058 Views)