Hi there, I’ve been recently tasked to create an application with a Flexy205 using viewON (4.0.1). I need to be able to write scripts, save historical data and send emails when alarms are triggered. I’ve been looking through your literature for BASIC Scripting and having a hard time getting things to work properly. I was hoping you could clarify a few things for me:
-
When scripting, should I be writing BASIC scripts in the tag view database (Actions -> Send command -> Tag to write: BASIC script) or should I have 1 big script in the BASIC IDE on the Flexy’s web server? Could I then call a function from a button on viewON application?
-
Does the Flexy need to be powered in order to test the BASIC script if I am testing simple logic? e.g:
ONCHANGE “Tag_Bool_1”,“Goto UpdateCounter”
UpdateCounter:
IF(Tag_Bool_1@) THEN
Temp_Lvl@ = Temp_Lvl @ + 1
END IF
END
- Tag_Bool_1 and Temp_Lvl are both eWON Tags
- When I execute this BASIC script from a Button (Actions: Send Command) nothing changes
Let me know if you can help, thanks in advance.
Brandon