DIAdem Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Daklu

Add a scripting console window

Status: Completed

You can call SHIFT+CTRL+F1 at any time in DIAdem to display the content of variables.

Greetings

Walter

During script development I'm finding I often want to run little one-off scripts to get some insight into the environment at that particular point in time.  Stuff like...

 

LogFileWrite(ItemInfoGet("MyGlobal"))

 or maybe iterating through a collection to see what it contains.

 

Currently I have to open a new script window, type up my script, and execute it.  This gets to be a headache as I have several temporary script windows open each with a different command I want to use.  It would be nice to have a script console tab available in the watch window where I could type in the commands and have them execute immediately.  Alternatively, an option to highlight a section of a script and execute only that section would allow me to bunch all my commands into a single temporary window.

3 Comments
MarcusP
Member

Hi Daklu,

 

While DIAdem doesn't have a genuine console window it does have a little dialog that you can use to inspect variable contents and execute single line commands. It can be invoked from nearly everywhere through hitting SHIFT+CTRL+F1 and can also evaluate concatenated expressions like

 

LogFileWrite(ItemInfoGet("MyGlobal")):R1=15.7:L1=12:T1="Hello World!"

 

That may already help in some of your use cases

Marcus

Daklu
Active Participant

Thanks Marcus.  It does help a little, but I'd still rather have a real console window.  Too bad it's a modal dialog box...

Walter_Rick
NI Employee (retired)
Status changed to: Completed

You can call SHIFT+CTRL+F1 at any time in DIAdem to display the content of variables.

Greetings

Walter