10-29-2019 12:18 PM
Hello,
I have been using Visual Basic 2008 with Measurement Studio since 2008. Over the years I have developed what for me was a complicated program to measure the audio frequency response of microphones and speakers. It is called DFR. I used two computers for the development work. One used Windows XP and the other Windows 7.
While my program worked quite well on both computers, I was never able to publish it to another machine. I was able to transfer simple Visual Basic 2008 programs, but I was not able to publish any programs involving Measurement Studio up to version 2013 (the highest version I had). Since they were the two computers I used, it was not really an issue. However, over time, both computers have aged, and the newer machine has failed twice. Windows no longer supports XP machines and at the end of the year, Windows 7 will no longer be supported.
It is extremely important that I be able to transfer the DFR program to a new machine!
I considered several approaches. The first was to fix the problem with publishing a program using Visual Basic 2008 and Measurement Studio 2013 on one of the old computers. That has not been successful at all as the publish process appears to work but no program runs.
The second approach was to upgrade both my version of Visual Basic and Measurement Studio on a new computer and then compile the old program on the new machine. I now have Visual Studio 2017 on my new computer. I have also installed the evaluation version of Measurement Studio 2019 on the same computer. When I tried to update the DFR program, I received an error message that the program could not compile. Ultimately the problem was traced to the use of an MS LED on the program.
My third approach would be to completely rewrite the program on the new computer. Just to be sure this was possible, I tried to compile and publish a very simple program using both VB 2017 and MS 2019. It has a button and an LED and is called Red_Green. The button changes the color of the LED. The program works on the new computer with VB 2017 and MS 2019 installed, but when I publish it to a another Windows 10 computer, the publish process appears to work, and the starting Windows form appears with the button on it, but the LED is nowhere to be found. This appears to be a basic problem. I tried other MS instruments on a slightly more complex version of the simple program, and the other instruments did appear.
Should I be able to update a VB 2008 with MS 2013 program in VB 2017 with MS 2019???
I would buy Measurement Studio 2019 as long as I knew why this LED problem occurs and that it could be corrected. Could you help me with that? If absolutely necessary, I would install both VB 2017 and MS 2019 on a special computer I would use only for testing microphones. However, my old version of MS 2013 could be installed on more than one computer. Does this happen for MS 2019? Obviously, this approach would not allow me to sell my program or even allow others to use it.
Just as a note, I did try the NI Forum and signed on as PLM767 but received no assistance there.
Please help!
10-30-2019 02:00 PM - edited 10-30-2019 02:02 PM
What do you mean by "publish"?
Are you using the free version of Visual Basic 2008?
If it was me, I would create a very basic program that includes the Measurement Studio elements that you are using and get that working.
.
10-31-2019 08:43 AM
First of all thanks for replying to my problem!
As far as I can tell, "Publish" means to build a program and produce a group of files that include a "setup.exe" that when transferred to another computer will run the program on the new machine. It is one of the headings when you check on the "properties" of the solution. It looks like it has the same meaning as "deploy".
I am using a purchased version of VB 2008 as well as the purchased version (at that time) of Measurement studio. I also have a newer computer running Windows 10 with VB 2017 and the evaluation edition of Measurement Studio 2019 installed.
Many very simple programs have been tried with VB 2008 and VB 2017. The first, using VB 2008, is called "Button Simple 2008" and contains a button that when pressed changes the background color. When compiled, published and transferred to a Windows 10 computer, it runs fine. However, I made a similar program with a National Instruments LED that uses the button to control the color of the LED. When I publish that same program and run it on a Windows 10 machine, it seems to be installed and is listed as an installed program, but it does not run.
I tried another approach. When I transferred the first program to another computer with VB 2017, I compiled the program with VB 2017, it also works. When I compiled the second program with VB 2017 and Measurement Studio 2019 it works on the machine I compiled it on but not on another computer. It does start and the button appears but the National Instruments LED does not appear.
Do you have any thoughts as to why this is happening?
10-31-2019 09:01 AM
10-31-2019 03:25 PM
Thanks again!
This looks like it has possibilities. It may take a few days for me to understand it and then try it out. Whether or not I have success, I will get back to you, if I may.
10-31-2019 03:58 PM
I hope it works for you.