EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: CAQTDM caScriptButton/caShellCommand help
From: Alex George <[email protected]>
To: EPICS tech-talk <[email protected]>
Date: Thu, 3 Sep 2015 10:48:15 -0400
Good morning everyone,

In the UI I'm currently working on, I wanted to give the user the option to run a python script that will help with darkfield correction. In order to run the batch file, I'd planned on using either the caScriptButton or the caShellCommand; however, when directing the relevant fields to the batch file there was no result. 

I have tried the following:

caScriptButton:
No result
1) scriptCommand  C:\\path\\to\\cmd.exe 'C:\\test.bat'
    scriptParameter  
No result
2) scriptCommand  C:\\path\\to\\cmd.exe 
    scriptParameter  'C:\\test.bat' 
Opened console with path set to location of .ui file; batch path not inputted
3) scriptCommand  C:\\path\\to\\console.exe 
    scriptParameter  'C:\\test.bat' 

...other variations (including python.exe to .py script)

caShellCommand:
No result
1) files  C:\\test.bat
    args
No result
2) files  C:\\path\\to\\cmd.exe
    args  C:\\test.bat
Opened console with path set to location of .ui file; batch path not inputted
3) files  C:\\path\\to\\console.exe 
    args  C:\\test.bat 
Opened Notepad, printed out the contents from within the test.bat file
4) files  notepad.exe
    args  C:\\test.bat

...other variations (including python.exe to .py script)


**All paths to the test.bat used quotes/no quotes interchangeably 

I'm still relatively new to the CAQTDM neighborhood, so any help would be appreciated!

Best,
-- 
Alex George
Postbaccalaureate Fellow
Imaging Physics Lab
NHLBI, NIH
Phone: (301)-741-0847

Navigate by Date:
Prev: job openings for neutron-event streaming Tobias Richter
Next: Select MS Bit from an integer Dudley, David
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: job openings for neutron-event streaming Tobias Richter
Next: Select MS Bit from an integer Dudley, David
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·