Time stamp difference in obiee
Hi
I have two columns with TIMESTAMP data type(One is In time and the other is Outtime).The values are as below.
In Time Out Time
14-jan-08 1:40:45 AM 14-jan-08 1:30:45 PM
15-jan-08 3:22:53 PM 15-jan-08 5:23:54 PM
16-jan-08 3:20:50 PM 16-jan-08 4:23:54 PM
17-jan-08 3:13:44 PM 17-jan-08 7:23:54 PM
I need the out put as below
00:11:50:00
00:2:01:01
00:1:03:04
00:4:10:10
Pl help me out with a solution..
WITH
SAWITH0 AS (select distinct T287766."file_recieved" as c1,
T287766."file_acknowledged" as c2,
isnull(isnull(convert( CHARACTER ( 2 ), {fn TimestampDiff(SQL_TSI_HOUR, T287766."file_acknowledged", T287766."file_recieved")} ) , '') + isnull(convert( CHARACTER ( 2 ), {fn TimestampDiff(SQL_TSI_MINUTE, T287766."file_acknowledged", T287766."file_recieved_ts")} ) , '') , '') + isnull(convert( CHARACTER ( 2 ), {fn TimestampDiff(SQL_TSI_SECOND, T287766."file_acknowledged", T287766."file_recieved")} ) , '') as c3
from
"file_status" T287766)
select distinct SAWITH0.c1 as c1,
SAWITH0.c2 as c2,
SAWITH0.c3 as c3
from
SAWITH0
This is the query from log..
How come you are able to tell that the query if fine.. I'm getting wrong o/p..
Jus try before replying
Similar Messages
-
Hi !
My data load failed due to difference in time stamp .
Why this has happened although I have replicated the DS ?
Moreover the time stamp that I have found in R3 in table ROOSPRMSC is Ok with the error message but the time stamp found in RSOLTPSOURCE is different from the error message ?
Please suggest .Hi
Once again replicate the datasource and activate the Transfer strutcure by means of program RS_TRANSTRU_ACTIVATE _ALL,it should get solved your issue.
Regards
Jagadish -
Hi,
I am new to Labview. This question might be a joke to some of you here, but any help would be greatly appreciated. I have a spreadsheet with time stamps and power outputs from a generator. I am supposed to calculate the difference between consecutive time stamps, which will act as a delay for the next power output update that needs to be sent. For example, lets say that I have to following data:
Time Stamp Power Output
11:00:00 AM 3kW
11:00:02 AM 2.9kW
11:00:04 AM 3.2kW
11:00:06 AM 3.1kW
The above data doesn't make any sense, but it is just for the purpose of this question.
So, I have to read 11:00:00 AM and 3kW initially - 3kW is the initial request thatHello
you can simple subtract one time from the other one and so you get the difference. -> Example
Mike
Attachments:
Unbenannt 2.vi 8 KB -
Hi,
I am new to Labview. This question might be a joke to some of you here, but any help would be greatly appreciated. I have a spreadsheet with time stamps and power outputs from a generator. I am supposed to calculate the difference between consecutive time stamps, which will act as a delay for the next power output update that needs to be sent. For example, lets say that I have to following data:
Time Stamp Power Output
11:00:00 AM 3kW
11:00:02 AM 2.9kW
11:00:04 AM 3.2kW
11:00:06 AM 3.1kW
The above data doesn't make any sense, but it is just for the purpose of this question.
So, I have to read 11:00:00 AM and 3kW initially - 3kW is the initial request that is sent. Then I have toRepeated forum post
Please view http://forums.ni.com/ni/board/message?board.id=170&message.id=294435
Regards,
Juan Galindo
Applications Engineer
National Instruments -
How to do find the difference between two time stamps
Hi all,
i have a table with 2 columns called GMT time and Local time . so i need to find difference between these two time stamps.
i tried like this
select to_date(GMT_TIME,'yyyy-mm-dd hh24:hi:ss')-to_date(LOCAL_TIME,'yyyy-mm-dd hh24:hi:ss') from date_table
the result is coming as follows ..
0.291666666667
i did not under stand the out put.
In my table GMT_TIME= 2011-06-26 00:00:00 and LOCAL_TIME=2011-06-25 17:00:00 ..
please help me how to get exact hours between two dates ..
Thanks
SreedharHi Sreedhar,
Your output (0.2916666) has the unit day.
You should multiply with 24 to get the unit hour.
select ( to_date(GMT_TIME,'yyyy-mm-dd hh24:hi:ss')-to_date(LOCAL_TIME,'yyyy-mm-dd hh24:hi:ss') ) * 24 from date_table;Rgds,
Tycho -
Excel time stamp format mismatch
Hello all,
I am writing time stamp into an excel file. Time stamp for time 2013 & 2012 appears different although format & method of writing is same in both the cases.
In the attached file below. When time stamp is 2012 then format of time stamp in excel file & in input is same but when time stamp is 2013 then format of time stamp what i am writing actually & what appears in excel file is different.
Dont know where exactly it is going wrong ?
Kudos are always welcome if you got solution to some extent.
I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Attachments:
Time stamp format difference.jpg 102 KBRanjeet_Singh wrote:
Cell formatting is same in both the files, I tried entering directly & results are same.
Thats what my question is ?
Just to be absolutely certain I understand you: when you type a date in 2013 into an Excel sheet, it displays differently than when you type a date in 2012 into the same cell in the same Excel sheet. Is that correct? If you did this with two different files, try it with a single file.
If you see this behavior when you enter the text directly from the keyboard, why are you posting it in a LabVIEW forum? It doesn't seem to have anything to do with LabVIEW.
Why can't you upload your Excel files that demonstrate this behavior? -
Time Stamp format from file problem
Hey there,
I have a pretty peculiar problem. I'm working on two PCs right now, one is my private laptop running on Windows 8, and the other one the PC at my workplace, running on Windows XP, but on the same version of LabVIEW. I use this method to save the time and date to a tab delimited .txt file. Then later, with another VI, I read the date and time written to file to reconstruct the time stamp. I've noticed that dates written to file from my workplace differ from the dates written from my private PC: in Windows XP, there are "-" separating the day, month and year. In Windows 8, it's "/". There are other differences (see pictures). So naturally, when reading from file using my VI, I can only read on my private PC files (or at least dates) written on my private PC and vice versa, I can't read files written on my private PC on my workplace PC. Can anybody tell me why there's a difference in format, or how to write the date uniformly so I can read it on any PC, or how to read both formats?
So this is the method I use for writing the time and date (the subVI only inserts a certain number of TAB characters).
This is what it looks like on Windows 8
This is what it looks like on Windows XP
This is the VI (attached) I use to read the time stamps (the first row actually contains the time stamp in HH:MM: SS format for a whole bunch of measurements).
Have a nice day.
Solved!
Go to Solution.
Attachments:
Extract Time Stamps.vi 22 KBI would suggest using the ISO-8601 UTC format.
The only limitation is that the string value is in reference to GMT.
The conversion of the string back to a timestamp will present the date/time on your front panel indicator as local time.
https://lavag.org/topic/15034-timestamp-support-for-format-into-string-scan-variant-from-string-stri...
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
How to plot contour using time stamp
Hello,
I need help on the following:
I acquire size distribution data each minute from a particle counter. I would like to plot the data as a contour plot using time stamp on the x-axis, the size bins on the y-axis and the 2D data on the z-axis. I cannot get the contour functionality in LV 2011 to accept the time stamp format. I did change the format of the x-axis to "absolute time" but it still doesn't work, see simplified diagram below.
Any advice on reformatting a time stamp to something the contour plot understands??!?
Thanks a lot,
Claus
Attachments:
countour.png 20 KBMilan R wrote:
Hi Mogensen!
You could use the "To Double Precision Float" vi to convert the timestamp to a double prescion number as mentioned in this forum post "time stamp to number function". As mentioned in that forum, the number is based on the LabVIEW epoch date so you can use it to compare values taken at a specific time.
I can't look right now but will that work?
I thought the 3D stuff was single and the magnitude of the time stamp would swamp the difference in time stamps.
Just thinking out loud.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
How do I change date time stamp
I've been trying to Adjust the date and time stamp on photos in iphoto and it keeps changing the date by subtracting days and minutes instead of simply changing the date and time to what I type in. What am I doing wrong?
MrsPB wrote:
I've been trying to Adjust the date and time stamp on photos in iphoto and it keeps changing the date by subtracting days and minutes instead of simply changing the date and time to what I type in. What am I doing wrong?
That is exactly what adjust time and date does - it calculates the difference between what you type in and the photo info and then adds (or subtracts) that amount from all selected photos - its purpose it to "adjust" photos to correct for a camera being set wrong or to the wrong time zone
Batch change time and date lets you set a specific time for a group of photos with an option to add an increment to each succisive photo
LN -
Hello All,
In my attached VI I am facing some issues.
My loop rate is 100ms and in chart plot data is not appering as per the x-scale(Time stamp). Values are just plotting in the chart without time. I am trying to implement a graph program that should show values according to time loop rate can be different.
In attached VI I have chart and XY graph both. Please have a look and suggest me the valuable modifications.
Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
Attachments:
Graph.vi 14 KBHello Ben,
Thanks for your valuable inputs.
I don't have waveform data from the field, its only RS232 communication and each and every 100 ms interval I am getting only one value from the device. Now in current program I am using the chart function. But the value(Y-Axis) and the time(X-Axis) sync in not proper. To avoid this i am planning to implement this using XY Graph so I develop this sample VI. Here if you browse and observer in the code I have both chart and XY graph, in chart you can see my current implementation. If you run this code for few seconds you will get some difference in Y-Axis and X-Axis values plot time difference.
Now If I am talking about XY graph on X axis I can send my system time with the field value to avoid this chart issue. (I am trying to implement same in XY Graph)
Today I achieve the target by done offset and some chart property settings. Now I am looking for same in XY Graph.
Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!! -
Time Stamp problem while writing data into the excel file
Hii, All
I am taking the data from the DAQ card of the TOPSCCC with the 8 ms of scanrate for each channel and there are total 16 no of Analog channels in the Card, now i am acquiring the data from the card, time stamping it and writing it into the excel file, which is tab delimited, now the problem is, the data which are in the excel file have the same timestamp for 4 to 5 continuous records, instead we want each data with the different and continuous time stamp with same difference of time stamp between two records, mean if it is difference of 8 ms then it should be the 8 ms for all, but here it is taking the differnce of 16 ms for two samples and giving same time stamp for four to five records and that shouldn't happen, here i am attaching my vi, drivers for the cards and Excel file with the data, can you please give me any suggestion how to do it?
Please help me i require this suggestion as early as possible, i am requiring it urgently.
Thanks in Advance,
Nishant
Attachments:
2026vi.llb 319 KB
2026_ScanMultAD_Demo_time.vi 80 KB
Data.xls 357 KBHello Nishant,
that's what I meant:
Message Edited by GerdW on 05-16-2006 10:32 AM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
timestamp-array.png 2 KB -
Converting EPOCH time stamp to time stamp in Oracle
Hi,
I need a help regarding how to convert the epoch Time stamp, to oracle date and time format.
for example,
for epoch time stamp:1204104116656
the time stamp should be :2008-02-13 12:43:00.351
Thanks in Advance
Basil AbrahamAre you sure you've got the right timestamp? Assuming this is a standard unix epoch time stamp with the epoch date starting at 1970-01-01 UTC the interval between 1970-01-01 UTC and 2008-02-13 is 13922 days, but your epoch timestamp divided by the number of miliseconds in a day 1204104116656/(1000*60*60*24) comes out to 13936.390... days a difference of 14 days 9 hours 21 minutes 56 seconds and 656 miliseconds.
Anyway to convert you need to convert your epoch date into an interval and add it to the starting epoch date (as a timestamp):
select to_timestamp_tz('1970-01-01 utc', 'yyyy-mm-dd tzr')+
numtodsinterval(1204104116656/1000,'second') dstamp
from dual;Message was edited by:
Sentinel -
I am acquiring EMG data with BioBench while acquiring gait data from another source simultaneously. To correlate the data, it's important that the date stamps match. I would like to know where the time stamp comes from, and if there is a way to get more precision (milliseconds instead of seconds). Also, can I get more precision when I export, since this chops it off to the nearest minute.
Thanks!The gait data can't be acquired with BioBench since it is from a motion capture package that acquires data in a completely different way with lots of complicated analysis involved. It processes dozens of frames per second from several video cameras to find the markers etc. I want to match the movement with the EMG signal exactly, to see when the movement begins in relation to the EMG signal. Therefore, I need to know exactly at what time each point in the BioBench file takes place in order to find out how much earlier the EMG signal started than the movement. Knowing when the EMG signal started to the nearest second is not nearly good enough resolution to say anything meaningful about the time difference between the onset of the EMG signal and the movement. The
whole point of acquiring data at up to 1000 Hz is defeated if I only know the absolute time to the nearest second. For anyone who can't acquire all of their data with a DAQCard (motion capture, force plate, etc), the data can't be correlated if the creation time isn't accurate and precise, which really makes BioBench useless for data acquisition or analysis.
Is there anyway to get the creation time to a better resolution? And does the creation time correspond exactly to the first point in the data? I think this would be a necessary improvement for many users. -
Hi All,
I am using Labview8.5 and Windows XP OS.
My Problem is my Labview TimeStamp cannot display current system date and time.
Please see my attachment for the screentshot.
The TimeStamp or ever Format Date/Time String display "YYYY-MM-DD" instead of "2014-08-02".
I tried other computer machine and it works. There are some computer machine has this problem.
How can I resolve this issue? Please advice. Thanks.
Best Thanks,
Jessie
Attachments:
Time Stamp error.JPG 68 KBBill,
reviewing the thread Dennis linked (thanks for that) reveals that it is the same account which opened this thread here three month later.
What bothers me is the fact, that the past thread is marked "solved" even though it obviously isn't. Or the OP is trolling us.....
Nevertheless, it seems like systematic error. Connected to specific machines.
What makes the machines where the time stamp issue occurs "unique"? If there are several, is that source really "unique"?
Most obvious reasons would be:
- Language settings (possibly the infamous "dot-comma-issue")
- Time zone settings (e.g. what happens if you switch Ulaanbaatar to Perth or maybe even some US time zone?)
- Missing hotfixes for Win and LV
- Is the system running as virtual machine vs. "native"?
Not so obvious differences:
- Specific CPU type
- Motherboard/BIOS
- LV ini settings
There are tons of other possible reasons (e.g. corrupt LV installation), but these are the ones i came up with within a couple of minutes....
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Can access a files time stamp for calculations?
I'm using Diadem 10.2. We have an issue with our data, where the first cycle is corrupt iff the time stamp between the current file and previous file is less than 30 minutes. This indicates a manual intervention, and it results in skewed results.
I want to discard the first cycle when the File time stamps are less than 30 minutes apart...but I can't find a way do it.
We use runtime in the file as a time channel, begins at zero each file, so i can't use any channel values to do this?
Thanks in advance for the help. Completing this task will end my assignment with this team, and I'll be moving to a new position at the end of the week. Not sure if Diadem is in my future or not, but I highly doubt it.
Thanks in advance...Hi Jeff,
What type of data files are these? If it's a custom file format, did you write the DataPlugin that reads the file into DIAdem? Is the aquired date/time stored inside the data file somewhere? For a TDM or TDMS file, this would typically be in the "File.DateTime" property, which shows up in the DataFinder as "File.Storage datetime" and in the Data Portal as "File.Storage date/time".
The File created and modifed dates you get from Windows tend to change unexpectedly, so it would not be ideal to use those for a mission-critical process.
I'm assuming that you're loading all the various data files into DIAdem, then concatenating them into contiguous channels that contain all the data from all the files. You will then need to use e "Calculate Differences" ANALYSIS function to create a new channel that has the delta date/time values for each row. Once this is the case, you can use the Channel Calculator to find rows where the delta date/time value is invalid and set these rows equal to NoValues.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Maybe you are looking for
-
I have two ipad2's how can i load purchased apps to each ipad2 from the same itunes library?
I have two iPad2's and I wish to load purchased apps from our iTunes library to our newest iPad2. Can anyone direct me and or provide steps in completing this process? Thank you. texasboytn
-
I have an applet that i am trying to load in a JSP <applet name="MyTestApplet" code="mypackage.MyTestApplet.class" > </applet> mypackage/MyTestApplet.class is under the approot/pages directory and the jsp is also in the same directory. whenever the j
-
OPEN DATASET FILENAME FOR OUTPUT.
HI, While doing unicode enable inECC6.0 FOLLOWING ERROR IS COMING.hOW IT WILL BE RESOLVED. oPEN DATASET physname FOR OUTPUT.
-
After specifying a DSN, and an sql statement to SELECT data I can run the Complete SQL
Session VI in the SQL toolkit. The query results return the requested data, and no errors are produced. When I depress the run arrow a second time, I get an illegal operation message and have to shut down Labview. Have you had problems like this befo
-
I am a new user of eprinting and would ike to understand more ... does my printer need to be on to use e print or can I put it on at the end of day to retrieve print jobs which I have sent to it and if so for how many days will it remember jobs. Also