VSS2 Programing
dsmith
Posts: 30
Here's my code and my issue:
IF ([VSS2,1]) // If the BluRay got turned on....
{
SEND_STRING PROJECTOR, "':POWR1',$0D" // Projector ON
}
{
{
SEND_STRING X_10,'A1N' // Lights ON
WAIT 30
ON [23,22]
NOWORK = 1
}
{
SEND_STRING PROJECTOR, "':IDVI',$0D" //Change Projector Input to DVI
SEND_STRING RECEIVER, "'SIBD',$0D" // Turn Denon ON to BluRay input
PROJECTOR_INPUT = 2
DVD_PAUSE = 1
}
}
My Denon A/V receiver and projector are controlled by RS-232 and the VSS syncs on green when the BluRay turns on.When the I/O comes on, everything works but the program constantly sends the commands over & over, thereby I have no control to the projector and receiver. How do I write the code so I regain control to the projector and the A/V receiver.
Thanks
IF ([VSS2,1]) // If the BluRay got turned on....
{
SEND_STRING PROJECTOR, "':POWR1',$0D" // Projector ON
}
{
{
SEND_STRING X_10,'A1N' // Lights ON
WAIT 30
ON [23,22]
NOWORK = 1
}
{
SEND_STRING PROJECTOR, "':IDVI',$0D" //Change Projector Input to DVI
SEND_STRING RECEIVER, "'SIBD',$0D" // Turn Denon ON to BluRay input
PROJECTOR_INPUT = 2
DVD_PAUSE = 1
}
}
My Denon A/V receiver and projector are controlled by RS-232 and the VSS syncs on green when the BluRay turns on.When the I/O comes on, everything works but the program constantly sends the commands over & over, thereby I have no control to the projector and receiver. How do I write the code so I regain control to the projector and the A/V receiver.
Thanks
0
Comments
When the VSS goes from detecting to not detecting, the state will turn to off and it will generate a button release. You can use the release: handler of the button event or the off: handler of the channel event to do important stuff when the video sync stops.
Look in the programming documentation to see how to code your button events and channel events. It's just about the most basic skill you need to acquire to effectively program your Netlinx master.
After I made a channel event, everything works the way I want it.
Thanks again, dsmith