DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Get graphics in a Dialog box

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

0 Kudos
Message 1 of 6
(5,292 Views)

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

 

Dialog with graph.png

 

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

 

   
   

Otmar D. Foehner
0 Kudos
Message 2 of 6
(5,276 Views)

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

 

0 Kudos
Message 3 of 6
(5,261 Views)

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

0 Kudos
Message 4 of 6
(5,247 Views)

Yes, how would you do it?

0 Kudos
Message 5 of 6
(5,220 Views)

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

0 Kudos
Message 6 of 6
(5,165 Views)