Relays port number
yangoua
Junior Member
in AMX Hardware
please tell me how do we assign the relay port number to device. can we give it every number we want? if i have relays buttons in my solution can we declare it like this:
DEFINE_DEVICE
Relay1 = 5001:8:0
Relays2 = 5002:8:0
does'it exsit a plage number to assignent to relay?
thanks
DEFINE_DEVICE
Relay1 = 5001:8:0
Relays2 = 5002:8:0
does'it exsit a plage number to assignent to relay?
thanks
Comments
-
Since relay only have 1 port number you only need to defince it once.
Portnumbers are defined in the hardware reference guide or in the AMX PI as mentioned in the other thread.
//on a NI 2100 relays are portnumber 4
dvRelays = 5001:4:0
to turn on relay 1 or 2 you just need to put this in your code:
//turn on relay 1 and 2
on[dvRelays,1]
on[dvRelays,2]
//and similar to turn off relay 1 and 2
off[dvRelays,1]
off[dvRelays,2]
Leave a Comment
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums