From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I configure .NET application in LabVIEW?

Hi,

I want to write a DLL in C#.
Unfortunately the library I use needs some configuration at startup, which is normally done in a config file 'applicationName.exe.config'.
There's no way to change this configuration afterwards!? In which file do I have to insert these settings?

Thanks in advance.

0 Kudos
Message 1 of 3
(2,318 Views)
Depends on the version of LV you are using.
 
If you are using LV 7.x, you need to create a config file called "viname.vi.config" and put it in the same directory as the VI. However, you must start the application via this VI.
 
If you are using LV 8.x, it's easier - create a LV project and save it. The directory that contains the .lvproj file becomes your appbase for the .NET code and the myprojectname.lvproj.config becomes your config file.
Message 2 of 3
(2,312 Views)
Hi Brian,

thank you for your answer. I use LV 7.1 and the DLL works fine now. Smiley Happy
0 Kudos
Message 3 of 3
(2,296 Views)