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.
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.
06-15-2018 03:16 PM
Sorry to sidetrack! I think this article does a good job of explaining the difference between strict and regular typedefs:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KnUSAU
06-16-2018 12:57 AM
I also like to use the MGI addons for such operations. There is even nice VIs for saving/loading settings into/from config files. Handy when you want to give the user the feature that your application "remembers" for example the Graph settings, etc...
http://sine.ni.com/nips/cds/view/p/lang/en/nid/209753
Note that, you might find some little bugs, like once I had a problem with a VI living inside a subPanel: applying the settings back to this VI spawned some errors due to some prohibited operation in case of subpanel VIs. However it was quick to find the bug, and make a "subpanel compatible" variation of the MGI VI...
06-18-2018 02:16 AM
Hello Bob,
I was able to save the configuration of the "Input settings" only (maybe with different way) but my problem is to save the all front panel with several clusters.
Actually, I am able to save the configuration as explained but I am not able to load it into the all front panel, not a single cluster. 😞
06-18-2018 02:31 AM
Save time for yourself, and use the MGI toolkit, as I wrote in my previous post:
06-18-2018 02:31 AM
Hello GregoryJ,
Thank you for your help.
The code in your message was for "Save" or "Load" function? Also, what do you mean by "your code here"?
I put the VI example in my first message so if you could show me your idea by modifying it, it will be great.
My understanding is that your code is to save the front panel configuration right?
If yes, how to reuse the ini file to update the front panel according to the ini file.
Thank you in advance for your help.
06-18-2018 04:18 AM
Hello Blokk,
Thank you for the code. I reused as below and it seems to work well.
06-18-2018 04:29 AM
Small additonal question not in line with the current subject.
Is someone able to explain how to hide the "Stop button" and move to the right windows after cliking on the "execute button"?
06-18-2018 06:59 AM
File --> VI Properties, and you can customize any part, or just select the "Top-level application window" variation...
06-18-2018 11:27 AM
@yann31 wrote:
Hello GregoryJ,
Thank you for your help.
The code in your message was for "Save" or "Load" function? Also, what do you mean by "your code here"?
I put the VI example in my first message so if you could show me your idea by modifying it, it will be great.
My understanding is that your code is to save the front panel configuration right?
If yes, how to reuse the ini file to update the front panel according to the ini file.
Thank you in advance for your help.
Hello Yann31,
The two functions on the left read from the ini file (update your front panel). The functions on the right update your ini file (read from front panel). As an example, you could read at the beginning of your program and write the config at the end of the program, with your application code going in between ("your code here").
I purposely put a picture with all of the VI names showing so that you can easily recreate it yourself. Press Ctrl+Space to launch quick drop to easily find the VIs by name.
06-19-2018 05:05 AM
Hello Blokk,
Thank you for your answer, perfect.
Regards,