From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-08-2005 10:56 AM
12-08-2005 11:12 AM
It may be because your licenses.licx file is not up-to-date. What are the contents of the license.licx file in your project? There's a menu item in the Measurement Studio menu to refresh the licenses.licx file. Try that, then rebuild the project. Be sure to rebuild rather than just build since the project system will not automatically rebuild if licenses.licx is the only thing in the project that's changed.
- Elton
12-08-2005 11:17 AM
12-08-2005 11:21 AM
What if you remove the lines that contain "Version=7.1.0.306"? Also, could you please post the exact error message and stack trace from the exception? Thanks.
- Elton
12-08-2005 11:25 AM
An unhandled exception of type 'System.ComponentModel.LicenseException' occurred in nationalinstruments.common.dll
Additional information: NationalInstruments.UI.WindowsForms.Led is unlicensed.
> DEER DAQ.exe!DEER_DAQ.frmDAQ.InitializeComponent() Line 161 + 0x16 bytes Basic
Me.ledEngineStatus = New NationalInstruments.UI.WindowsForms.Led
I've tried one, the other or both in the license file. The controls are from a MS 7 package. I don't know if 8 updates them or not...
Thanks for your help.
12-08-2005 02:26 PM
12-08-2005 02:35 PM
12-08-2005 02:58 PM
12-08-2005 02:58 PM
12-08-2005 04:07 PM
Before I go out to get some more information for you, I will give you this much:
I wrote a program using Visual Studio .NET 2003 (VB) and Measurement Studio 7. Everythink worked perfectly. Then I purchased a copy of Visual Basic .NET (Not Visual Studio) and Measurement Studio 8. I took the code from the previous setup and tried to run it on the second machine. When the code reached the first NI control in initialize components it errors out. Then I tried to delete every NI control and remake them with the new setup. This did not work. Then I made a completely new program that changed the state of an LED given the state of a switch. That didn't work. Then I opened an example file for aquiring voltage and that worked. I was told by an NI rep that it had no Measurement Studio tools so I added a switch that did nothing. Guess what, now it doesn't work.
He emailed me the license files and I placed them in the specified directory. Still didn't work. Perhaps his license files are not compatible with my setup? Could the problem be that I only have Visual Basic .NET support from Measurement Studio installed? Is it possible to browse through the CD for the correct license files?
Thanks.