DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Scipt Start and Data Loading Priority

I have been working with a custom user Interface that collects data into a .tdms file. There is a button on the user interface that opens DIAdem with the data file loaded into the data portal. I added in the command line parameter to run a script once DIAdem has been opened, but I've run into an issue. The script will first run and exit once it detects that no data has been entered, and then DIAdem will load the data file upon termination of the script. Is there a priority given to running a script before loading a data file, or does anyone have suggestions to fix this issue? I can't view the actual command line call as it is taken care of in the user interface and I have no access to the inner mechanics of it. Any help is appreciated

0 Kudos
Message 1 of 3
(2,219 Views)

Hi brlogue,

 

I believe that what you observe is an expected behaviour, there is no prioritization that would happen in the background. It's simply the order of parameters passed to exe file from command line. 

I may have an idea how to solve your problem. Could you try to use the method described in the below document: http://digital.ni.com/public.nsf/allkb/3CFAD5BB19C8705B862570AE00062424 


I did a quick test and it looks that the script is running after the execution of all commands passed during the opening. As far as I understand, this would solve your problem. 

 

Please let me know if it helps. 

 

Mateusz.

---
CLA,CTD,CLED
0 Kudos
Message 2 of 3
(2,142 Views)

I created a new version of the article mentioned in the post above: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kKOUSA2 

---
CLA,CTD,CLED
0 Kudos
Message 3 of 3
(2,136 Views)