Is there anything available that describes how to use the Launcher controller?
A brief description around the 2 minute mark. But it's woefully unexplained.
I use the Launcher to start/stop things like Ledtriks and rear screen projector.
Launcher can be used within sequences and in Show editor
www.youtube.com/watch?v=Daph7eTD4i4
As you noted, that was woefully unexplained. The place where I noticed the launcher was in the 'Setup Display' screen, where it appears both as a controller type (with almost nothing to configure) and as the possible name of an element (presumably a 'Single Item') that might be patched to a launcher controller item. So how does everything fit together?
https://www.vixenlights.com/docs/usage/sequencer/effects/device-action/launcher/
This web page has a little bit of documentation on the launcher effect. I have not personally used this effect or controller in a show but if you figure stuff out, I am happy to update the Vixen online help with additional information.
This is a snippet of an e-mail conversation I had with the Vixen leads on this effect:
Yes there is a specific Launcher controller. That controller takes the intent from the Launcher effect and translates it to a command line and then shells out and executes it. You can opt to let the command window open, or suppress it. The intent is a StringCommand and comes with pipe and comma delimited text that forms the command and the arguments. I can’t recall the exact form, but the Launcher effect creates it from the effect properties in the proper form.
You are correct, the RDS and Launcher controllers / effects are intended to be used locally and would not export anything useful to FPP because they are string commands. It is probably worth making mention of that on the FPP section under Usage -> General -> Import / Export.
I use a dedicated Windows desktop that runs my show and off hours Christmas music through my transmitter. Everything is cat5 driven for now.
I have two Triks controlled channels defined in my setup display so it appears on my sequence editor and Adjustable Preview.
-yes I can run two separate Ledtriks units, I was given the source code(LTC11) to convert to C# and embed into V3 but Ledtriks popularity faded so I edited LTC11 to point to a second .dat file and run LTC11 and LTC12 from separate directories allowing for two unique .dat files
Quick and dirty but it works!
JCB added posts before I sent this but the command line/shell/execute is exactly how I understand this and how I use it.
If you recall how V2 used cell intensity value assigned to a specific .bat file, V3 ignores cell value and each Launcher event contains its own user defined command line data. I just treat the Launcher like a windows Cmd line operation (or as a PowerScript command)
OK, thanks. I finally found the 'launch' effect, and I'll play with it when I find my laptop that has the command-line parts of vscode on it.
OK, here's where I'm at.
First, I've created a small command-line c++ program using command-line tool (sorry, Martin, that's what I'm used to, and you know how the saying about old dogs goes) that opens a file in my home directory, immediately writes a string to it, then enters a loop writing a short line to that still-open file (using the c/c++ 'select' command to create ~16 mS delays between each write). This program behaves as expected (creating the afore-mentioned file and writing to it) when invoked from the command line (it doesn't need any arguments, nor does it check for them).
When invoked from the scheduler it behaves the same way as a 'startup' entry it behaves the same way, continually running and writing to that file in my Windows home directory.
It behaves differently when invoked from within a sequence. It creates a zero-size file in my home directory, but doesn't appear to write anything to it while the show is running. However, when I stop the show a lot of data appears in the file, what I would have expected to show up along the way.
Nothing seems to happen when I'm running the sequence by itself within the sequence editor (no file created, nothing).
Maybe I need to add something to my program to flush the data, but I'll keep playing with it.
Just so that this is not so mysterious, the context is my attempting to make a streaming network more resilient to WiFi packet loss. Since the vixen controller drivers only have access to data for the current pixel frame, I'm thinking of having the Vixen player launch a program (bypassing the controller drivers) that would read previously exported csv files and transmit their data in non-sequential order to my bespoke ESP01 (or later on, ESP32) controllers. This was mentioned in paddler's lag-problem thread in the 'pixels and pixel controllers' forum.
There must be some C++ command to tell the Windows OS to update. For example, the Access database engine uses a "flush" command which also has to be followed by a doevents() command to let Windows take the time to do the instant flush. I think that's what you're missing. Without that, it just goes into a Windows cache (it's called the lazy write cache, for obvious reasons...) The downside to this is that there's time involved -- probably a few milleseconds or so. Sorry, it's been several years since I did any C++ work and I can't recall what it is in C++....
