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

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
Trigger Analysis when specific field is updated.
Avatar
edcasati

Silver
Forum Posts: 5
sp_UserOfflineSmall Offline
1
January 6, 2016 - 5:15 pm
sp_Permalink sp_Print

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.

Avatar
edcasati

Silver
Forum Posts: 5
sp_UserOfflineSmall Offline
2
January 6, 2016 - 5:25 pm
sp_Permalink sp_Print

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: jacktheripper125
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

Nsneilotof

angieus2

goldiepw11

BinanceoSt

gnarender123@gmail.com

edenderest

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee