Author Topic: Running multiple processes at the same time?  (Read 543 times)

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Running multiple processes at the same time?
« on: 2019 July 24 14:08:52 »
I've been wondering, is it possible to run two or more processes at the same time?  For example, would it be possible to run one instance of CosmeticCorrection on the RED channel subs, and a second instance of CosmeticCorrection on the BLUE channel subs?
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: Running multiple processes at the same time?
« Reply #1 on: 2019 July 24 14:56:56 »
I guess you could run two or more instances of PixInsight simultaneously
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: Running multiple processes at the same time?
« Reply #2 on: 2019 July 24 14:59:26 »
I guess you could run two or more instances of PixInsight simultaneously

How do you do that?  If I try to start a second instance it just reverts to the already open instance.
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: Running multiple processes at the same time?
« Reply #4 on: 2019 July 24 16:41:04 »
http://pixinsight.com.ar/en/docs/109/pixinsight-second-instance.html

rob

Cool, that worked.  Now, is there a way to automate this, something like a process icon on the PI desktop that when executed opens the second instance?
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Running multiple processes at the same time?
« Reply #5 on: 2019 July 25 09:55:39 »
Hi Joel,

Why two "instances" of PI instead of the already available multiple "Workspaces" (each of which stores and thus uses and saves its own dedicated group of Process Icons)
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: Running multiple processes at the same time?
« Reply #6 on: 2019 July 25 10:14:07 »
Hi Joel,

Why two "instances" of PI instead of the already available multiple "Workspaces" (each of which stores and thus uses and saves its own dedicated group of Process Icons)

Because you can't run more than one process at a time in the same instance of PI.  There are times when I'm processing data sets that I can work on one color channel on one instance and another color channel in another instance of PI. 
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Running multiple processes at the same time?
« Reply #7 on: 2019 July 25 10:19:06 »
On PixInsight >= 1.8.6, you can run multiple instances in a much easier way using JavaScript. For example, to run a new application instance, enter this command in Process Console:

j CoreApplication.launchInstance()

You can run up to 255 instances concurrently on the same local machine. This works the same way on all platforms.

You can also run a specific instance by passing an integer parameter from 1 to 256; for example:

j CoreApplication.launchInstance( 42 )

Bear in mind that each instance keeps its own set of application settings in a completely independent way. That is, each instance is completely different in terms of preferences, etc.

You can also know if a particular instance is running:

j CoreApplication.isInstanceRunning( 2 )

Alternatively, on platforms where a terminal is available, you can launch multiple instances from the command line. For example, on FreeBSD and Linux:

$ PixInsight -n

On macOS:

$ /Applications/PixInsight/PixInsight.app/Contents/MacOS/PixInsight -n=2

On macOS you have to specify the instance number for technical reasons beyond scope here.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/