11-14-2013 03:10 AM
Hello,
I do not know if this action is possible with Labview but I would among other things, set up a simple code in C outside labview to offer the developer , different parameters to ultimately create a database in the program has adapted needs.
Example, if I want my labview program has say, four external devices , the port is connected to port B with buttons or displays positioned on { x, y } and the conditions of each object are defined according to the need of developer , this would be the C program that define these parameters in such a text file and the text file would fit a result in Labview as import by defining a basic program with connections and positions of each Vi , buttons , displays, ...
To give you a better idea of the thing , I can take an example , home automation , or where each house has its peculiarities to know the number of devices , type, ... which are automatically set by the developer in the C program because it has already defined its needs.
Thank you in advance for your answers
Solved! Go to Solution.
11-14-2013 04:48 AM
@Fëanor wrote:
[...]
Thank you in advance for your answers
I am very sorry....but: What exactly is the question?
thanks for stating clear questions in the future,
Norbert
11-14-2013 05:01 AM
How to " define these parameters in such a text file and the text file would fit a result in Labview as import by defining a basic program with connections and positions of each Vi , buttons , displays, ..."
11-14-2013 05:50 AM
Sorry, but you still have to help us in understanding your goal:
As i understand it, you want to provide a configuration tool which lets the user configure some specific topics on the application. This tool creates a file which is then used to create VI(s) matching that definition.
Is my understanding correct?
Norbert
11-14-2013 06:06 AM
Are you trying to automatically generate a VI based on user inputs? The LabVIEW Code Generation Engine might be useful.
11-14-2013 08:26 AM
Norbert_B a écrit :
Sorry, but you still have to help us in understanding your goal:
As i understand it, you want to provide a configuration tool which lets the user configure some specific topics on the application. This tool creates a file which is then used to create VI(s) matching that definition.
Is my understanding correct?
Norbert
Yes and define also the position of Vis, buttons, displays,...
11-14-2013 08:48 AM
So please look into the link Jim provided.
There is no tool for this available, but you can create one. BUT: This requires a very decent knowledge about LV and "VI Scripting" and hence is nothing, a LV newcomer can handle.
So baseline message:
It is possible, but very complex. The advantage is that the "Script" file (so the file you are talking about all the time) could be "generic" as you have to implement a parser on your own.
Norbert
11-14-2013 09:00 AM
oh... ok thank you. for explain my think,
for example the file to import to LabView is could be a txt file like this:
while ( Loopcondition != STOPBUTTON)
{
Display=NumericControl*5 {5;6}
}
I thought something like that.
11-14-2013 02:11 PM
Do you really need to implement some C interpreter for this? As i understand it, you can just set up a settings/parameter file?
/Y