Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Hysys Automation


This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic
Share this topic:
| More

#1 peter317

peter317

    Junior Member

  • Members
  • 17 posts

Posted 19 July 2016 - 09:44 PM

Dear Sirs,

 

I'm currently trying to automate HYSYS using COM server. I'm a beginner programmer who can use only C but very much willing to learn anything to get the task done. After some reading here and there, I understood that it should be an object-oriented programming language which means either C++ or JAVA (as far as I know best). Could you help me decide which to use? Also I read the customization guide and it looks Greek to me... Please if you have any experience/knowledge, lend me some...I really need help, methodology, codes...or even where to start.

 

Suggestions of books, references are very much appreciated.

 

Thank you very much for your time.

 

Stay well,



#2 Bobby Strain

Bobby Strain

    Gold Member

  • Members
  • 3,529 posts

Posted 19 July 2016 - 11:07 PM

If you are a licensed user you can access the AspenTech support site. There are lots of automation examples for download with Excel VBA and VB.NET. I haven't seen much in other language.

 

Bobby



#3 serra

serra

    Gold Member

  • Members
  • 310 posts

Posted 20 July 2016 - 01:22 AM

basically in a COM client you get a pointer to a COM server and use its services by calling the methods of its interfaces, of course you can use any language supported by interface,

a COM interface may be useful for accessing large executables (COM servers) which may reside locally or on remote computers connected by networks,

however, depending from application, there could be some problems , for example with multiple clients connected to the server you may expect slow responses due to the overhead associated with each process,

also error management may result difficult and you may need to code specific procedures,

there are alternatives, for example  multi instance Cloud or similar technologies but these may result expensive,

I prefer local applications which give many advantages in terms of speed and reliability (all processes run independently but you can exchange data in a network),

about products, in addition to simulators you may consider  thermodynamic libraries,

these may be competitive for many applications, see for example,

 

http://www.prode.com/en/properties.htm

 

you install the library locally (in this case a single dll file) and connect with remote archives to exchange data,

as far as I know almost all programming languages are supported (depending from OS)


Edited by serra, 20 July 2016 - 02:09 AM.


#4 peter317

peter317

    Junior Member

  • Members
  • 17 posts

Posted 22 July 2016 - 01:28 AM

If you are a licensed user you can access the AspenTech support site. There are lots of automation examples for download with Excel VBA and VB.NET. I haven't seen much in other language.

 

Bobby

Thank you sir for your reply. Unfortunately, for some reasons I don't have an access to support center (Even though I'm using an original version). Could you please send me any codes you think they are useful?

 

Thank you again.

 

Stay well,



#5 peter317

peter317

    Junior Member

  • Members
  • 17 posts

Posted 22 July 2016 - 01:29 AM

basically in a COM client you get a pointer to a COM server and use its services by calling the methods of its interfaces, of course you can use any language supported by interface,

a COM interface may be useful for accessing large executables (COM servers) which may reside locally or on remote computers connected by networks,

however, depending from application, there could be some problems , for example with multiple clients connected to the server you may expect slow responses due to the overhead associated with each process,

also error management may result difficult and you may need to code specific procedures,

there are alternatives, for example  multi instance Cloud or similar technologies but these may result expensive,

I prefer local applications which give many advantages in terms of speed and reliability (all processes run independently but you can exchange data in a network),

about products, in addition to simulators you may consider  thermodynamic libraries,

these may be competitive for many applications, see for example,

 

http://www.prode.com/en/properties.htm

 

you install the library locally (in this case a single dll file) and connect with remote archives to exchange data,

as far as I know almost all programming languages are supported (depending from OS)

Sir,

 

Your reply seems very interesting but I'm very inexperienced in programming world. Could you please clarify more in simple words?

 

Thank you for your time and sorry for the naive question...

 

Stay well,



#6 serra

serra

    Gold Member

  • Members
  • 310 posts

Posted 22 July 2016 - 02:29 PM

some knowledge about programming (and may be OS) is required to complete that project,

if your knowledge of programming is limited consider to use Excel (or similar tools available in the market) to access a simulator or a thermodynamic library (see my previous post)

for that you may need some basic knowledge of VBA,

not too difficult, there are many free resources available for VBA. 



#7 DanW

DanW

    Gold Member

  • Members
  • 50 posts

Posted 25 July 2016 - 03:21 PM

Do a google search for "HYSYS Automation" and click on the first link that appears on the results list.



#8 peter317

peter317

    Junior Member

  • Members
  • 17 posts

Posted 27 July 2016 - 12:02 AM

Do a google search for "HYSYS Automation" and click on the first link that appears on the results list.

Dear Sir,

 

Thank you for your answer, The first result is the customization guide, is that what you meant? I have read it but due to my lack of programming skills, I'm not sure where to start...



#9 DanW

DanW

    Gold Member

  • Members
  • 50 posts

Posted 27 July 2016 - 07:04 AM

Yes, it is. What exactly are you trying to do? Automating HYSYS is not an easy task even for those who know a little programming.



#10 peter317

peter317

    Junior Member

  • Members
  • 17 posts

Posted 27 July 2016 - 07:04 PM

Yes, it is. What exactly are you trying to do? Automating HYSYS is not an easy task even for those who know a little programming.

I want to automate HYSYS, I will learn programming just for this purpose, but I'm not sure which is better JAVA or C++ as a starter... Can you suggest?



#11 DanW

DanW

    Gold Member

  • Members
  • 50 posts

Posted 27 July 2016 - 07:38 PM

Ok but, what is the task that you want to do that needs automation?



#12 serra

serra

    Gold Member

  • Members
  • 310 posts

Posted 28 July 2016 - 05:25 AM

peter317 wrote
I'm not sure which is better JAVA or C++ as a starter...

for professionals it would depend from project,
for Android, Java and C/C++ are good options since tools as Android Studio, Visual Studio Community Edition have these languages,
for Apple IOs there is Objective C (C/C++)
similar options under Windows (including VBA and the different variants introduced by Microsoft)

by the way, there are specific versions of thermodynamic libraries (as the above mentioned Prode Properties) for Android and other systems...

However, if you wish to interface Aspen Hysys, probably the best option is vba as originally suggested by Bobby...

for the details I would recommend to do a search at cheresources.com, there are many examples about how to interface Excel with Hysys and other software,

finally, if you are a student better to post the question in student's forum...






Similar Topics