10-26-2012 08:38 AM
Hello,
I have an evoluating curve:
To do this, I generate a channel, i open it in a report file and refresh it periodicaly during the process.
I Would like to see the curve evolution and have buttons in the same time to act on the process.
Is it possible to open a graphic in a Dialog box?
Best Regards,
fmanuel
10-28-2012 11:15 PM
Hello fmanuel,
There is an example in DIAdem that seems to show what I believe you are looking for.
The example is called: "Wizard for tolerance evaluation" and was released with DIAdem 10.2
At the end of the example, the screen shown above can be seen - the arrows in the report are actual controls, I assume they work the same as buttons ...
The two relevant files are:
Tolerance.vbs | Script file |
Tolerance.sud |
Dialog box file |
Hope that gives you a good starting point to solve your question,
Otmar
10-29-2012 08:31 AM - edited 10-29-2012 08:32 AM
In this case the curve is compute, and then display as a picture on the dialog box
I have a script which compute a channel in real time (add of points values one by one), and I would like to see the curve evolution in the Dialog box.
Can I call my computation sub functions in the .VBS from a Button On_Events?
More Generaly, when I use this:
Call SUDDlgShow("Dlg1",MyFolders(1)&"dialogbox4.SUD",NULL)
The .VBS Script stop running, can I launch it again without clothing the Dialogbox?
And how much time is the script in the Dialogbox executed ( just one time when its open or is it a loop)?
fmanuel
10-30-2012 04:50 PM
Hi fmanuel,
Is it an option to have the user look at your developing curve in DIAdem VIEW or DIAdem REPORT graphs, which would be visible "behind" your SUDialog?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-05-2012 03:34 AM
Yes, how would you do it?
11-14-2012 04:44 PM
Hi fmanuel,
Sorry, I was teaching DIAdem and didn't get back to this for a long time. The SUDialog has access to all DIAdem commands, including the VIEW object, etc., so it can load a VIEW or REPORT layout, assign particular curves, refresh the VIEW or REPORT panel just like a regular VBScript running in the SCRIPT panel.
It is also possible to call the SUDialog non-modally with the SudDlgCreate() command, if you want the user to be able to use either the DIAdem environment (i.e. VIEW cursors) or your dialog, which would be visible the whole time.
Brad Turpin
DIAdem Product Support Engineer
National Instruments