12-15-2008 05:59 AM
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
12-22-2008 07:22 AM
Hi Thorsten,
could you pleas post your example code? thx
Marco Brauner NIG
01-06-2009 03:44 AM
01-29-2009 07:36 AM
01-29-2009 10:47 AM
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
01-30-2009 04:42 AM
02-02-2009 02:53 PM
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
02-06-2009 10:16 AM
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