Plot multiple days of realtime data on a wavechart
I have real time data from a weather station that I need to plot. I have made wavewcharts of the the data and it plots on 2 min interval (the sampling interval of the incoming port) then I would like to have plots with 7 days of data on them. past 7 days basically. I have manged to set the realtime date and time on the x-scale but I can not get it to display more than 2 hours at a time. If I set the x scale max and min, it seems not to update the graph correctly.
All tips and help would be greatly appreciated
Thanks!!
There are a few things you need to set.
You said you're plotting once every 2 minutes. I assume this means that you're wiring a value into the chart only once every 2 minutes. This is important because charts calculate the time based on the starting time (offset) and the difference between each 2 points (multiplier).
So:
Make sure you're only wiring a value into the chart once every 2 minutes (has to be constant).
Set the offset property to the current time when you start (use Get Date\Time in Seconds and then To DBL to convert to a numeric).
Set the multiplier property to 120.
Set the history length to 5040 (30*24*7).
Try to take over the world!
Similar Messages
-
Calculate Days between same date field in multiple records, looping for each record
Be patient as I am a newbie to Sql Server (using 2008 R2) and SSIS. I have looked at multiple solutions in this and many other forums before submitting the question.
I am looking at records to identify the number of days between two dates. We review drug information. A member uses drug A (Code identifies this called GPI) and has refills throughout time. The goal is to calculate the days between Refill
1 and refill 2, then refill 2 to refill 3, etc. When that member record set is complete, we move to the next member record set.
The basic data would be as follows. Each record shown below would be a separate record in a single table :
Member
Drug Code
DateService
Days Between
1
A
3/1/2012
0
1
A
3/27/2012
27
1
A
4/21/2012
26
1
A
6/15/2012
56
1
F
2/25/2012
0
1
F
3/20/2012
25
1
F
4/17/2012
29
1
F
8/1/2012
107
5
B
2/15/2012
0
5
B
3/10/2012
25
5
B
4/10/2012
32
5
B
6/28/2012
80
5
B
7/10/2012
13
5
B
8/20/2012
42
The days between is the value I am looking to calculate. The First record for the grouping of Member and Drug Code will be zero ( 0 ) as there is no preceding date to calculate against. The process would then loop through the records at the grouping
(Member and Drug Code) until those records are calculated. It would then move on to the next group of Member/Drug records.
Any assistance would be greatly appreciated. Any clarification I can provide, I would be more than happpy too. Thank you in advance!TSQL- Finding the difference in days of multiple records in SQL ServerWITH OrderDates AS (
SELECT
ROW_NUMBER() OVER (ORDER BY OrderDate DESC) AS RowNumber,
OrderDate
FROM OrdersTable
WHERE SKU = 'AA0000'
SELECT
AVG(DATEDIFF(DD, O2.OrderDate, O1.OrderDate)) AS AverageFrequency
FROM OrderDates O1
LEFT JOIN OrderDates O2
ON O2.RowNumber = O1.RowNumber + 1
Fabio Bilicki -
How to display timed events across multiple days in month view?
Simple question I suppose, though I don't know if it has an answer. When I put an event spanning multiple days (say, a week long vacation) in iCal, and check the "All Day" box, it shows a nice, accurate, bar going across those days the event I'm entering covers. However, if I give it specific times for the event (e.g. the times of departure and return for said trip), even if those times are a week apart, the event still appears to only cover the starting date when viewed from the month perspective.
Is there any way I can make the month calendar show all the days during which the event is "happening" so that at a glance I will realize that an entire week is busy?Hi,
You can do it with keyboard shortcuts.
Select the event. Press Cmd+X. Press Cmd and right or left arrow (depending if it is forward or back in months) until you are in the correct month. Press Cmd+V to pase on the same day in the new month.
Best wishes
John M -
Use multiple day event in Calendar region
I am using a Calendar region in my application. One issue i have run into is, some of my events are multiple-day events, such as a conference. The calendar application does not seem to be able to deal with multiple-day events. It takes one date as the date. There doesn't seem to be any way of dealing with multiple day events. In my case, I have 2 date fields in my table associated with my calendar - a starting date, and an ending date.
Has anyone found a way to deal with this situation? I don't want to have a separate entry for each date of the event. I'd like to be able to use my start date, and ending date fields.
Thanks,
JohnScott,
I took the SQL you used in your trigger and substituted my table names and fields. I am getting 3 errors. Here is what my code looks like after the substitutions (my table names are 'meetings_tbl' and 'meetings_tbl_cal'):
CREATE OR REPLACE TRIGGER ai_meetings
AFTER UPDATE OR INSERT ON meetings_tbl
FOR EACH ROW
DECLARE
l_date_diff NUMBER;
BEGIN
IF UPDATING THEN
DELETE FROM meetings_tbl_cal WHERE m_id = meetings_tbl.m_id;
END IF;
l_date_diff := meetings_tbl.meeting_end - meetings_tbl.meeting_start;
FOR x IN 0..l_date_diff
LOOP
INSERT INTO meetings_tbl_cal
(m_id, meeting_date)
VALUES
(meetings_tbl.m_id, TO_DATE(meetings_tbl.meeting_start + x));
END LOOP;
END;
I am getting 3 errors:
1) PL/SQL: ORA-00904: "MEETINGS_TBL"."M_ID": invalid identifier
2) PLS-00357: Table,View Or Sequence reference 'MEETINGS_TBL.MEETING_END' not allowed in this context
3) PL/SQL: ORA-00984: column not allowed here
Maybe I'm not supposed to substitute ':NEW' with 'MEETINGS_TBL' ??
Thanks for your help!
John -
Nokia E71 Calendar Memos across multiple days
Hello,
I recently got a German Nokia E71
(E71-1 Software Version: 100.07.76 08-06-2008).
I noticed a strange behavior of the calendar:
When I create a memo that goes across multiple days (lets say 10 days or 14 days) In Month view the memo is shown correctly for the set time. Also when synchronizing with MS Outlook the memo is shown correctly on the PC.
But when you open the Memo directly (open day view, select the memo and press the center of the nav-key) then the memo is displayed to last one day longer than originally specified.
For example I created a memo that should end on the 11th of September (actually it starts in August so maybe spanning the Month barrier may also cause the problem) but it is shown to end on September 12th when I open it. Although it is shown correctly in Month view (shown on 11-Sept, not shown on 12-sept).
Maybe you have similar experiences?
Or an explanation for that behavior?
Thanks and regards,
SebastianI think I'm experiencing the same thing, Sebastian.
Phone: E71 bough from 3 in the UK ~20months ago.
Firmware: 100.07.76 08-06-2008 RM-346 E71-1 (241.02)
Here's how it happens:
Step 1) I create a memo on the calendar with the phone.
Step 2) I do an Ovi sync over the air (i.e. there is no use of the PC Suite or Microsoft Outlook going on).
Step 3) Some (but not all) of my single day memos are spread over two (2) days.
How it should look when correct: http://tinyurl.com/ovi-cal-memo-right
How it actually looks when wrong: http://tinyurl.com/ovi-cal-memo-wrong
As you can see in the 'wrong' example, instead of memos showing up as lasting for 1 day duration it's apparently "23 hours, 59 minutes" in duration, and ends on 18/07/2011. And yet it's spread over the 18th and 19th on the month view. The correct date (as entered and displayed on my phone) is actually the 19th! The same goes for all those other 'wrong 2-day memos': they should all only be shown on the second of the two day bar that's visible in month view.
At the moment, for some unknown reason, the problem seems confined to April-October of this year (and subsequent and prior years) and dates are stretched back by a day so they appear on the web version of the Ovi calendar as lasting for two (2) days instead of one (1). But I think that the problem has been more widespread and across-the-board in the past, and it may have put dates forward by an aditional day (although I can't be sure on that.
Thankfully, all these memos remain as correct on the phone and seem to be unaffected by the sync.
When it first happened I made an attempt to correct the Ovi Web Calendar memo sync problem before (thinking it was a once only bug) by going through all the Ovi calendar entries on the web interface and tidying things up that way. But I'm not prepared to go through all that hassle again.
It's a real niggle, to say the least.
What can be done?
Thanks for any help.
Attachments:
ovi-cal-memo-right.jpg 155 KB
ovi-cal-memo-wrong.jpg 159 KB -
One multiple day event won't show in month view
I have noticed that every time I launch iCal an event (checked for all day event) beginning 9/1 and ending 9/4 will not show up in the month view until I open that day (and it's there) click it and then it will show up as a banner event. If I close iCal it goes away.
I have other all day events spanning multiple days that don't appear and vanish.
Any ideas what can be causing this? I don't want to schedule something way in advance and then forget it's there because it's vanishing.
Thanks.Hi David,
The way this is implemented by iCal is a choice of the developer. You can send comments about iCal to Apple through this page http://www.apple.com/macosx/feedback/ .
Alternatively, you could make the events into all day events. They would then show on all the dates in month view.
Best wishes
John M -
I'm converting to iCal from another application I've used for years. Does iCal support any way to insert and display a line, banner, bar, etc. accross multiple days in the Month View so that I can display the fact that I'm on the road or on vacation, etc. for the days covered by the line, banner, bar, etc?
I would be happy to provide a picture of what the application I've been using does to support this need.
PowerBook G4 Mac OS X (10.4.8) iCal v2.0.4 (1055)Regal909,
Is this what you are looking for? Creating an all-day or multi-day event:You can create an event that lasts one or more complete days (for example, for a vacation), or an event that spans multiple days with different start and end times.
To create an all-day event, make sure you're in Day or Week view, then double-click in the white area at the top of the iCal window (just below the date). If you want your all-day event to last multiple days, drag a corner of the event across the days in the main calendar view (or type the end date in the Info drawer).
To create a multi-day event, make sure you're in Day or Week view, then drag from the start time to the end time of the event (you can drag across multiple days). You can also type the start and end dates and times in the event's Info drawer.
All-day events are shown across the top of the day in the main calendar view.
Tip: You can also make any event an all-day event by selecting the "all-day event" checkbox in the event's Info drawer.;~) -
Read from spreadshee​t and plot multiple XY graph
I'm trying to read a text file using the "Read from Spreadsheet" function. Next I want to plot the data in it on a single XY Graph.
The text file contains 4 coloums and the first coloumn is X axis and rest are for Y axis. I'm not able to get the multiple plots.
However, I could get it to plot when only a single graph is to be plotted(only 2 coloumn in file). I've attached my VI and a picture here.
I need help in plotting multiple XY graph from the text file with the 4 coloumns.
Solved!
Go to Solution.
Attachments:
Test_1.vi 13 KBHere's a more scalable solution, useful if you have one x and many y columns.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
MultiXY.png 5 KB
MultiXY.vi 10 KB -
Create view from multiple days tables
Hi,
I'm having existing oracle db with daily stat data, tables strangely named data_mon, data_tue, data_wed.. For my batch processing I plan to use view with multiple day data, let say for last 5 days.
Not sure how better implement my sql statement, with those _mon suffixes to make it more or less dynamic.
I also never create View from multiple tables, so probably I can do something that will add fresh daily data and delete 5 days old data?
Will appreciate you comments on details and whole concept. I have prev sql server experience.
Thanks
Tuser12943718 wrote:
Hi,
I'm having existing oracle db with daily stat data, tables strangely named data_mon, data_tue, data_wed.. For my batch processing I plan to use view with multiple day data, let say for last 5 days.
Not sure how better implement my sql statement, with those _mon suffixes to make it more or less dynamic.
I also never create View from multiple tables, so probably I can do something that will add fresh daily data and delete 5 days old data?
Will appreciate you comments on details and whole concept. I have prev sql server experience.
Thanks
TChange the data model so you don't have 1 table for a day.
You just have a DATA table, and a column to denote the day of applicability.
Then you don't need a view, don't need anything dynamic, don't need to smash your head against a wall for a simple query ... etc. -
Calendar events spanning multiple days
Hi,
For events lasting multiple days, is there a way edit the calendar package so that it displays the event each day from the start to end date?
Thanks!Hi,
The values(EVENTS) would anyway appear if there are entries in the table on which you are creating the calendar for e.g.
EVENT-1 01-JAN-02
EVENT-1 02-JAN-02
EVENT-1 03-JAN-02
EVENT-2 04-JAN-02
Create the calendar and order by the date field and the data should appear ..
Pl. could you explain further what exactly you want to display.
You can also restrict the calendar display by using the start and end month option.
Thanks,
Anu -
Plotting multiple series on an SVG Chart
Hi,
I am trying to plot multiple series on an SVG Chart. The moment I add a second series, I get the following error:
"SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-0093".
The graph fails to plot multiple series even for the same queries. The query I use is something like the following:
select null "link", substr(name,7) "Label",value "Value"
from <table>
where
<conditions>
and name in (<sub-query>)
order by name desc
I have previously used an SVG chart to plot multiple series and have never had such problems. Any help would be greatly appreciated.
I tried deleting and recreating the chart - doesn't help.
Thanks,
AswathIf you want to order the data do it via an in-line view:
SELECT *
FROM (
select null "link", substr(name,7) "Label",value "Value"
from <table>
where
<conditions>
and name in (<sub-query>)
order by name desc
) -
Calculating Elapsed time over multiple days
Hello Community!
I am creating a logbook for our aircraft and attempting to correctly use the DUR2HOURS function to calculate flight times. DUR2HOURS does a great job of converting take off and landing times into decimal format but runs in to trouble when take off is late on one day and landing is on the next day. For example: Takeoff at 21:00 and landing at 01:00 gives a large negative number. I am using the very basic formula =DUR2HOURS([ldg time]-[takeofftime]) I realize that my equation will not work when we land on the next day. How can I modify my formula to correctly calculate a duration over multiple days? Thanks in advance for your help!if you enter the complete date and time then this should still work:
format the depart and arrival times:
You can then sum the durations as:
C13=SUM(C)
Rows 1 is a header and row 13 is a footer -
Per Diem Calculations for Single Day and Multiple Days
Hi Gurus
I have just now confronted a weird calculation of Per Diems.
I have configured Per Diems for 1 Day say $50 per Day, irrespective of the no.of hours.
When I create a trip for a single day, the system is calculating $50 Per DIem for one day.
Whereas, when I create a trip for 3 days, the system is calculating only for Two days i.e, $50x2=$100 and not $150 as expected, meaning the lfirst and seond day gets calculated and the last day is not getting calculated
Please let me know where I am missing the little configuration in order to let the system calculate for multiple days correctly ?
This is an urgent requirement please.....Need help.
Thank you
RRoyHi,
As I told you earlier that there could be serval options which needs to be checked again.
For example:
a) V_T702N_D
b) Your per diem table
I think if you have checked 24 hours in V_T702N_D , then please verify the trip duration on PR05
If it was working earlier then below might help you...
For Example:
Start date/time 23-July-2011 Time 00:00
End date/time 25-July-2011 Time 00:00
Here above number of days are three (23,24,25) but calculation for meals shall be done for two days, because for three days per diem calculation it shall be 48:01 Hours above is 48 Hours..
Please try in PR05 and check the results.
Start date/time 23-July-2011 Time 00:00
End date/time 25-July-2011 Time 00:01
So please check again and let know in case of problem..
Regards,
Muhammad Umer -
ICal multiple day event issues
If I enter an event which covers more than one day and set the start and end dates to the corresponding dates it only works on my iPhone. The iPad and iCal only show the event on the day it begins. Whereas the iPhone shows it across all of the days starting from the first date and ending on the end date. Surely this is the way it should be shown in iCal and iPad calendar also? If not you could have a multiple day event and only think it is forgone day and double book your diary?
Hi,
Timed events (as opposed to all day ones) only show on the first day in Month view in iCal. They show in Week and Day views for all the days they span.
This has been the way iCal operates for several versions (if not from the beginning) and if you look here you'll find many comments about it.
This is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like Apple to know you don't like this I suggest you send them feedback.
Best wishes
John M -
Working days between two date fields and Changing Factory Calendar
Hi,
I have to calculate working days between two date fields excluding the weekends and public holidays for Switzerland.
I have written the routine using factory calender and its working fine except for two problems now:
1. If any one of the date field is empty then teh rsult should be zero.
2. And the below code is working from 1996 but my cleints wants it to work for years before 1996 as well.
I also tried to change the Start date in SCAL for factory calendar but it says enter values between 1995 to 2020.
I am new to ABAP. Please help me how i can achieve these for below code.
DATA: IT_HOLIDAYS type TABLE OF ISCAL_DAY,
IS_HOLIDAYS TYPE ISCAL_DAY.
DATA: T_DATE TYPE SY-DATUM,
P_DATE TYPE SY-DATUM.
DATA : X_DATE(4) TYPE C.
DATA: CNT TYPE I.
REFRESH : IT_HOLIDAYS.
CLEAR : IT_HOLIDAYS.
T_DATE = SOURCE_FIELDS-/BIC/ZCCCHP812.
P_DATE = SOURCE_FIELDS-/BIC/ZCCCHP810.
CALL FUNCTION 'HOLIDAY_GET'
EXPORTING
HOLIDAY_CALENDAR = 'CH'
FACTORY_CALENDAR = 'CH'
DATE_FROM = P_DATE
DATE_TO = T_DATE
TABLES
HOLIDAYS = IT_HOLIDAYS
EXCEPTIONS
FACTORY_CALENDAR_NOT_FOUND = 1
HOLIDAY_CALENDAR_NOT_FOUND = 2
DATE_HAS_INVALID_FORMAT = 3
DATE_INCONSISTENCY = 4
OTHERS = 5.
DESCRIBE TABLE IT_HOLIDAYS LINES CNT.
X_DATE = T_DATE - P_DATE - CNT.
RESULT = X_DATE.
Please help
Regards
Zabina
Edited by: Syed786 on Nov 2, 2011 9:15 AMHi Zabina,
Try this function module 'DURATION_DETERMINE'.
Give the factory calendar and unit as DAY
With regards,
Rajesh
Maybe you are looking for
-
After upgrading to IOS 8.1.2 my ipad 4 wont update apps?
Help...I updated my Ipad 4 to ios 8.1.2 and now it will not update any of my apps...
-
HT3625 I don't have a "Use audio for:" menu in my system preferences
When I go to system preferences and try to follow all of the directions in the article, there isn't any menu or anything that says "Use audio for:" when I'm on the input tab of the sound preferences. How can I get my MBP use the audio input instead
-
I don't know where my photos are saved to onto my computer??????
I have photos in my photo stream but i have no idea how they get onto my computer, or where they save to?!!
-
Blooming in LR4.2 EOS 5D MK III Raw Files
Hi, I am a show photographer dealing with many different light sources and sometimes with strong monochrome colors. It appears to me that I have now sometimes quite strong blooming effekts with LR. I opend the same files with Capture one and don´t ha
-
Custom AR Invoice Creation from OM Shipment Lines
Hi I have a senario like this ,like AR Invoice , i need to create a custom AR Invoice number from OM Shipment lines using Grouping Rules.is any idea or sample code for this means helpful. regards Venkat