PixInsight Forum (historical)

Software Development => PCL and PJSR Development => Topic started by: Juan Conejero on 2009 April 20 14:12:23

Title: Sample PixInsight module
Post by: Juan Conejero 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!
Title: Re: Sample PixInsight module
Post by: David Serrano on 2009 April 20 14:14:30
We love you guy ;). Let's see if this new attack vector works better for me.
Title: Sample PixInsight module
Post by: Nocturnal 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.
Title: Sample PixInsight module
Post by: Nocturnal 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.
Title: Re: Sample PixInsight module
Post by: kwiechen on 2011 October 30 09:33:32
Hello,

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

Best

Kai

Title: Re: Sample PixInsight module
Post by: NKV 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.
Title: Re: Sample PixInsight module
Post by: kwiechen 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