LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading and writing control values to config file

Thanks for the feedback but, Jean-Pierre did the work.

Don't you just love those references!
They are like a handfull of lightning bolt. They can be hard to control and dangerous at first, but they give you some incredible power once you learn how to use them!

Have fun,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 16
(1,320 Views)
HI aartjan!

I'm pretty new to Labview but have to solve a similar maybe even the same problem: From a main VI I want to be able to setup a list of subVIs where each of them performs a different measurement. Before I start the test sequence one should be able to choose among the different possible tests and customize the tests creating new tests, save customized testsettings, retreive already customized tests and finally add the desired test to the execution list. I'll attach a example front panel to clarify this. The problem you had sounds to me like the problem I have with those custumized tests. The Control Settings should be saved in an file in order to get those values back another time. There has to be the possibility to create differe
nt settings for the same VI and use the same VI with different settings in the execution list.

I hope I don't write it too confusing 🙂

I know nothing at all about Open G and how to use it. Can you maybe explain it a bit for me? Or provide a simple example? How does this work with the page and the array of control references?
Would appreciate any help!
Thanks
0 Kudos
Message 12 of 16
(1,320 Views)
HI aartjan!

I'm pretty new to Labview but have to solve a similar maybe even the same problem: From a main VI I want to be able to setup a list of subVIs where each of them performs a different measurement. Before I start the test sequence one should be able to choose among the different possible tests and customize the tests creating new tests, save customized testsettings, retreive already customized tests and finally add the desired test to the execution list. I'll attach a example front panel to clarify this. The problem you had sounds to me like the problem I have with those custumized tests. The Control Settings should be saved in an file in order to get those values back another time. There has to be the possibility to create differe
nt settings for the same VI and use the same VI with different settings in the execution list.

I hope I don't write it too confusing 🙂

I know nothing at all about Open G and how to use it. Can you maybe explain it a bit for me? Or provide a simple example? How does this work with the page and the array of control references?
Would appreciate any help!
Thanks
0 Kudos
Message 13 of 16
(1,320 Views)
You might want to look into TestStand, it's designed for this sort of application.

Open G is a web site (www.openg.org) for people developing open source code in LabVIEW, there are lots of different tools at OpenG and lots of ways to use them.

This sounds like a fairly different issue than the one discussed in this thread (although you certainly might use the solution discussed in this thread at some point in your application), I would recommend starting a new thread. Also, I would try to keep your questions fairly specific, people on the forum will not write your application for you, but we are generally happy to help you solve specific problems.

At a basic level, if you decide to implement this in LabVIEW you will probably us
e VI server to call the SubVIs, check out this tutorial http://zone.ni.com/devzone/conceptd.nsf/webmain/04F9CCB32C67F24386256802007B878F?opendocument . As far as the configuration goes, it's not very clear from your application what you are trying to do.

You also might want to invest in some LabVIEW courses or books, as it appears that you may need some ideas on how to get started with LabVIEW.

Regards,
Ryan K.
0 Kudos
Message 14 of 16
(1,320 Views)
HI Ryan,
thanks very much for your input and the links. I didn't expect anybody to write my VI I attached the front panel without any fuctionality in order to get more specific of what it should look like. I already added quite some functionality to this.
The point where I thought that my problem is the same as discussed in the thread is:
I want to save different settings for all existing controls in a VIs to one ore more files in order to be able to reload this settings later on again. To me this sounded pretty much like the stuff they did here. But as I already told I'm not familiar with Open G so I might be wrong?!
I tried some stuff with VI Server: I called SubVIs dynamically. Is it possible to create the "type specifier
VI Refnumn (for type only)" at runtime as well. Because this I have to choose with the Browse Option before running the VI to get the refnum to the VI I want to start dynamically. If I don't know which VI has to be started before runtime can I get this refnum dynamically?
0 Kudos
Message 15 of 16
(1,320 Views)
Hi Andy,

Sounds like you could indeed make use of the Open G toolkit (this toolkit isn't technically supported from this forum, Open G has their own mailing list at http://lists.sourceforge.net/lists/listinfo/opengtoolkit-developers . There are instructions for installing the toolkit included with the downloads or at www.openg.org).

As for your other question, you can't dynamically generate a refnum, but there are a couple of things that you can do. First, by using a refnum, all that is fixed is the connector pane, you don't need to call the VI you are browsing to, you can call any VI with the same connector pane. Second, you can also call your VI with a weakly typed reference (a VI reference which doesn't have the
type specifier wired) by using the Run method. When calling VIs in this manner, you will have to manually set and get any inputs and outputs by using the control names and the appropriate methods (set control value and get control value).

Once again, for seperate questions, like the second one, you'll probably get much more input if you start your own forum posting, chances are many of the original contributors to this discussion are not still subscribed, and no new contributors are likely to look at your postings. Starting a new thread for new questions also helps to keep questions seperate, so that others can more easily search the discussion forum for the answers.

Regards,
Ryan K.
0 Kudos
Message 16 of 16
(1,320 Views)