These are the possibilities of the digital ports as well as an example:
Code:
>>OUTPUTS
#STARTNEW#
#NAME#Out 1
#TYPE#RELAY
#DEFAULTSTATE#ON
#IMAGEON#\Images\BMV2_Button60_Down.gif
#IMAGEOFF#\Images\BMV2_Button60.gif
#SIZE#60,60
#LOCATION#10,10
#SHOWTEXT#true
#PAGE#0
#PORT#0
#LINK#1;2;3;4;5;6;7;8;9;10;11
#ANIMATION#{1,0,0,0,0,0,0,0,0,0,0,0}::FOREVER::0
#VIDPID#vid_04d8&pid_000c
#TXTCOLOURON#LightGray
#TXTCOLOUROFF#DarkGray
#BORDERSIZE#0
#FONT#Arial Narrow;18;BOLD
#TIMER#30
#ENDNEW#
<<END
#NAME#Text to Appear
The Text To Appear is what appears on the button over the image. For example have textual buttons as well as or instead of all graphical buttons/icons.
#TYPE#RELAY
Right now the only option is RELAY which means a regular digital out. Future options may be EXTENDER for a board that allows 64 digital outputs, or LCD for a character LCD screen.
#DEFAULTSTATE#ON|OFF
When the program starts all the outputs are off on default. However if you are controlling your amp to prevent startup pop, you want this set to ON or else you would need to manually turn on your amp every time.
#ANIMATION#{0|1,0|1,0|1,...}::FOREVER|0|1|2|3...:: 0
This allows you to create an animation to turn on and off outputs with some pattern. Such as flashing
lights, or even turning outputs on for a time period and it automatically turns off. The part within the brackets is the animation sequence.
1 is on and
0 is off. Sp {1,0,1,1,0,0} would turn the outputs on, off, on, on, off, off. Then 2 colons are required
::. Then either
FOREVER or an integer number greater than 0. This is how many times it repeats.
FOREVER means it will never turn off until you manually turn it off. You can set it to repeat 2 times for example so it would be on, off, on, on, off, off, on, off, on, on, off, off and then stay off until you click it again. Another way of using this is to set the animation to {1} with the repeat equal to *time you want it on for* divided by your
ANIMATIONINTERVAL. So if 1 output turns on your horn, you only want it to blast for 1 second. So if your animation interval is set to 100mS, then 1000mS/100mS is 10. So the total would be
{1}::10::0. The ending 0 is which frame it starts on. 0 being the first frame. This number needs to be between 0 and the total number of frames (minus 1).
#IMAGEON#path
#IMAGEOFF#path
IMAGEON is the image to display when the output is on, and IMAGEOFF is the image to display when the output is off. Follows the same rules as the background image in the main section. The root folder is determined as the folder that the program was launched out of. So if you launch the program from C:\Fusion and have your images in C:\Fusion\images\button1.jpg then path would be \images\button1.jpg
#SIZE#width, height
#LOCATION#x,y
Both comma seperated. for LOCATION 0,0 refers to the top left corner.
#LINK#x;x;x
#ANTILINK#x;x;x
When this button is turned on, the buttons in LINK will also be turned on. Also it will turn off the buttons in ANTILINK. The x is determined by the order in the skin file, not the port number. So the first digital output defined is 0. Semicolon seperated.
#AUDIOFROMOFFTOON#path
#AUDIOFROMONTOOFF#path
These are the
sound files that will be played as the button is pressed on or off. path is like the image, with the root being where the application was launched.
#SHOWTEXT#true|false
If true then the text from NAME will be displayed on the button otherwise nothing will show.
#PAGE#x
Where x is the page where this button will be drawn. 0 is the first page. You can have unlimited amount of pages.
#PORT#
This is needed to determine which output this button connects to. Must be a value between 0 and 11 if RELAY because there are only 12 outputs on the board.
#VIDPID#vidpid
If you use multiple firmware versions, then you need to change this. Default is vid_04d8&pid_000c
#TXTCOLOURON#Colour
#TXTCOLOUROFF#Colour
If the button is on the text will be the TXTCOLOURON colour, otherwise it will be TXTCOLOUROFF colour. Needs a name such as Red, Blue, Green, Black, White and other standard colors. Default is LightGray and DarkGray to go with the BMV2 skin.
#BORDERSIZE#x
The border around the button. Set to 0 for graphical
skins.
#FONT#name;pt size;extra style
The font for the text on the button
#TIMER#xxx
This is the individual shutdown timer for each of the outputs. After the device is disconnected, and the output is on, the output will remain on for xxx seconds.
Bookmarks