From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

continue a script after pressing a button

Hello,

 

I am trying to figure out a way, to hold a script for a time while I want to work on Diadem. The script should continue after I put new data into Diadem. I thought about letting the script dont do anything until I press a key on my keyboard, but I dont know if there is such an option in Diadem?

 

any ideas are appreciated

 

thanks

0 Kudos
Message 1 of 4
(4,063 Views)

Hello question1234,

 

You have several options for this:

call Pause(10)
waiting for 10 seconds

call KeyWait   
stops until a key is pressed

call InterActionOn("My Text")
interrupts a script (you can work in DIAdem - until a button is pressed

call MsgBoxDisp
throws a message box - several parameter for configuration

 

Greetings

Walter

0 Kudos
Message 2 of 4
(4,050 Views)

Hi question,

 

If you really want your script to "go to sleep" while you load another data set, then "wake up" the script and have it continue from where it left off, then I'd recommend the InteractionON() function from Walter's list.

 

If you want the script to start anew from its first line after loading another data set, then you should make an easy way to restart the script, such as an <F1> button or a new custom icon or a custom menu.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 3 of 4
(4,023 Views)

Hello,

 

thank you for your replies. The interactionOn function is really what I have been looking for.

 

kindest regards

0 Kudos
Message 4 of 4
(4,010 Views)