Author Topic: Sample PixInsight module  (Read 5898 times)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Sample PixInsight module
« on: 2009 April 20 14:12:23 »
Hi all,

I have written a sample PixInsight module. It is just the C++ source code for the "skeleton" of a module implementing a process and an interface with five process parameters of various types. This module is an ideal starting point for PixInsight/PCL module development. It's here:

http://pteam.pixinsight.com/Sample.zip

For now, the zip file has makefiles for Linux generated with Eclipse. I'll update it with a Visual C++ 2008 project and makefiles for Mac OS X.

Enjoy!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
Re: Sample PixInsight module
« Reply #1 on: 2009 April 20 14:14:30 »
We love you guy ;). Let's see if this new attack vector works better for me.
--
 David Serrano

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Sample PixInsight module
« Reply #2 on: 2009 April 20 16:50:34 »
OK, I was able to compile the sample. PI doesn't like it very much when I click on the module after it has been found by the import process. An error dialog pops up. As long as I don't click on it and simply press 'import' the module appears.

I guess now I'll try to figure out how to debug a module. In other words how do I break on a module line when PI calls it.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Sample PixInsight module
« Reply #3 on: 2009 April 20 17:24:44 »
Oh, that's cool. You can attach VC++ to PixInsight and put break points in your code. I had to add a lot of break points before I finally hit one but the important thing is that it works.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: Sample PixInsight module
« Reply #4 on: 2011 October 30 09:33:32 »
Hello,

where can I find the sample module? The link gives an 404 error.

Best

Kai


Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: Sample PixInsight module
« Reply #5 on: 2011 October 30 18:28:56 »
where can I find the sample module? The link gives an 404 error.
It's was SandBox. Look PCL package in distribution.

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: Sample PixInsight module
« Reply #6 on: 2011 October 31 01:11:51 »
Thank you! After renaming the classes and the returned module name it compiles and runs within PI.

Best

Kai