Click here to donate to keep PhreeqcUsers open
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
USER_PUNCH/USER_GRAPH
»
SELECTED_OUTPUT
»
SELECTED_OUTPUT file is not created
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: SELECTED_OUTPUT file is not created (Read 842 times)
siroos.azizmohammadi
Contributor
Posts: 3
SELECTED_OUTPUT file is not created
«
on:
February 15, 2024, 03:32:12 PM »
Dear Phreeqc users,
I am conducting some trial runs on the examples provided in the manual using Phreeqc coupled with Matlab (IPhreeqcCOM Object). Everything seems to be functioning correctly, with no errors and the graphs are being generated as expected. However, I am encountering an issue where the output file is not being created. I have verified the permissions and the paths, but cannot figure out the issue. Any suggestions or comments would be appreciated.
Best - Siroos
Logged
dlparkhurst
Top Contributor
Posts: 3716
Re: SELECTED_OUTPUT file is not created
«
Reply #1 on:
February 15, 2024, 05:21:30 PM »
Have you specified iphreeqc.OutputFileOn = true;?
For the selected output file, you need iphreeqc.SelectedOutputFileOn = true;.
Logged
siroos.azizmohammadi
Contributor
Posts: 3
Re: SELECTED_OUTPUT file is not created
«
Reply #2 on:
February 20, 2024, 11:19:13 AM »
Thank you for the reply.
Yes, I have specified that.
Following is simply the script I am using to run example 2:
iphreeqc = actxserver('IPhreeqcCOM.Object');
iphreeqc.LoadDatabase('C:\Program Files\USGS\IPhreeqcCOM 3.7.3-15968\database\phreeqc.dat');
iphreeqc.RunFile([pwd,'\input_ex2.txt']);
pwd
iphreeqc.OutputFileOn = true;
iphreeqc.SelectedOutputFileOn = true;
Output = iphreeqc.GetSelectedOutputArray;
input_ex2.txt is just taken from the manual.
Best - Siroos
Logged
dlparkhurst
Top Contributor
Posts: 3716
Re: SELECTED_OUTPUT file is not created
«
Reply #3 on:
February 20, 2024, 02:46:31 PM »
I think it is that you need to set the output files to on before you execute RunFile or RunString.
The setting for the files will remain in effect for additional RunFile and RunString until you change the file settings to false.
«
Last Edit: February 20, 2024, 02:52:01 PM by dlparkhurst
»
Logged
siroos.azizmohammadi
Contributor
Posts: 3
Re: SELECTED_OUTPUT file is not created
«
Reply #4 on:
February 22, 2024, 10:52:20 AM »
Indeed, your point is valid.
I appreciate the helpful hint that resolved the problem.
Best regards - Siroos
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
USER_PUNCH/USER_GRAPH
»
SELECTED_OUTPUT
»
SELECTED_OUTPUT file is not created