Couple code coding questions
vmail
Posts: 11
Hi, I need to reboot a device every 24 hours, would the below code be reliable. Would the code only happen once at 4am? are there any chances that the command would get missed? Also how do I set the clock on the processor (not using code)?
DEFINE_PROGRAM
IF (TIME = '04:00:00'){
OFF [RELAYS,Device]
WAIT 100 ON [RELAYS,Device]
}
Next, if SEND_COMMAND TP1, "'@SOU-soundfile.mp3'" plays a MP3, how do I stop the audio from playing? is there a command for this? What happens whilst the first audio is playing and then I start a 2nd audio. Would they both be playing at the same time or will the 2nd one interrupt the first audio?
DEFINE_PROGRAM
IF (TIME = '04:00:00'){
OFF [RELAYS,Device]
WAIT 100 ON [RELAYS,Device]
}
Next, if SEND_COMMAND TP1, "'@SOU-soundfile.mp3'" plays a MP3, how do I stop the audio from playing? is there a command for this? What happens whilst the first audio is playing and then I start a 2nd audio. Would they both be playing at the same time or will the 2nd one interrupt the first audio?
0
Comments
You can set the clock from the Netlinx Web manager, or from telnet or terminal, or from any touch panel.
Sounds like you need to schedule some training with AMX, it is pretty hard to find your way without it.
To be sure you didn't retrig it, when you time match, you pause your timeline for 1 seconds and restart it.
Or you set your timeline to time to 1 second.
Priop i was using define program for feedback and time event. After locking some processor i define a function feedback who was recall only in define program. Now with the nx serie i'm using timeline. Very easy to managed.
Let me know if the attachment works cuz it doesn't for me. Stupid new forum sucks!