02-20-2007 12:19 PM - edited 02-20-2007 12:19 PM
Message Edited by gsussman on 02-20-2007 12:19 PM
02-21-2007 11:32 AM
I tried these VI's and managed to get properties for mixtures to read, which is major progress for me. However, I'm now getting a lot of errors (the type that require Labview to shut down). These don't happen all of the time. I use the part of the code that you sent me to initialise, and then I use the "Call_TPFLSHdll+Indicators" which I got some months ago (on this thread) to read properties when values of P and T are input. Maybe you have an updated version of the routine to do this. If not, can you suggest any possible reasons for the errors?
Regards,
Will
02-21-2007 11:40 AM
02-21-2007 12:01 PM
I believe that most of these calculations have limits on the ranges. If a calculation attempt is made and the data input is not a reasonable number you will get this error. Maybe you could use some sort of valid range check before attempting the call. You could use the example Excel program supplied on with the NIST CD to check the response with the given data. I believe that if you attempt to give it data that is out of range it will respond with an error and allowable ranges. (In the excel example)
- There are 10 kinds of people in the world, those that know binary, and those that don't
02-21-2007 04:04 PM
02-22-2007 05:13 PM
As you say, I don’t think that it’s due to out of range values because sometimes it doesn’t give the error for several runs of the program, and then it appears even though the input values (and therefore the returned values) haven’t changed.
I tried to see if the error correlated with anything (time intervals between runs etc.) and the behaviour is pretty eratic – sometimes the program runs and sometimes it crashes.
One strange thing that happens if I’m editting the program that calls TPFLSHdll, is that
when I go to save or close the changed program, I occasionally get a report of an “insane” object and then a message saying there has been a Fatal Internal Error. So, even when I don’t run the VI that links to the DLL, but simply edit the program that contains this VI, unusual errors can arise.
I will try to check the calls to the DLL, but they seem to be what’s documented by NIST. Also, would the fact that it works fine for pure substances not suggest that the calls are OK?
Regards, Will.
04-10-2007 11:55 AM
Dear gsussman,
I have been using the VI's that you posted to this forum to extract properties for R404A from refprop, and I am delighted to say that they are working well. The files that I earlier got from NIST were giving intermittent errors, on which subject you commented previously in this thread. I am currently using the TPFLSH routine to extract enthalpy values when P and T values are input. I would like, now, to do a similar routine for for PHFLSH (as I cannot find entropy with a PT input pair for one of the points) and I was hoping to look at the code of your TPSLSH routine. All that I wish to check is what is different about your call to the DLL and the call in the VI posted by NIST, that makes your one stable, and the other one crash. Would it be possible to get a non-passworded version of TPFLSHdll.VI to check this? I know this is a bit cheeky, but many of the other VI's that you posted are not passworded, and it would probably unlock the reason for the errors and allow me to develop other similar VI's.
Regards,
Will
04-17-2008 05:52 AM
Hi guys,
I see you have already come accross my problem before!
I am looking to get hold of the converter of refprop for use with simply converting nominal density values into pressure. I have used all the SubVI measurements that you have sent me already but none of them see to have the function that i actually need. Was just wandering if I was going about this the wrong way or there was something else that might be helpful out there.
Basically I just want to use the pressure and density functions. of the dll. I have some VB code which seems to be doing it ok. Any ideas. Would be great to get in contact about this. Best regards Pete Davies
04-18-2008 10:48 AM
02-12-2009 05:47 PM