LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AutoConfig To Start

Solved!
Go to solution

Hello,

 

I have a compleate programm but i Wuold open in automatic a Config File, load a path and one device, when the EXE is Started. This is the first Process, exist a solution?

0 Kudos
Message 1 of 5
(3,734 Views)

can you describe much better?

Is your problem is while running exe, if so is your program works fine in Development Environment?

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(3,726 Views)

Hi Andrea,

 

exist a solution?

Yes, of course!

You need to load your config file right after starting the EXE. Then parse it's content and do anything you like to do!

 

General hint: When you want your VI/EXE do something in a certain order you need to program your VI/EXE to do the needed steps in this certain order…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(3,725 Views)

I search to explain the problem

First -> read a config file txt

First Row -> Device name (example DEV1)

Second Row-> path of File -> current VI path + File Name

Save this info and send to Main.VI and load the file and the Device.

Second-> Run the main programm

0 Kudos
Message 4 of 5
(3,708 Views)
Solution
Accepted by topic author andreabello

have you tried something to do this action?

if yes share the tried code.

if no try to read text file (config file)

https://decibel.ni.com/content/docs/DOC-13937

 

Once after reading parse your Text which you read from config file (Device name and path File using String Functions)

You can make this as a sub VI.

The output of this VI can be given to your Main VI to do the action.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 5
(3,699 Views)