02-09-2015 01:14 PM
Hello,
There is a posibility to add a control to the front panel at the runtime, programmatically?
02-09-2015 01:22 PM
No. But what exactly are you trying to do? There is likely other things that can be done.
02-11-2015 01:42 AM
I have made an application for data collection and viewing them.
Now I realize a tool with which a user can create his own view of the data collected.
For example:
Over a drawing that represents a functional diagram of the installation, are placed some indicators that can display text or a picture. The "string" indicator displays the status or a value of a sub-assembly, and the "picture" indicator displays a graphic image that suggests the condition. There may be several such views for an installation. Each view can have a different number of indicators positioned differently.
The tool must place the indicators on the installation drawing and then their positions to be saved in a file.
Because the number of indicators is variable, wondering if it is possible that when the VI, that displays a certain view of the user, is loading, to define a number of indicators corresponding to the desired view.
Current solution is a VI that has 32 pairs of indicators, the user sees only those defined for the selected view. The solution has a limit to only 32 indicators. If the user wants to view more than 32 indicators, I should upgrade the current VI.
The VI that displays a user's view is loaded dynamically with "call and forget" and "reentrant".
02-11-2015 09:33 AM
it is really not clear for me what you need, it is difficult to visualize what kind of indicators you want to show. Could you post the VI which you call dynamically?
02-11-2015 02:12 PM
Attached is a capture of the front panel of the VI that build user-specific views.
I have also attached the file "wallpaper" to better understand who and where are indicators.
Information is shown using three indicators:
1 - "picture indicator" that displays a picture suggesting the value or range of values of information.
2 - "picture indicator" that displays a glyph of state information.
3 - "string indicator" that displays the value of information
4 - "caption of string indicator" that displays the name information (point 4 is a component of the "string indicator", point no.3)
A piece of information is presented using three indicators. Depending on the designer's desire either of the indicator can be hidden. For example: "date # 1" is presented using only two "picture indicator".
In this case are used in total 24 sets of indicators, in which some elements remain hidden. The remaining sets, up to 32, remain completely hidden.
In other cases, the designer can imagine situations in which needs more than 32 sets. For these situations should create a VI with several sets of indicators from which the designer needs to use each. The question that arises is: what is the maximum number of sets? To bypass this question, I asked if it is possible to add sets of indicators in proramatic way. The answer came quickly: NO.
I do not have another idea.
02-11-2015 03:33 PM - edited 02-11-2015 03:40 PM
Interesting challenge - I'm thinking as I type here, so sit down for a minute or two an follow my thoughts...
Does that help?
02-11-2015 09:29 PM
Scripting can be an elegant solution, but I have to see how solve the license and the inclusion in the run-time engine.
In the main application, I do not think it is a problem because the user can not change anything.
The tool that creates custom view will have only function for generating indicators, without the possibility to edit connection diagram.
Another option is to use for the tool, some pictures of the indicators, which move them, but I think it's a lot of work ...
To activate the scripting in run-time engine, who should I contact?
In any case, thanks for the information.
02-11-2015 11:39 PM
This is actually the thread I wanted to point out to you:
https://decibel.ni.com/content/thread/4761
Starting with Answer 7 by Steve Karcher it becomes interesting concerning VI scripting in RTE. My guess (I'm not a NI employee or anything close to that) would be to contact your local NI sales representative, as is suggested by AristosQueue (who is with NI) in answer 12 of said discussion.
Other than that I agree that the "image" solution would be quite cumbersome though not unfeasible.
02-12-2015 04:31 AM
Thank You.
I read the thread and now began to be more clearly what the situation is.
First step: I'll use my SSP and will contact the NI representative.
I do not know whether to close this thread or to wait until I have a response from the my NI representative?
02-12-2015 08:25 AM
Well, there's no way to really "close out" a thread, but it would be great if you could update the thread when you find the solution (and mark your post as the solution) so others may benefit from your knowledge. 🙂