It works, I found an error in my typing, missing a ")" in the first line, so the "if" argument was never true.
The "testchannelmax" and "testchannelmin" does not have historical data from "tempchannel".
Is it possible to plot historical min/max with "tempchannel"?
- AzeoTech Forum
- → Viewing Profile: Posts: ledbelly2142
ledbelly2142
Member Since 02 Aug 2011Offline Last Active Feb 06 2013 01:13 PM
Community Stats
- Group Members
- Active Posts 69
- Profile Views 1512
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
-
Location
Reno NV
0
Neutral
User Tools
Friends
ledbelly2142 hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: Min/max Value With Time Attached
01 February 2013 - 03:54 PM
In Topic: Min/max Value With Time Attached
01 February 2013 - 01:09 PM
I must be doing something wrong, my test channels are not adding any values.
test channels are device type: Test, I/O type A to D, Timing = 0, no conversions.
No errors on the sequence.
test channels are device type: Test, I/O type A to D, Timing = 0, no conversions.
No errors on the sequence.
In Topic: Problematic Modbustcp Device
01 February 2013 - 10:56 AM
Thank you, it works.
In Topic: Min/max Value With Time Attached
31 January 2013 - 04:08 PM
I like this thread, I would like to do something similar.
What if I wanted to get the max and min values for a day (24 hr period) and log it in a test channel?
Would it be the following for max if I ran the sequence at 00:00 every day?
private mx = max(tempchannel)
getTime(max(tempchannel[systime(), systime() - 86400]))
testchannelmax.addvalue(mx)
or should the mx be a global variable
globel mx = max(tempchannel)
getTime(max(tempchannel)[systime(), systime()-86400]))
testchannelmax.addvalue(mx)
Could I make a test channel and put the sequence in the Event of the "tempchannel" channel?
How could I look at the min and max values for each day historically with existing "tempchannel" data?
I hope I'm making sense. I would like to take an existing temperature channel, and look at (graph) historical min and max for each day, as well as month.
Thanks in advance!
What if I wanted to get the max and min values for a day (24 hr period) and log it in a test channel?
Would it be the following for max if I ran the sequence at 00:00 every day?
private mx = max(tempchannel)
getTime(max(tempchannel[systime(), systime() - 86400]))
testchannelmax.addvalue(mx)
or should the mx be a global variable
globel mx = max(tempchannel)
getTime(max(tempchannel)[systime(), systime()-86400]))
testchannelmax.addvalue(mx)
Could I make a test channel and put the sequence in the Event of the "tempchannel" channel?
How could I look at the min and max values for each day historically with existing "tempchannel" data?
I hope I'm making sense. I would like to take an existing temperature channel, and look at (graph) historical min and max for each day, as well as month.
Thanks in advance!
In Topic: Problematic Modbustcp Device
24 January 2013 - 01:29 PM
Does it matter if the channel timing is run by a sequence?
If my channel groups are run by sequences, with timing set to "0", will the while statement still work?
while(1)
if (systime() - channel.time[] > 320)
device.mydevice.initComm()
delay(30)
endif
delay(30)
endwhile
If not, I could pull one channels (in the channel group) back into main and set the timing (I am doing this now because I know it works).
If my channel groups are run by sequences, with timing set to "0", will the while statement still work?
while(1)
if (systime() - channel.time[] > 320)
device.mydevice.initComm()
delay(30)
endif
delay(30)
endwhile
If not, I could pull one channels (in the channel group) back into main and set the timing (I am doing this now because I know it works).
- AzeoTech Forum
- → Viewing Profile: Posts: ledbelly2142
- Privacy Policy


Find content
