08-30-2016 02:47 AM
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?
Solved! Go to Solution.
08-30-2016 02:56 AM
can you describe much better?
Is your problem is while running exe, if so is your program works fine in Development Environment?
08-30-2016 02:58 AM
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…
08-30-2016 03:24 AM
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
08-30-2016 03:35 AM
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.