Vixen Plugin Development: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
No edit summary  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
Although [[Vixen]] provides a standard set of [[Vixen_Plugins|plugins]] for a variety of hardware, individuals with different or custom hardware will need to develop their own plugin.  Plugin development requires Microsoft Visual Studio, or another development environment for coding and compilation using Microsoft's .NET framework.  | Although [[Vixen]] provides a standard set of [[Vixen_Plugins|plugins]] for a variety of hardware, individuals with different or custom hardware will need to develop their own plugin.  Plugin development requires Microsoft Visual Studio, or another development environment for coding and compilation using Microsoft's .NET framework.  | ||
==Example Source Code==  | |||
[http://www.vixenlights.com/downloads.html Source code] for the Parallel 12 plugin is available to assist plugin developers.  The plugin is written in C# and works with Vixen 1.*.  | |||
Modifications are required for the plugin to work with Vixen 2.0:  | |||
* Change the <code>Parallel12</code> class to implement the <code>IEventDrivenOutputPlugIn</code>, <code>IOutputPlugIn</code>, <code>IPlugIn</code> interfaces instead of the <code>PlugIn</code> interface.  | |||
* Change the first parameter of the the <code>Initialize</code> to <code>IExecutable executable</code>. The <code>List<Channels> Channels</code> property of <code>IExecutable</code> can be used in place of the <code>Channel[] channels</code> parameter.  | |||
* In the <code>get</code> method for the <code>HardwareMap</code> property, change the call to <code>new HardwareMap</code> to pass the string constant <code>"Parallel"</code> as its first parameter.  The enumeration <code>PortType</code> no longer exists.  | |||
==Resources==  | ==Resources==  | ||
*[http://www.vixenlights.com/  | *[http://www.vixenlights.com/downloads.html Programmer's Guide] (Only for Vixen 1.*)  | ||
*[http://www.vixenlights.com/  | *[http://www.vixenlights.com/downloads.html Example Source Code] (Only for Vixen 1.*)  | ||
Revision as of 13:44, 12 July 2008
Although Vixen provides a standard set of plugins for a variety of hardware, individuals with different or custom hardware will need to develop their own plugin. Plugin development requires Microsoft Visual Studio, or another development environment for coding and compilation using Microsoft's .NET framework.
Example Source Code
Source code for the Parallel 12 plugin is available to assist plugin developers. The plugin is written in C# and works with Vixen 1.*.
Modifications are required for the plugin to work with Vixen 2.0:
- Change the 
Parallel12class to implement theIEventDrivenOutputPlugIn,IOutputPlugIn,IPlugIninterfaces instead of thePlugIninterface. - Change the first parameter of the the 
InitializetoIExecutable executable. TheList<Channels> Channelsproperty ofIExecutablecan be used in place of theChannel[] channelsparameter. - In the 
getmethod for theHardwareMapproperty, change the call tonew HardwareMapto pass the string constant"Parallel"as its first parameter. The enumerationPortTypeno longer exists. 
Resources
- Programmer's Guide (Only for Vixen 1.*)
 - Example Source Code (Only for Vixen 1.*)