07-28-2010 10:01 AM
I am using the trial version of the Measurement Studio 2009 for Visual Studio 2005 that I downloaded and installed on Monday. To get acquainted with the Graphs Options, I wrote a small application. Now I want to develop a new program having similar functionalities. However I can not instantinate the Legend class:
NationalInstruments::UI::WaveformPlot^ wf;
NationalInstruments::UI::WindowsForms::Legend^ lgnd;
NationalInstruments::UI::LegendItem^ lgnditem;
lgnd = gcnew NationalInstruments::UI::WindowsForms::Legend();
These lines are under the button click event and if user clicks the button, a new form is generated which has a waveformgraph with a legend. For the last line above, I got the following error message:
NationalInstruments.UI.WindowsForms.Legend is unlicensed
The trial version is new and is not supposed to expire. The "small application" is still running without any errors. What would be the reason? Except the legend class, I do not have a similar problem for led, waveformgraph classes in the ...
08-04-2010 12:20 PM
Hello Asay,
thank you for posting at the National Instruments Forum. You wrote, that you are using Visual Studio. I heard of a similar problem, when a customer used Visual Studio together with Visual Studio Express (free VS from Microsoft). Have you installed the Express Version as well on your computer?
Best regards
08-04-2010 12:20 PM
Hello Asay,
thank you for posting at the National Instruments Forum. You wrote, that you are using Visual Studio. I heard of a similar problem, when a customer used Visual Studio together with Visual Studio Express (free VS from Microsoft). Have you installed the Express Version as well on your computer?
Best regards
08-05-2010 04:06 PM
Hi,
no express version is installed in my computer.
Actually I solved the problem, by defining the variable as class variable not as in the function. However, I did not understand the reason why it worked ???