Trigger Analysis when specific field is updated. | MATLAB | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Trigger Analysis when specific field is updated.
No permission to create posts
January 6, 2016
5:15 pm
Avatar
edcasati

Silver
Members
Forum Posts: 5
Member Since:
January 6, 2016
sp_UserOfflineSmall Offline

I have sensors that wake up at specific intervals ( ie 15 minutes), take a measurement and send it to Thingspeak.
I also have a Matlab Analysis script that examines the data in the stored fields and derives different values and then writes it to a different Field in the same channel.

My specific question is "Is there a way to trigger an Matlab script by watching for an update on a Channel field?" So for example, when Field1 gets updated, the Matlab analysis triggers and updates Field2.

The other option is just triggering on fixed intervals, but that feels inefficient and inaccurate.

January 6, 2016
5:25 pm
Avatar
edcasati

Silver
Members
Forum Posts: 5
Member Since:
January 6, 2016
sp_UserOfflineSmall Offline

Found my own answer.

Create a trigger that "on insertion" of data into a specific field, checks for "Not equal to" a value and triggers if true.
If I give it a nonsense value to check for, like a Humidity reading of -500, it will never meet the condition, and trigger the Matlab analysis every time.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

MiguelWap, JamesdinnA, ScottTug, ThomasApesy, RicardoVeque, AlbertRop

Administrators: Hans: 387, lee: 457