Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NationalInstruments.UI.WindowsForms.Legend is unlicensed

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();

 

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 ...

0 Kudos
Message 1 of 4
(7,082 Views)

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

Marian Vorderer
0 Kudos
Message 2 of 4
(7,035 Views)

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

Marian Vorderer
0 Kudos
Message 3 of 4
(7,034 Views)

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 ???

0 Kudos
Message 4 of 4
(7,011 Views)