I'm working on it right now... I'd like to at least watch some output in hyperterm (using com0com) tomorrow night. So there's hope 🙂
JonathonReinhart wrote:I'm working on it right now... I'd like to at least watch some output in hyperterm (using com0com) tomorrow night. So there's hope 🙂
Sweeet!! Thanks very much! Here's hoping it works on the first shot!
Alright, I have output that looks like what we've discussed... It starts with !A[zero]!B[zero]!C[zero]:
{21}{41}{0}{21}{42}{0}{21}{43}{0}
And then sends out the port data (here I just turned on A0, then A1, then A0 and A1):
{41}{0}{42}{0}{43}{0}{41}{1}{42}{0}{43}{0}{41}{2}{42}{0}{43}{0}{41}{3}{42}{0}{43}{0}
Give this a shot, and see what you get!
http://lights.onthefive.com/vixen_plugins/
Also, note that this is a Debug build, and I'll want the Release build to be used in the end.
-- Jonathon
JonathonReinhart wrote:Alright, I have output that looks like what we've discussed... It starts with !A[zero]!B[zero]!C[zero]:{21}{41}{0}{21}{42}{0}{21}{43}{0}And then sends out the port data (here I just turned on A0, then A1, then A0 and A1):
{41}{0}{42}{0}{43}{0}{41}{1}{42}{0}{43}{0}{41}{2}{42}{0}{43}{0}{41}{3}{42}{0}{43}{0}Give this a shot, and see what you get!
http://lights.onthefive.com/vixen_plugins/Also, note that this is a Debug build, and I'll want the Release build to be used in the end.
-- Jonathon
WORKS LIKE A CHARM!!!
I loaded your sample project, defined the correct COM port and let it rip... it stepped through each relay I had attached just like I would expect it to.
Thanks!!!
Great to hear! Looking at the source code for Parallel12 made things easier, even though it was written for Vixen 1.0. I'll get a few things cleaned up internally, and a release version built this evening.
Hope all goes well with your display. Pictures?
JonathonReinhart wrote:Great to hear! Looking at the source code for Parallel12 made things easier, even though it was written for Vixen 1.0. I'll get a few things cleaned up internally, and a release version built this evening.Hope all goes well with your display. Pictures?
Very cool... I'll test out the production version and post pics/videos once the show(s) happen... I have 2 coming up soon, one for a b-day party, and one for the 4th of July... complete with fireworks, water show, video, etc...
I had been coding everything by hand to control the shows until I stumbled across Vixen last week... the contol of the USB 24DIO card was the last thing I was missing to be able to sequence everything with Vixen... MUCH easier than doing it all by hand!!
I'm using the USB DIO device for several purposes, a custom fireworks launcher system, fountain controls, and for Halloween I use it to control animatronics... having Vixen 'on my side' is going to make all my projects so much easier!
Wow, sounds like vixen is definitely the way to go, then!
I've put the latest release version of the dll, 1.0.0.10 up on http://lights.onthefive.com/vixen_plugins/
Enjoy!
Any chance of posting the source so we can see the changes you made to the Parallel (Vixen 1.x) plugin to make a plugin that works with Vixen 2.x?
The Initialize() function prototype changed, but I presume that few/none of the plugins are using data from the first parameter anyway:
// Vixen 1.x
public void Initialize(Channel[] channels, SetupData setupData, XmlNode setupNode)
// Vixen 2.x
public void Initialize(IExecutable executableObject, SetupData setupData, XmlNode setupNode)
The HardwareMap that you return from HardwareMap() has changed. In Vixen 1.x the first parameter appears to be an element of the PortType enumeration, but in Vixen 2.x it is simply a string, "Parallel" or "Serial":
// HardwareMap constructor:
// Vixen 1.x (I think)
public HardwareMap(PortType portType, int portTypeIndex);
// Vixen 2.x
public HardwareMap(string portTypeName, int portTypeIndex);
So then, I believe the PortType enum is no longer needed:
// Vixen 1.x
public enum PortType { }
// Vixen 2.x
// (N/A)
I think that's it. Let me know if I'm missing anything.
I think I'm going to put together a newbie guide to writing Vixen 2.x output plugins on the wiki, unless a similar doc already exists.
JonathonReinhart wrote:
I think I'm going to put together a newbie guide to writing Vixen 2.x output plugins on the wiki, unless a similar doc already exists.
That would be great and if it is in the wiki, we could all add to it as we find things out. I had good intentions of doing the same myself, but seeing as though I haven't had the time to progress any further on my plugin other than getting a few basic parts working, I don't have much to share. Here's a few notes I jotted down with intentions of flushing them out into an expanded document. These are all using Sharp Develop
To inspect vixen: (for seeing what interfaces, etc. are available from vixen)
Tools -> Component Inspector
Click on Assemblies/Types Tab
Inspector Menu -> Open Assembly
Browse to Vixen.exe
Vixen is now in your list
For Debugging:
In project options:
On compiling tab, set output path to vixen’s plugin directory
Save
On debug tab, set start external program to vixen.exe
Save
Using system.diagnostics
You can now debug.write(“blah”);
To get the name to show up in the plugin list properly
public override string ToString() {
return Name;
}
Hardware map is what determines what is shown on the lower panel of the plugin setup box. It is to show what your current plugins are using. Basically it entails getting the current port setting and writing it to the hardware map. The first param is a string “Serial” or “Parallel” or “USB”

