LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

We have an application developed in LV4.0, now want to update to LV 6.0, can it work ?

We use IEEE488.2 to connect several instruments and through NI 488.2 to the computer. We measure voltage, current ect. I can only upgrade it on a computer without these hardware. The old application has to work beforethe new one is OK. Could you give me a scheme to finish the work? Thanks.
0 Kudos
Message 1 of 7
(2,954 Views)
Try a "mass compile vi".

It should be upward compatible from LV4 to LV6.

JLV
Message 2 of 7
(2,954 Views)
I should have mentionned:

Mass compile updates all the vi's in the referred directory(ies) to LV 6.0.x.

You can do it if you want to update all your 4.0 vi's, but if you want to maintain the vi's at their original release, do not inlcude them in the mass compile (store them in a different directory - for instance).

However, LV6 should permit you to use & run the LV4 code without modification. You can even open them and modify them (and bring them "
up-to-date") yourself. All the options are yours.

If you want to experiment, save them under a different name / directory and play with it. Or even copy and paste them into a new blank vi and modify them...

You have many options. Try it and comment back.

-enjoy-

JLV
Message 3 of 7
(2,954 Views)
I realized that I did not fully answer your question..

Here goes:

"You will at one point have to connect to the instruments in order to "test" your LV code. What I tried to say in the previous 2 posts is that the LV4 code should still work.

Depending on the instruments that you work with, you may be able to find "virtual instruments" which may help you to complete the code without actually be connected to them. The other thing is that you can develop code and see that it is kind-of okay if the run arrow is not broken.

However, unless you have a virtual instrument or running the actual instrument, you'll get an error. But there is a trick around that. If you know you're going to get an error, capture that error into a Case Stru
cture and change it back to a non fail condition (or cheat by not wiring the error line to the instrument (bad coding practice but it will work). ((Maybe I shouldn't be giving bad advice - I'll get us both into trouble ;o)

I assume you have to share instruments with the designers and you basically never have access to it, right?

Anyway, not to be too verbose:

Here is another scheme. Create a virtual instrument by having a "box" which simulates the measurements for you and sends the values to the rest of your vi. You can leave in the instument by placing it into a Case Structure under FALSE. Force a TRUE value into the case and send the typical values the instrument would measure to the vi. After you get access to the instrument, change the case to FALSE to properly test it. Once you are happy with your code, remove the Case Structure."


Hope this long explanation helped..

Have fun..

JLV
Message 4 of 7
(2,954 Views)
Thank you for considerate answers. I have tested, the old app can work in LV6 except a subVI have to be seleted manually. I'll follow your advice to have a mass compile. But about the last scheme I do not really know how to...
0 Kudos
Message 5 of 7
(2,954 Views)
JLV

That is a helpful **** answer. Though the rating is attached to the "one liner" you really got it right in the end.

RL
0 Kudos
Message 6 of 7
(2,954 Views)
Thanks guys!

JLV
Message 7 of 7
(2,954 Views)