AMX vs Vantage
Denis
Posts: 163
Hi everybody
I'm programming a NI300 to work with a Vantage Cbox LE
Since the Vantage module is not compatible with new version of Netlix studio, I'm using V command as recommanded by JJames in an another thread and it works fine.
My problem is I try to simulate a dimmer function on two load ( programmed in Qlink) with selectable load or switch.
My code is
BUTTON_EVENT [dvTP_LIGHT,105] //CONTROL LIGHT LEVEL AND ON-OFF
{
PUSH:
{
SELECT
{
ACTIVE ([dvTP_LIGHT,104] && [dvTP_LIGHT,106]):
{
SEND_STRING dvVANTAGE, "'VSW 1 68 3 2',13"
}
ACTIVE ([dvTP_LIGHT,104]):
{
SEND_STRING dvVANTAGE, "'VSW 1 68 1 2',13"
}
ACTIVE ([dvTP_LIGHT,106]):
{
SEND_STRING dvVANTAGE, "'VSW 1 68 2 2',13"
}
}
}
}
When I press a button, this scenarion works but only for light on and I have to press many time to get light variation. This variation is only light up. I don't able to get light down or On / Off.
I tried with Hold [1,repeat]: too but I got simular problem
Somebody can help me ?
Tanks for any clue
I'm programming a NI300 to work with a Vantage Cbox LE
Since the Vantage module is not compatible with new version of Netlix studio, I'm using V command as recommanded by JJames in an another thread and it works fine.
My problem is I try to simulate a dimmer function on two load ( programmed in Qlink) with selectable load or switch.
My code is
BUTTON_EVENT [dvTP_LIGHT,105] //CONTROL LIGHT LEVEL AND ON-OFF
{
PUSH:
{
SELECT
{
ACTIVE ([dvTP_LIGHT,104] && [dvTP_LIGHT,106]):
{
SEND_STRING dvVANTAGE, "'VSW 1 68 3 2',13"
}
ACTIVE ([dvTP_LIGHT,104]):
{
SEND_STRING dvVANTAGE, "'VSW 1 68 1 2',13"
}
ACTIVE ([dvTP_LIGHT,106]):
{
SEND_STRING dvVANTAGE, "'VSW 1 68 2 2',13"
}
}
}
}
When I press a button, this scenarion works but only for light on and I have to press many time to get light variation. This variation is only light up. I don't able to get light down or On / Off.
I tried with Hold [1,repeat]: too but I got simular problem
Somebody can help me ?
Tanks for any clue
0
Comments
What is the function of the buttons 104 and 106?
When are they activated?
Remember that when you do a event it triggers as described with a push or release (just one trigger at an action) or a hold triggers every given time.
Could you provide some more info maybe i can help you then.
VSW - MASTER STATION SWITCH STATE CARRIAGE RETURN
So when you're sending the VSW, the state you're sending is "Learn the current load values for the switch function". You need to emulate the entire push, and release. So, in your PUSH statements, send VSW 1 68 3 4, and in your RELEASE, you need to send the release state: VSW 1 68 3 5.
A simple example Hope this helps
Hi lDeblank
Button 104 and 106 are use just to be toggle on or off
Depending of state of those buttons, button 105 is affected to different function ( differents buttons in Vantage Qlink program). This way seem works well but when I apply the Vcommand of Vatange I got the problem described in my first post
Following are Vcommand for Vantage Qlink system
VCL Set the return delimiter character(s) to [CR] or [CR/LF] and the return format to regular or detailed.
VEC Echo the number sent to the system.
VGA Return the current level of a load specified by the address.
VGB Return the current level of a load specified by the address.
VGC Return the current level of the station load specified by the address.
VGD Return the current level of each of the loads specified by the module address.
VGL Return the current level of a load specified by the contractor number.
VGN Return the name of stations, loads, and masters.
VGS Return the current state of a switch function.
VGT Return the current state of each of the switch functions on the specified station.
VGV Return the version of the master controller.
VIC Outputs an IR code to a IR Emitter board.
VIR Outputs an IR code to a IR Emitter board.
VLA Set the load specified by address to a certain level.
VLB Set the load specified by address to a certain level.
VLC Set the station load specified by address to a certain level.
VLD Set the state of a switch LED.
VLO Set the load specified by contractor number to a certain level.
VLS Return the current state of a switch LED.
VLT Return the current state of each of the switch LED?s for the specified station.
VOD Setup the system to output RS232 strings when a station LED changes.
VOL Setup the system to output RS232 strings when loads change.
VOM Specifies the master and port to output RS232 data on.
VOS Setup the system to output RS232 strings when a station switch or Infrared button is pressed or released.
VQA Returns the address and port number of the master controller that has the current RS232 connection.
VQM Query the system for master controllers.
VQP Query a master controller for modules.
VQS Query a master controller for stations.
VSW Execute the specified switch function.
Every command will send a response back to the computer. The response depends on the command sent to the system. The response will be delimited with either the carriage return [CR] character or the carriage return and line feed characters [CR/LF].
HI JJames
Tanks for your post
I know for the state, I post a sample without regrads off the state.
I tried with state 4 and 5 without succes, but I have to admit I don't tried complete push and release emulation.
Button 1 in keypad 68 is programed for a dim cycle function. I think as if I push and hold button TP105 must to emulate the switch 1-68 and do cycle dim.....
I will try your recommandation this afternon and will give a report on try
Tank JJames
I redo my code with release state and now it works fine. I used Vantage state 3 and 4 and I got good results
Denis