11-01-2006 12:41 PM - edited 11-01-2006 12:41 PM
LOL @ Ben!! 😄
Thanks tst..
Yes.. Unless you understand what I'm about to do, it does sound a bit crazy..
The intent is to populate a Global vi with test scripts. They all look & feel the same, but contain variations of commands. They are indexed by test name. So each page on the Tab control would contain the same types of controls, simply different info. Now the Globals is Not used while new tests are being created. It is populated by a "create test vi" writes to a new page on the global. Actually, it needs to create a String control on every new page, which I discovered is a bit of a challenge.
And text files (ie Notepad) are not an acceptable solution 😞 . It is a requirement that the scripts are in a Global Variable to be called by another test vi.
I need to investigate what tst proposed.. I'm not sure I fully understand it, but will look into it.
BTW, the idea is to use preloaded tests in the Global vi. Not to create something on the fly and use it.. Of course, that would not make any sense. 😮
RayR
======================================
After reading tst's post once again, ok.. l can meet the requirement.. Now how do you programmatically add a page & string controls on the pages of a Tab Control (within a Global Variable.vi) ?
I guess Ben is not the only one who enjoys a challenge. 😉
Message Edited by JoeLabView on 11-01-2006 01:46 PM
11-01-2006 01:27 PM
11-01-2006 04:10 PM
Thanks tst,
I will explore this avenue.
RayR
11-01-2006 07:13 PM
11-01-2006 09:17 PM
Thanks Matt,
I'll see if this could work.
The original "design" is a request from the customer. Basically, a String control holds the various scripts and the pages identify each test group. I have to check if an adequate interface can be created and the Global could become a reservoir of some sort.
Who knows, this could be a solution.. Once again thanks! 🙂
RayR
11-02-2006 07:51 AM
JLV et al,
Have you seen the discusion of the new ranks that may be introduced?
http://forums.ni.com/ni/board/message?board.id=130&message.id=2868#M2868
Please add your opinions.
The tltile we choose may some day be yours!
Ben
11-02-2006 01:56 PM
Hi Ben,
As a matter of fact, I just came from that thread.
I don't know about that one. I'm keeping quiet.. I'll just read for now. 😉
Thanks!
RayR
11-02-2006 02:05 PM
@JoeLabView wrote:
The original "design" is a request from the customer. Basically, a String control holds the various scripts and the pages identify each test group. I have to check if an adequate interface can be created and the Global could become a reservoir of some sort.
I can't say that I understand the design (I didn't really try), but it sounds a bit weird.
Anyway, I don't know if I would use scripting in production code unless there was a really good reason to do so. I don't think that the scripting elements I refered to are unstable, but supporting it could be annoying, and unless you actually need dynamic generation of code, you could probably do some other way.
11-02-2006 02:13 PM
tst wrote "I don't think that the scripting elements I refered to are unstable, ..."
I have personally experienced instability with scripting!
I have code that ran fine on my laptop that gives me an "insane object" when run on my tower at work.
I can not recomend scripting in an application that has to run.
Ben
11-02-2006 02:24 PM