TDMS viewer not showing data with time stamp
Need help with time stamping data in a TDMS file generated by DAQ Assistant.
When I use the TDMS Viewer, with the x-scale set to absolute time, the date starts at 1903. If I use Excel to look at the file the start time is correct (i.e. 2013).
Solved!
Go to Solution.
Bo_Xie, I have simplifed my VI and now able to display the correct time stamp. Thank for your time!
Similar Messages
-
Inserting Current Date with time stamp in oracle database
Hi Experts,
I want to insert the current Date and time stamp in a field in the Oracle Database Table.
I am able to insert date but i am not able to insert the date with time stamp. Any Suggestions??
Thanks
NaveenNaveen,
Do you want to get current date (from sysdate) with a specific format or transform a value containing a date/time value to insert it in ORACLE ?
Usually, you insert current datetimestamp in a date field using this :
TO_DATE(sysdate,'dd/mm/yyyy hh:mi:ss')
you may have to tweak the format pattern ('dd/mm....') according to your needs
if you want to transform a date, use something like this:
TO_DATE(your_date,your_format)
but make sure your format is compliant with your date, ie
TO_DATE('31/12/2008','MM/DD/YYYY') could raise error (litteral does not match) cuz ORACLE can't recognize 31 as a month pattern
Chris -
Chat Messages do not show date and time of buddies logging in and out.
If I keep my buddy chat with friends open, it used show the date and time that they log in and out. Now after updating to Yosemite, it does not and also will show the last message exchange as something way older that the last chat session. Not the actual last exchange. Why?
Is there a setting that I can keep the date and time log. It's important for work conversations. Thanks.I realize that my needs are outside of the normal editing workflow. I am a private investigator and last week I shot over 6 hours of surveillance video on a Sony video camera. Within this 6 hours of video there is at most 2 minutes of actual footage of my subject. So what I wanted to do was just import the parts of the clip I want, so I can avoid importing the whole 6 hours, and then add a text title of some sort that shows the date/time. My problem is that once I get this clip I have easy way of establising the TOD short of taking the clip capture time and then counting up using the SMTPE Timecode. In this regard iMovie makes it easier because I can just hover over the clip and see the TOD of that specific frame. iMovie on the other hand would force me to import the whole 6 hour video so i'm left moving between both programs which is less than ideal.
-
Can't show 7PM with Time Stamp Control
Maybe it's just me, but I can't seem to get any time stamp controls to accept 7PM as an entry.
....this is kind of a problem for the data entry I'm supposed to be doing this weekend.
Any workaround?
Patrick AllenThanks for the reply Guenter.
It's very strange. Even after shutting down LabVIEW and starting with an entirely new VI, the time stamp control always displays 00:00:00 when I try to enter 7PM.
I've tried changing the defaults to just about everything. But it's always the same behavior.
For my work around I decided to just use Excel for all my raw data entry. I'll write program to stuff it all in the database later.
*edit*
I just downloaded the attachment on your reply.....and it worked just fine.
I'm uploading the entire .vi now. This is bizare.
Message Edited by pallen on 10-03-2009 05:44 PM
Patrick Allen
Attachments:
time stamp weirdness.vi 6 KB -
Plot dynamic data with time stamp
Hi All
I would like to create a plot of dynamic data, (Voltage readings taken with an In 6008) versus time.
When the loop starts taking voltage data I would to plot the data versus elapsed time. Voltage versus time elapsed. I have read many examples and tried for many hours to get this to work.
Please help!
MikeHi Mike,
Are you using a Waveform Chart? A chart will continuously plot the data versus time as it is acquired. Try right clicking on the x-axis and selecting Properties>> Display Format. Here you can change the way time is displayed on the x-axis. You can also adjust the way the data is displayed by right clicking and going to Properties>>Appearance>>Update Mode.
I hope that helps! If not, can you indicate what specifically you have set up in your code and how the result is different from the plot you would prefer to create.
Thanks,
Matt
Product Owner - NI Community
National Instruments -
Comparing date with time stamp
Hii,
I am trying to write a query where i have to pick all the record which have same date even thought the time stamp is different.
'2008-06-23 14:19:23.060941'
'2008-06-23 14:30:03.647688'
I have to pick records based on the 2008-06-23.
i tried
select * from table_name where date1 = to_Date('06-23-2008', 'MM-DD-YYYY')
but it does not out put any records
plz helpThere are a few ways to tackle this issue. One way is to truncate the dates involved to get rid of the time portion:
trunc(date1) = to_date('06-23-2008', 'MM-DD-YYYY')This method works but if there is an index on the date1 column, using the trunc function prevents your queries from being able to use the index (unless its a function based index on trunc(date1) ).
An alternative method that won't run into the index issue is to use a range test:
to_date('06-23-2008', 'MM-DD-YYYY') <= date1 AND
date1 < to_date('06-23-2008', 'MM-DD-YYYY') + 1Notice that the second condition is just the less than operator, and not the <= operator as used in the first condition since you don't want any records returned that are actually on the following day. -
Designing View to select Date with Time
Hi,
How can we design the view to select the date along with time?
We know that we can provide drop downs for hours, minutes and seconds.
Is there any alternative to display UI element to select the date and time. I am in 7.0 SP17
ThanksHi Tatayya Marni,
For selecting the Date and Time u can try a workaround. First create a simple type of type date and bind it to an Input Field so that the date can be captured and for the for the time u can use the System Date and using the same SystemDate u can get the Time in Hours, Minutes and Seconds.
Eg :- store the SystemDate in a Date variable and to get the hour u can use Date.getHours(), getMinutes
Date dt = new Date(System.currentTimeMillis());
dt.getHours(),dt.getMinutes(),dt.getSeconds());
Hope this works dor u.
Regards,
Poojith M V -
Consecutive data with time stamp
Hi,
I have a table named schedules, it has the following columns:
SCHEDULE_ID SCHEDULE_DATE HOME_TEAM_ID VISITOR_TEAM_ID SEASON_ID VISIT_TEAM_DECISION HOME_TEAM_DECISION
20071228NCAAFMICHIGANST0 12/28/2007 6639 5408 21586 W L
20071201NCAAFBOSTCOLL--0 12/1/2007 5408 7798 21586 L W
20071124NCAAFBOSTCOLL--0 11/24/2007 5408 6626 21586 W L
20071117NCAAFCLEMSON---0 11/17/2007 5650 5408 21586 W L
20071110NCAAFMARYLAND--0 11/10/2007 6544 5408 21586 L W
20071103NCAAFBOSTCOLL--0 11/3/2007 5408 5995 21586 W L
20071025NCAAFVATECH----0 10/25/2007 7798 5408 21586 W L
for team_id say 5408,i need to find out the Streaks ( consecutive wins or losses).
From the above data , the first record has 5408 as visitor_team and its team_decision = W which means win.
for the second record the home_team is 5408 and its team decision is W which means Win.
For the third record , the home_team is 5408 and its team decision is L which means Lost.
so the output has to be Win 2. (as there are two consecutive wins by the end of the league).
the output will look like this
team_id streaks win_loss
5408 2 L
5408 1 W
from this I want only the latest record , thats
team_id streaks win_loss
5408 2 LHi,
The only data you really need to solve this problem is the date (for sorting) and 'W' or 'L' for whether the target team won or lost. Start by making a query that only has that data, and only for relevant rows. (That is, use a WHERE-clause to ignore any rows that do not invlove the target team, or refer to the wrong season, if that's an issue, etc.)
Use the result set of that query as if it were a table, like this:
WITH wl AS
SELECT schedule_date
, ... AS decision -- 'W' or 'L'
FROM schedules
WHERE ...
SELECT ...
FROM wl
WHERE ...The answer you want can then be gotten easily using analytic functions, such as LEAD.
If you get stuck, post your code. Damorgan is right: not very many people want to do your work for you, but a lot of people are willing to help you do your work. -
Hello
I have this program (attached) with a 'write to measurment file'. The problem i have is that i want 4 signals saved and he only saves 1000 samples and then he stops. He just has to save all the samples from every channel.
And when I want to measure Dc voltages he only has to take 1 point per second or per minute. How can I change this easy?
Attachments:
STURING MEETOPSTELLING.vi 177 KBI don't get it either... Can you explain to me short what your circuit does? I am new to labview so I have to search everything for myself
Attachments:
STURING MEETOPSTELLING_LV8_01.vi 184 KB -
Hi, with ADF 11.2.0 , i'm having a date column in the table which displays the date and time in the format of "yyyy-MM-dd hh:mm:ss.FF ". But the filter allows me to give only the date and i'm expecting to filter the records at least based the on the given date. But it's not working so. The reason i got in this forum is ,
"The typical af:table setup has it such that the filter for a date column allows you to specify dates, but not times. When the filter queries against the database, *it defaults the date's time component to midnight*. As such only records that match the date at midnight will be returned."
Based on the above statement , i guess no way for my scenario to filter the records based on date. Is there any way to filter data with time stamp. Thanks .What if you define a transient attribute in your VO that basically uses Trunc(dateField) as its value?
Then show this attribute in the table for filtering. -
Date and Time Stamp not showing up on import?
I recorded with date and time stamp on my Sony Sr-11 and when I import it in iMovie 11 it's not displayed. Please help so when I import it shows up in iMovie 11.
Playing back the tape in the camcorder that originally recorded the tape with the display output activated, doesn't mean that you actually recorded the date & time as part of the video. Check the user's manual of your camcorder to find out how to record date & time as part of the image - not just to a data track. FCP doesn't access the data code info.
-DH -
Discoverer Plus 10gR2 not show data when the script of view have package
Hi my friends.
I have a problem with discoverer plus, I don't know is a problem or I'm doing something wrong.
I have a four views, the views containg in the SELECT stament and WHERE clause packages, example:
SELECT d.price,
d.total,
d.min,
d.mx,
TO_CHAR (SYSDATE, 'q') quarter,
d.fid,
k_xdcd_qry.f_xdc_obt_price (d.prod, d.id) --> package
k_xpxpd_qry.f_xpeds_salary_ca_u (
d.prod,
d.id) xp --> package
FROM px_prices_proc c,
xp_sla_max d,
xmp_sla_puc b
WHERE a.prod = b.prod
AND a.id = b.id
AND a.prod = k_xps_tools.f_obt_prod --> package
When I used the views on discoverer plus for construct the report, when execute the query not show data.
Appreciate it if you could help or tell me I'm doing wrong or does not support Discoverer Plus package execution.Hi Tux,
This appears to be a grant issue. Apparently, you have granted execute with respect to this package to the EUL owner or the view would not have compiled. If you have not given EUL owner the grant option, I would recommend doing this as well.
This appears to be an Oracle APPS EUL (tell me if I am wrong). If this is the case, it goes without saying that APPS will need to be granted the execute privilege.
Also, by default, a stored package executes with the privileges of its owner. If your custom package was designed this way, are the objects which it references received the appropriate grant? I assume you tested this, but I am concerned that the line, a.prod = k_xps_tools.f_obt_prod, in the where clause could be resulting in the Null set being returned.
Patrick -
How to show Date and Time with TimeZone
Dear All,
I have to show Date and Time with TimeZone abbreviation,
for example:
1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
how can i show *Australia/New Zealand - Eastern time zone to AEST*,
I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
Appreciate your help
Thanks
DayaDayananda wrote:
ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
"+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
There is a standard source for this information although when I tried it it appears to not work.
If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases. -
Date and time stamp of user status does not appear
Hi, gurus.
For a specific transaction type, the date and time stamps for certain user statuses do not appear within the transaction although these missing date/time stamps are captured in the database upon checking by our ABAP. It seems that this problem started when I added several statuses and rearranged their status numbers in the status profile last year.
I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
E.g.
Status Profile
Status No. --- Status Code --- Short Text
10 --- IP1L --- In Process 1st Level
20 --- IP2L --- In Process 2nd Level
Date Profile
Display Position --- Date Type
1 --- In Process 1st Level
2 --- In Process 2nd Level
We're going to create and assign a new status profile for the concerned transaction type. We'll make sure that this status profile is sychronized with the date profile. Hopefully, the date/time stamps will all be displayed in prospective transactions but the problem on the missing date/time stamps in historical transactions will still remain.
Pls. help us.
Thanks in advance,
TheresaI'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
No -
Not able to use date with time in sql query
Hi,
select a.contract_number,b.start_date,b.end_date,b.price_negotiated,b.attribute_category,b.attribute1,a.sts_code,a.contract_number_modifier,b.cle_id,b.creation_date
from OKC_K_HEADERS_ALL_B a,OKC_K_LINES_B b
where a.id = b.dnz_chr_id
and b.cle_id is not null
and a.contract_number_modifier is not null
and a.sts_code in ('ACTIVE','SIGNED','60 DAY HOLD','HOLD')
and b.creation_date between to_date('21-10-2013 9:19:48','DD-MM-YYYY HH24:MI:SS') and sysdate;
If I execute this query in toad it is giving me proper results.This query populates the results between the two date with time.
But I am facing issue when I am using this query in the procedure. The procedure is as below.
If I use the same query in the procedure I am getting wrong output.
CREATE OR REPLACE procedure xx_prog_upd_annualized_amt(errbuf out varchar2, retcode out varchar2)
as
cursor c1 (l_date in varchar2)is
select a.contract_number,b.start_date,b.end_date,b.price_negotiated,b.attribute_category,b.attribute1,a.sts_code,a.contract_number_modifier,b.cle_id
from OKC_K_HEADERS_ALL_B a,OKC_K_LINES_B b
where a.id = b.dnz_chr_id
and b.cle_id is not null
and a.contract_number_modifier is not null
and a.sts_code in ('ACTIVE','SIGNED','60 DAY HOLD','HOLD')
and b.creation_date between to_date(l_date,'DD-MM-YYYY HH24:MI:SS') and sysdate;
v_date varchar2(100);
v_total_days number;
v_annualized_amount number;
begin
begin
select max(fcr.actual_start_date) into v_date
from fnd_concurrent_programs_vl fcp
,fnd_concurrent_requests fcr
where fcp.concurrent_program_id = fcr.concurrent_program_id
and fcp.user_concurrent_program_name like 'Renewed Annualized Amount Updation';
exception
when others then
fnd_file.put_line(fnd_file.log,'Invalid date');
end;
fnd_file.put_line(fnd_file.output,v_date);
fnd_file.put_line(fnd_file.output,sysdate);
fnd_file.put_line(fnd_file.output,'***************Start of Program***************');
fnd_file.put_line(fnd_file.output,'***************Hi***************');
For i in c1(v_date) loop
SELECT
1
+ 30 * TRUNC (MONTHS_BETWEEN ( TO_DATE (i.end_date, 'DD-MON-YYYY'), TO_DATE (i.start_date, 'DD-MON-YYYY')))
+ LEAST (EXTRACT (DAY FROM TO_DATE (i.end_date, 'DD-MON-YYYY')), 30)
- LEAST (EXTRACT (DAY FROM TO_DATE (i.start_date, 'DD-MON-YYYY')), 30)
+ CASE
WHEN EXTRACT (DAY FROM TO_DATE (i.end_date, 'DD-MON-YYYY')) < EXTRACT (DAY FROM TO_DATE (i.start_date, 'DD-MON-YYYY')) THEN 30
ELSE 0
END
daysbetween into v_total_days
FROM dual;
fnd_file.put_line(fnd_file.output,i.contract_number);
fnd_file.put_line(fnd_file.output,v_total_days);
If v_total_days < 360 then
v_annualized_amount := (360*i.price_negotiated)/v_total_days;
update OKC_K_LINES_B
set attribute_category = 'Annualized Amount',attribute1 = v_annualized_amount
where cle_id = i.cle_id;
fnd_file.put_line(fnd_file.output,v_annualized_amount);
fnd_file.put_line(fnd_file.output,i.cle_id);
elsif v_total_days >= 360 then
update OKC_K_LINES_B
set attribute_category = 'Annualized Amount',attribute1 = i.price_negotiated
where cle_id = i.cle_id;
end if;
end loop;
commit;
fnd_file.put_line(fnd_file.output,'***************End of Program***************');
null;
end;SureshM wrote:
Hi Purvesh,
Apologize for not giving the sufficient information.
max(fcr.actual_start_date) = here I am getting date with time (for eg :9/4/2012 6:47:49 PM)
Datatype for this column is date.
This actual start date I am storing in varchar2 variable and then converting this value to date with time.
My requirement is to pick the rows between the two timestamps which I am unable to do in the procedure.
Regards
Suresh
YOu are losing the Time information while fetching the data into a VARCHAR2 variable. change the datatype of v_date to DATE and get rid of the TO_DATE logic in cursor and simply use v_date variable.
Message was edited by: PurveshK misread.
Maybe you are looking for
-
I uninstalled firefox and reinstalled removed all the plug ins I also made sure that I deleted the programs folder and everything. I even uninstalled and reinstalled adobe flash and it is still crashing all the time.
-
I have a version of cs6 which i can not register in mij account. How can i do that.
Two years ago i bought a version of cs6. I never succeeded to register my copy on adobe.com. Now i want to upgrade it to cc and get my discount by using my, already bought, version of cs6. But i can not get the discount because i didn't register it t
-
CS2 InCopy - Personalize your software
For several yours, InCopy CS2 was being used in one of our Macs in the office. Out of the blue, it suddenly asked to "Personalize your software". It was then asking for the serial number. I typed in the serial number we have used for years and years,
-
hi, i wanted to know how to read the file line by line.after it reaches ther last line it has to start from the first line.. can u please help me out in this
-
2106 controller 1 port internal 1 port guest
We are finally experimenting with wireless. Our internal wlan is up and running. port 1 is trunked to the internal switch port. New WLAN is associated to internal vlan. My concern is guest. Is it ok to create a WLAN, associate it to port 6 on t