LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi.lib\Utility\config.llb doesn't work as expected in 6.1

I have to modify part of a LV project written in 6.1. I started of writing a patch/VI for the project in 7.1.1, tested it and it worked fine. Then I save it from 7.1.1 > 7.0 > 6.1 and the code doesn't work. I have attached the 6.1 and 7.1.1 code that simply modifies a config data file.

Run both the VI version on the attached data file (save copies of it beforehand as the VI overwites/modifies the .dat file) and you should see for e.g.

4.6.2.1 Name=Pass
Change to
4.6.2.1 Name="4.6.2.1 Extend Ground Cycle"

with 7.1.1

and no change with 6.1
0 Kudos
Message 1 of 2
(2,336 Views)
The problem is at the very end. The 'Close Config Data.vi' changed between 6.1 and 7.0. The input 'Write Configuration File' on 7.0 and higher is default to True, any version before that was default to False. With this set to false, the file is not actually written.

So on 6.1, you need to connect a boolean constant or control set to True to this termianl to write the file.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 2
(2,334 Views)