LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade problem

Hi,
I have a VI that runs in Labview 6.1. However, after I have installed version 7.0, I encountered some problems. The problem boils down to a wiring problem in Open Serial Driver.VI, which is one of the VI's provided in Labview's library. The wire is connecting a 'void' to an array of strings. Since this VI is provided by Labview in its library, could there be an error in the installation process or the code itself is not working?
I, also, did try to use the same VI in the previous version (they are different!), I ended up with an error "37" saying that the device is not found.
I've come to a dead end. Can somebody please help me?
Thanks.
0 Kudos
Message 1 of 10
(3,994 Views)
With LV7 National Instruments stopped supporting the serpdrv based serial IO VIs, the ones you seem to have been using. To not break the code of old VIs they have made a set of VISA based VIs that have the same names as the old serial compatability VIs and when you open up your application for the first time in LV7 some of the VIs might be loaded from those VISA based VIs, and some might be loaded from your llb file where you have included old serial VIs...if that happens you might get a mixture of incompatible VIs.

Personally I saved all the old serial VIs from LV6.1 with new names and have replaced the serial VIs with those..that way LV7 never replace them with anything form the vi.lib, however you can also make a lib of the old files in LV6.1 and then repl
ace the lib that comes with LV7 containing the VISA based ones with that one...that way you do not need to do anything with all your old code, on the other hand it might introduce problems if you move it to another machine with LV7 that this trick has not been done on. To avoid getting error 37 you need to copy the serpdrv file from your previous LV to the LV7 directory...error 37 means that it could not find the serpdrv file.

An alternative off course is to switch to the VISA based replacement VIs...or to pure VISA code (no wrappers to simulate the old serpdrv VIs). The downside to that is that you'll need to include the VISA runtime engine with your application. NI has made this easier than before; just check the serial IO support option in the app builder...however if you want to make your own installer with a third-party tool the old serpdrv way of doing things is easier, requires less space on the hard drive and avoids the name National Instruments from showing during installat
ion...
Message 2 of 10
(3,993 Views)
Error 37 will occur if one application has the the serial port open and another then tries to open it. This could include two versions of LabView: if LabView 7 has opened the serial driver and then you try to open it in LabView 6, you'll get error 37. If you want to try your LabView 6 version, call Close Serial Driver in LabView 7 or exit LabView 7, then try your LabView 6 app.
There has been a lot of discussion on using serpdrv vs. VISA for serial communication. Here's a link with multiple people voicing some opinions. Click here.
Message 3 of 10
(3,993 Views)
Thanks a whole bunch! The code now works 🙂
0 Kudos
Message 4 of 10
(3,993 Views)
Ahhh... I have never realised that I am getting into a more complicated materials - more than I need for school work. I really appreciate your help for giving me the link, although all it does to me, for now, are headache and more headache. Ohh well, I guess there's a wide world of Labview for me to explore still...
0 Kudos
Message 5 of 10
(3,993 Views)
In the old discussion it is mentioned that the serpdrv based serial IO would be affected by what the user would do...it's implicated that they will freeze if the user holds the window title bar.

This is something I've never seen myself, it would have been a big problem...Does anyone have experience with this and know if/when it can happen?
0 Kudos
Message 6 of 10
(3,993 Views)
Hi Mads,

I have stated the problem with the title bar. I'm not sure if this happens only when the serial VI's are running in parallel to the VI with the open front panel and in the User Interface execution system. I think the problem would also occur if it runs in another execution system.
I will retest this again tomorrow and provide the VIs here.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 7 of 10
(3,993 Views)
Hi Mads,

I have made a retest and found that the problem with serpdrv and holding the title bar exists on Windows NT 4.0 SP6a. If I use the exes on a Windows 2000 or XP Professional all works fine. I could not test which behaviour occurs under Consumer windows (95, 98, 98SE, ME).

The archive contains LV6.0.2 apps and sources I used for my test. Mayby someone will be able to test these under Consumer Windows.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 8 of 10
(3,993 Views)

Hello all,

I am new here. I have problem to upgrade my LabView. First, I have installed LabView version 8.0 and then upgrade to 8.2.1 version. This installation CD I got from my lecturer and her give to me for use in my final year project. The problem now is, I can open the LabView 8.0, but after I installed the 8.2.1, this LabView version can not open and it show it is evaluation only and the serial number is not matched. When I asked to my lecturer, she told me the serial number is still same with the 8.0 version and it available to upgrade for 3 years. I also, try to ask to the technical support when I attend the LabView seminar here, and their said try to send the serial number to the NI support to check if there have any problem. But until now, there is no reply from them, and I hope anybody from here will help me and give me the idea what I have to do...

Thanks 😃

0 Kudos
Message 9 of 10
(3,477 Views)
You have replied into a 4 year old thread with something that seems unrelated to the original thread.  Please repost your question in a new thread.
0 Kudos
Message 10 of 10
(3,467 Views)