Defining a device a bit differently. How to?
myer0244
Posts: 34
Hello all! First off I will explain what I am trying to do here:
- I have several classrooms that will have an identical program/UI. The only thing that will differ in these programs will be the System Number.
- I have a centralized admin system that can control each of the classrooms using simple M2M.
- On the admin system touch panel, when I select a room I want to control, the control buttons "Channel Port" on the page are set to the corresponding room's System Number. EXAMPLE: Push button for System 10's room controls --> Button "Channel Port" on Admin TP's page that popped up is set as 10 for each button.
NOW for my dilemma:
On each rooms program, it wont let me define the remote admin tp as such:
Anyone know a way to do this without modifying each room's program individually? Thanks Much!
- I have several classrooms that will have an identical program/UI. The only thing that will differ in these programs will be the System Number.
- I have a centralized admin system that can control each of the classrooms using simple M2M.
- On the admin system touch panel, when I select a room I want to control, the control buttons "Channel Port" on the page are set to the corresponding room's System Number. EXAMPLE: Push button for System 10's room controls --> Button "Channel Port" on Admin TP's page that popped up is set as 10 for each button.
NOW for my dilemma:
On each rooms program, it wont let me define the remote admin tp as such:
DEFINE_DEVICE dvAdminTP = 10001:SYSTEM.NUMBER:50I get the error: "Symbol [SYSTEM] not defined"
Anyone know a way to do this without modifying each room's program individually? Thanks Much!
0
Comments
This works, as tested on an NI-3000 with the latest firmware. Then in the events for your touchpanel you can either use a DEV array or you can just use the vdvAdminTP for the events from the Admin touchpanel. Hope that helps.
When I use the dev array, at the line "vdvAdminTP," i get the error "Initializer is not a constant"
or, alternatively, try
You'll need a call to rebuild_event() to rebuild the event tables if you have any events for vdvTP or vdvAdminTP as far as I can see (or else the event tables won't be updated when vdvAdminTP changes).
Odds are you'll need to set_length_array(vdvTP, 2) and rebuild_event() if the dev array is not a constant and you populate it at runtime like this. vdvTP will have a default length of 0, as opposed to its size of 2, and you will need to reflect how many devs are stored in the array before updating the event tables from memory.