NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
tiki12revolt
Posts: 27
0 Kudos
Accepted Solution

upconvert LV5.1 to LV2010

Hi,

 

The following VI is from LV 5.1.1 (I think).

I am currently using LV2010.

 

I would appreciate help in upconversion.

Knight of NI
Posts: 18,064
0 Kudos

Re: upconvert LV5.1 to LV2010

That's an incomplete VI, and a very poorly written one at that. I saw at least 2 race conditions caused by misuse and abuse of local variables. Clearly written by a text programmer.

 

Attached as 8.2.

Member
tiki12revolt
Posts: 27
0 Kudos

Re: upconvert LV5.1 to LV2010

Thanks for your help. I am attempting to adapt someone elses old VIs. If you wouldn't mind, how is it incomplete and poorly written? Is there anything I can do to fix that?

Knight of NI
Posts: 18,064
0 Kudos

Re: upconvert LV5.1 to LV2010

The whole array indexing is not connected. If the VI was runnable in the original then that indicates that the upconvert did not fully convert the VI.

 

There are also programming elements which seem to be doing nothing, such as the scan rate being multiplied by 50, but not going anywhere.

 

As for the poor programming, this has to do with the abuse of local variables. There are clear race conditions when it's intedeterminate whether a read or a write will occur first, and the behavior of the VI will be affected by this.

Member
tiki12revolt
Posts: 27
0 Kudos

Re: upconvert LV5.1 to LV2010

Thanks for your help! I pulled these VIs off a Windows 2000 machine which died. I do know that before the machine died the VI did run. 

 

I will have to investiage the race conditions you mentioned. 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page