Rough terrain when the data is plotted with time stamp of AM / PM or to the right!
Hi to all programmers.
I'm attached Datafile. Can someone tell me how to draw this line! I need all of the data plotted on the right and the x - axis with the date and time stamp.
I understand that the chart cannot understand that after the time: 12:59:59.999, it's 01:00:00.000 afternoon.
Thanks to Labview 7.1
Concerning
HFZ
Apart from a code that can be simplified by the use of other functions, what I see, it's that the file you provided does not match the format that expects the VI.
Other comments:
- I don't understand why you're going to all the trouble of the evolution of the time string when all what you need to do is:
- All the way at the beginning, use the function of path of the band to get the file name rather than the gymnastics that you're doing.
- Your time loop must be indexed for auto-loop.
- I can't quite understand what you're trying to do with all these sliders.
Tags: NI Software
Similar Questions
-
Acquisition of data high-speed with time stamp
I am acquiring data at a fairly fast speed (5 to 25 kHz) for a few seconds and then writing in a spreadsheet file. Is there a way to set up so that it displays the time stamp for each data point instead of just the data point number?
Of course. Change the type of data returned by DBL 2D to 1 D wave form. This is doen by clicking on the polymorphic selector or right-click and choose 'select the Type '.
-
When exporting data to essbase with L0 members, shared members are also get exported.
Hi, when exporting data to essbase with L0 members, shared members are also get exported.
But I don't want to export another hierarchy!
Example:
project
XYZ +.
ABCD +.
P00001 +.
p00002 +.
GFE +.
p00003 +.
p00004 +.
all the xyz (Label only)
ABCD (shared member)
EFG (shared member)
I want data to be exported only with P00001, 2, 3, 4.
I think that the OP cannot use Level0 in DATAEXPORTOPTIONS, because not all dimensions are zero-level.
Cameron, thanks - Yes, it's the behavior of the OP is seen (and disliking). The share of 'level zero' which is in fact not level zero (in the primary hierarchy) is included in the output. I think it's the problem rather than replication / repetition.
-
A few days ago, I bought a mac mini and I transferred all my data and programs with time machine: all programs have been updated but iMovie (7.1.4)... However, it seems that, to update to the latest version, I have to pay to download on Appstore: is it possible? what I am doing wrong?
If it were a new mac mini, you need already installed 10.1 iMovie. Otherwise, but you already have iMovie 9 registered version to your Apple ID, you can upgrade to version 10 for free, but if (as it appears) is an earlier version then you have to buy version 10.
Geoff.
-
Hello world
IM pretty new to audit the database. Auditing is enabled in the database. I would like to retrieve the news all of the objects belonged to a certain pattern when it was last accessed (select, insert, update) with time stamp. Is there any script for this? Your time and your reply is greatly appreciated. Thank you.
Database version: 11.2.0.4
Enable audit is not quite enough to get the details when the table is updated/inserted/selected.
You must activate audting on the object level, then you may only be able to see your report of your choice.
SELECT OBJ_NAME, ACTION_NAME, to_char (timestamp, ' dd/mm/yyyy, hh') of sys.dba_audit_object.
-
overloading a DATE with time STAMP function to avoid the "too many declarations.
Originally, I had just the a function with the arguments of VARCHAR2. It worked not correctly because when the dates were gone, the automatic conversion into VARCHAR2 lowered the timestamp. So, I added a 2nd function with the arguments to DATE. Then I started to get "too many declarations of is_same exist" error during the passage of time stamps. This made no sense to me, so, although documentation Oracle says you can't do this, I created a 3rd version of the function, to manage the TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed that he did not work with TIMESTAMP with time zones. Therefore, the fourth version of the function. Docs of the Oracle say that if your arguments are of the same family, you can't create an overloaded function, but in the example above shows, it's very bad.CREATE OR REPLACE PACKAGE util AS FUNCTION yn (bool IN BOOLEAN) RETURN CHAR; FUNCTION is_same(a varchar2, b varchar2) RETURN BOOLEAN; FUNCTION is_same(a date, b date) RETURN BOOLEAN; /* Oracle's documentation says that you cannot overload subprograms * that have the same type family for the arguments. But, * apparently timestamp and date are in different type families, * even though Oracle's documentation says they are in the same one. * If we don't create a specific overloaded function for timestamp, * and for timestamp with time zone, we get "too many declarations * of is_same match" when we try to call is_same for timestamps. */ FUNCTION is_same(a timestamp, b timestamp) RETURN BOOLEAN; FUNCTION is_same(a timestamp with time zone, b timestamp with time zone) RETURN BOOLEAN; /* These two do indeed cause problems, although there are no errors when we compile the package. Why no errors here? */ FUNCTION is_same(a integer, b integer) return boolean; FUNCTION is_same(a real, b real) return boolean; END util; / CREATE OR REPLACE PACKAGE BODY util AS /******************************************************************************** NAME: yn PURPOSE: pass in a boolean, get back a Y or N ********************************************************************************/ FUNCTION yn (bool IN BOOLEAN) RETURN CHAR IS BEGIN IF bool THEN RETURN 'Y'; END IF; RETURN 'N'; END yn; /******************************************************************************** NAME: is_same PURPOSE: pass in two values, get back a boolean indicating whether they are the same. Two nulls = true with this function. ********************************************************************************/ FUNCTION is_same(a in varchar2, b in varchar2) RETURN BOOLEAN IS bool boolean := false; BEGIN IF a IS NULL and b IS NULL THEN bool := true; -- explicitly set this to false if exactly one arg is null ELSIF a is NULL or b IS NULL then bool := false; ELSE bool := a = b; END IF; RETURN bool; END is_same; FUNCTION is_same(a in date, b in date) RETURN BOOLEAN IS bool boolean := false; BEGIN IF a IS NULL and b IS NULL THEN bool := true; -- explicitly set this to false if exactly one arg is null ELSIF a is NULL or b IS NULL then bool := false; ELSE bool := a = b; END IF; RETURN bool; END is_same; FUNCTION is_same(a in timestamp, b in timestamp) RETURN BOOLEAN IS bool boolean := false; BEGIN IF a IS NULL and b IS NULL THEN bool := true; -- explicitly set this to false if exactly one arg is null ELSIF a is NULL or b IS NULL then bool := false; ELSE bool := a = b; END IF; RETURN bool; END is_same; FUNCTION is_same(a in timestamp with time zone, b in timestamp with time zone) RETURN BOOLEAN IS bool boolean := false; BEGIN IF a IS NULL and b IS NULL THEN bool := true; -- explicitly set this to false if exactly one arg is null ELSIF a is NULL or b IS NULL then bool := false; ELSE bool := a = b; END IF; RETURN bool; END is_same; /* Don't bother to fully implement these two, as they'll just cause errors at run time anyway */ FUNCTION is_same(a integer, b integer) return boolean is begin return false; end; FUNCTION is_same(a real, b real) return boolean is begin return false; end; END util; / declare d1 date := timestamp '2011-02-15 13:14:15'; d2 date; t timestamp := timestamp '2011-02-15 13:14:15'; t2 timestamp; a varchar2(10); n real := 1; n2 real; begin dbms_output.put_line('dates'); dbms_output.put_line(util.yn(util.is_same(d2,d2) )); dbms_output.put_line(util.yn(util.is_same(d1,d2) )); dbms_output.put_line('timestamps'); -- why don't these throw exception? dbms_output.put_line(util.yn(util.is_same(t2,t2) )); dbms_output.put_line(util.yn(util.is_same(t,t2) )); dbms_output.put_line('varchars'); dbms_output.put_line(util.yn(util.is_same(a,a))); dbms_output.put_line(util.yn(util.is_same(a,'a'))); dbms_output.put_line('numbers'); -- dbms_output.put_line(util.yn(util.is_same(n,n2))); -- this would throw an exception end; /
Finally, just for grins, I created the functions of number two, one number, the other with REAL and even these are allowed - they are compiled. But then, at runtime, it fails. I'm really confused.
Here's the apparently erroneous Oracle documentation on this subject: http://docs.oracle.com/cd/B12037_01/appdev.101/b10807/08_subs.htm (see overload subprogram names) and here are the different types and their families: http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/predefined.htm.
Published by: hot water on 9 January 2013 15:38
Published by: hot water on 9 January 2013 15:46>
So, I added a 2nd function with the arguments to DATE. Then I started to get "too many declarations of is_same exist" error during the passage of time stamps. It makes no sense for me
>
This is because when you pass a TIMESTAMP Oracle cannot determine whether to implicitly convert to VARCHAR2 and use your first function or implicitly convert to DATE and use your second function. Where the "too many declarations" error exist.
>
, even if said Oracle documentation you can not do, so I created a 3rd version of the function to manage the TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed that he did not work with TIMESTAMP with time zones.
>
Perhaps due to another error "too many declarations? Because now, there will be THREE possible implicit conversions that might be made.
>
Therefore, the fourth version of the function. Docs of the Oracle say that if your arguments are of the same family, you can't create an overloaded function, but in the example above shows, it's very bad.
>
I think that the documentation, of the family of 'date', is wrong as you suggest. For WHOLE and REAL, the problem is that those are the ANSI data types and are really the same Oracle data type; they are more like "alias" that different data types.See the doc of SQL language
>
ANSI SQL/DS and DB2 data typesThe SQL statements that create tables and clusters allows also ANSI data types and products IBM SQL/DS and DB2 data types. Oracle recognizes the ANSI or IBM data type name that differs from the Oracle database data type name. It converts the data type for the equivalent Oracle data type, stores the Oracle data type under the name of the column data type and stores the data in the column in the data type Oracle based on the conversions listed in the following tables.
INTEGER NUMBER
INT
SMALLINT
NUMBER (38)FLOAT (Note b)
DOUBLE-PRECISION (Note c)
REAL (Note d)
FLOAT (126)FLOAT (126)
FLOAT (63)
-
PDM Viewer do not display data with time stamp
Need help with the timestamp of the data in a PDM file generated by the DAQ Assistant.
When I use the PDM Viewer, with x the value absolute time scale, the date starts in 1903. If I use Excel to look at the file that the start time is correct (i.e. 2013).
Bo_Xie, I simplified my VI and now able to display the correct time stamp. Thanks for your time!
-
record in the table with time stamp
Hello
I use Forms6i and db 10g
I have a datablock in my form, which is based on a table hlp_user_master.
The table has fields crt_on, upd_on. who is date type.
Now I'm set sysdate to these areas, before saving it to the database.
He is now in the database, just.
But I want it to be like date with the time.
My Manager said to set the data type of the fields in the form.
I did the DateTime data type, in the form
but still in the database, just when saving
Help, pleaseHello
If you have changed in the form of the datetime data type and the mask format as I said in my previous post. Then, the database will have time also after saving it. I guess that you are checking in via SQL * more. If so, try the following query.SELECT TO_CHAR(DATE_COLUMN,'DD-MON-YY HH24:MI:SS'); FROM TABLE_NAME;
If the form is stalling as it will display then with time.
-Clément
-
BEFORE the UPDATE of relaxation with time stamp does not work as expected
We have a scenario where I check update operations on a table.
I created a before update TRIGGER, so that every time he goes an update on the main table statement, one before the image of the lines is captured in the table of audit with timestamp.
Since it is before updating, ideally the audit table timestamp (TRG_INS_TMST) should be less main table timestamp (IBMSNAP_LOGMARKER) VALUE, I mean TRIGGER should happen before the update.
(I could understand in a way that the UPDATE statement is formulated with SYSTIMESTAMP earlier before the TRIGGER is evaluated and so UPDATE is to have a time stamp prior to TRIGGER, but this isn't what we wanted. We want PRIOR update)
'Table' IBM_SNAPOPERATION IBM_SNAPLOGMARKER ---- ----------------- ------------------------------- T1 U 13-OCT-15 03.07.01.775236 AM <<---------- This is the main table, This should have the latest timestamp T2 I 13-OCT-15 03.07.01.775953 AM
Here is my test case.
DELETE FROM TEST_TRIGGER_1; DELETE FROM TEST_TRIGGER_2; SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1 UNION SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2; INSERT INTO TEST_TRIGGER_1 (ID,ibm_snapoperation, ibm_snaplogmarker) VALUES (1, 'I', SYSTIMESTAMP); COMMIT; SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1 UNION SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2; UPDATE TEST_TRIGGER_1 SET IBM_SNAPOPERATION = 'U', ibm_snaplogmarker = SYSTIMESTAMP; COMMIT; SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1 UNION SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
Def trigger:
CREATE OR REPLACE TRIGGER etl_dbo.TEST_TRIGGER_1_TRG BEFORE UPDATE OF IBM_SNAPOPERATION ON TEST_TRIGGER_1 REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW WHEN ( NEW.IBM_SNAPOPERATION= 'U' ) DECLARE V_SQLCODE VARCHAR2(3000); --PRAGMA AUTONOMOUS_TRANSACTION; BEGIN INSERT INTO etl_dbo.TEST_TRIGGER_2 (ID, IBM_SNAPOPERATION, IBM_SNAPLOGMARKER, TRG_INS_TMST ) VALUES (:OLD.ID,:OLD.IBM_SNAPOPERATION,:OLD.IBM_SNAPLOGMARKER,SYSTIMESTAMP) ; --COMMIT; END; /
Output is something like this
1 row deleted. 1 row deleted. no rows selected. 1 row created. Commit complete. 'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER ---- ----------------- ------------------------------- T1 I 13-OCT-15 03.07.00.927546 AM 1 row selected. 1 row updated. Commit complete. 'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER ---- ----------------- ------------------------------- T1 U 13-OCT-15 03.07.01.775236 AM <<---------- This is the main table, This should have the latest timestamp T2 I 13-OCT-15 03.07.01.775953 AM 2 rows selected.
But for some reason, even after the creation of the 'AFTER' trigger for update, it works as expected. Sense - the main table is not having the last timestamp given
It's OKAY - I told you in my reply earlier. Reread my answer.
could understand somehow that the UPDATE statement is made with earlier
SYSTIMESTAMP until the TRIGGER is assessed and updated so is to have
time stamp prior to the trigger, but this isn't what we wanted. We want to
BEFORE the update)
As I told you before that your UPDATE statement occurs BEFORE the trigger is activated.
Despite what the other speakers have said, it makes NO DIFFERENCE if you use a BEFORE UPDATE or an AFTER UPDATE trigger. Your UPDATE statement runs ALWAYS BEFORE the trigger.
HE has TO - it's your update processing statement that causes the trigger to fire.
Your update statement includes SYSTIMESTAMP. If during the processing of your return to update the value of SYSTIMESTAMP "at this exact time" is captured.
Then your trigger is activated and starts to run. ANY reference to SYSTIMESTAMP that you use in your trigger cannot be earlier than the value of until the trigger was executed. It's IMPOSSIBLE.
The trigger can use the SAME value by referencing: NEW and the column name you store the value. Or the trigger can get its own value that your code is doing.
But the SYSTIMESTAMP value in the trigger will NEVER earlier than the value in your query.
And none of these values can actually be used to tell when the changes are really ENGAGED since the trigger does not work and CAN NOT, to know when, or if, a validation occurs.
Reread my first answer - he explains all this.
-
file lvm recorded with time stamp graphic display
Hello
I have headaches display my data with correct timestamp. There are so many methods to save the data. Here, I decided to save it in a text delimited as lvm. a screenshot of my vi segment is attached. I want to use this way rather than other methods is the flexibility it offers. I'll be able to add more data to store that I develop the vi. (So I'm storing data of the DAQ assistant and my calculated values.) I've attached a screenshot of the file I also read.
I would use another vi to open this file and it draw a chart/graph to show a trend of the acquired data. Can someone pls Advisor mid on which is a better way for mi to do?
Thank you very much!
POH
Hi Malou,
Sorry for the late reply, I was rushing to complete my project, has not been able to answer.
Yes, I managed to solve it. In any case, I've used this high rate in the acquisition of data wizard is to allow the acquisition of continuous mode & use a software filter instead of filter material. However writes to the folder this way - write string in .lvm, max is 10 samples/s unless I have use tdm (I'll then everything in the newspaper).
I was not able to display the correct timestamp was due to the fact that I have does not add to the timestamp of the start time for the timestamp in waveform display. I won't be able to go down to my lab, & my machine have no LabVIEW, so what I do is to extract some parts of my report to share.
For the part that I used to display the graph (can be seen on the attachment), I deleted the 1st column, which is the time stamp (for display of the spreadsheet), but extract the 1st element - convert timestamp DBL it when I start recording in the DAQ vi (written with the header).
This excerpt (which could be considered as a group of numbers in the file lvm) and converted to the type timestamp and wired for generating waveform block, providing the start time of the wave.
Then I replace the use of the chart with graphic, graphic is suitable for data acquired and graphic tracing is better for the time of execution of the data display. now it seems to work fine for me, except for the load time may take some time for larger files.
Thank you for your participation in this thread!
See you soon!
POH
-
Hi all I'm trying to frind the max of the timestamp when the folllowing gives me an error while storing itself, please share your thoughts
DECLARE
TYPE type_timestamp IS TABLE OF timestamp;
list_timestamp type_timestamp;
BEGIN
-Set up some test values:
BECAUSE me in 1... 9 LOOP
list_timestamp.extend;
list_timestamp (i): = TO_DATE (TRUNC (DBMS_RANDOM. VALUE (2452641,
2452641 + 364)).
'J');
DBMS_OUTPUT. Put_line(i ||) ': ' || list_timestamp (i));
END LOOP;
END;
/Says error "refers to an uninitialized collection" so, of course, you must initialize the collection before you use...
How to initialize?
DECLARE TYPE type_timestamp IS TABLE OF timestamp; list_timestamp type_timestamp := type_timestamp(); --- just use the default constructor BEGIN ...
HTH
Published by: Roger on January 19, 2012 02:53
-
Creating the table with time stamp
I need to create the table with the data inside buffer
Can you help me pls
If it works today,
create the table test_04NOV2010 in select * from product where product_code = '101'
If executed tmrw,
create the table test_05NOV2010 in select * from product where product_code = '101'
can is it you pls let me know how to use it in PL SQLdeclare v_date varchar2(25); v_sql varchar2(20); begin select to_char(sysdate,'DDMONYYYY') into v_date from dual; v_sql := ' create table ' ||TEST||'_'||'v_date'|| ' as ' ' select * from Product where product_code = '101' EXECUTE IMMEDIATE v_sql; end;
Can you help me pls
Thank you very muchdeclare v_date varchar2(25); v_sql varchar2(2000); --Noted this. this was also small. begin select to_char(sysdate,'DDMONYYYY') into v_date from dual; v_sql := ' create table TEST_'||v_date|| ' as select * from Product where product_code = ''101'''; EXECUTE IMMEDIATE v_sql; end;
You can use the Q operator also.
DECLARE v_date varchar2(25); v_sql varchar2(2000); BEGIN select to_char(sysdate,'DDMONYYYY') into v_date from dual; v_sql := ' create table TEST_'||v_date|| Q'[ as select * from Product where product_code = '101']'; EXECUTE IMMEDIATE v_sql; END;
Published by: mohamed on November 4, 2010 05:32
-
Save data to file, and Time Stamp String
Hello
My vi use producer/consumer architecture, and when I changed to a regular while loop for two loops he stops writing the data in the file at the end of execution. It creates two files (one for data) and one for the timestamp. Could it be because that the stop on the loop of consumer control (where I save the data) is a local variable (the control itself is on the producer of the while loop)?
Thank you
I'm sorry, that was my mistake. I don't connect the wires in the wrong case structure.
-
-Command FTP put with time stamp
Hello
I need to send a file to a 3rd party (Bank) and include a timestamp in the file. The Bank suggests that I include the timestamp in the command 'put '. I know only to do with the unix commands. Here is an example of the code I have so far:
The timestamp format must be - HHMMSS (hour, minutes, seconds)ftp ftp.bank.com <username entered here> <password entered here> cd inbound binary put <timestamp - what syntax goes here?>.myfile.txt quit
Thanks for your time and your input!Interplay says:
Hello
I need to send a file to a 3rd party (Bank) and include a timestamp in the file. The Bank suggests that I include the timestamp in the command 'put '. I know only to do with the unix commands. Here is an example of the code I have so far:ftp ftp.bank.com
cd inbound binary put .myfile.txt quit The timestamp format must be - HHMMSS (hour, minutes, seconds)
Thanks for your time and your input!
I see no where that has nothing to do with oracle, so try to use oracle functions as TO_CHAR is doomed to failure.
I've never seen ftp actually rename a file on the fly (named "MyFile" on the sender system and "votre_fichier" on the receiving system
steven'sgonna > touch myfile
steven'sgonna > he's
Total 0
-rw-rw-rw-1 steven'sgonna dpi 0 Nov 13 12:29 myfile
steven'sgonna > mv myfile ' date + %m _myfile %se hour
steven'sgonna > he's
Total 0
-rw-rw-rw-1 steven'sgonna dpi 0 Nov 13 12:29 123124_myfileso, you could do something like this:
NEWFILE ='date + %m _myfile %se hour
CP myfile $NEWFILE PeiFTP<>
Incoming CD
put $NEWFILE
! EXPRESSIONS OF FOLKLORE! -
Hello gurus
Just a little annoyingly Yes, problem here that has pulling me on my eyebrows...
ALTER session set nls_date_format = "FM MONTH DD YYYY HH24:mi:SS";
Select username, timestamp, userhost, action_name to_char logoff_time in dba_audit_trail;
APPS *********** May 4, 2014 0:3:5 CLOSURE OF SESSION MAY 4, 2014 0:3:5 As you can see, the timestamp 24HH indicates 0:3:5, instead of the planned 00:03:05
Did anyone see my mistake in this? I could have been watching this for too long!
Thanks in advance,
11.2.04
RHEL 5.5
Or, if you need FM for the MONTH, disable it before the portion of time (note that NOVEMBER is still left stuffed and you get your zeros for the part time):
ORA1@XE > alter session set nls_date_format = "FM MONTH DD YYYY FMHH24:mi:SS";
Modified session.
ORA1@XE > select sysdate double
2.
SYSDATE
---------------------------
NOVEMBER 6, 2015 09:36:56
Maybe you are looking for
-
Slow Mac Pro after that reset complete and SSD upgrade
Hi all A few weeks ago, my Mac (mid-2012) began to slow down, finally I tok inside the store for some advice. The guy told me to run check disk, repair disk etc, I did, but it did not help. I then decided to collect the files that I wanted to keep an
-
Photosmart 7520: Linking a Photosmart 7520 to MacOS 10.12 Sierra
I'm trying to be software and connect my Photosmart 7520 to my new Imac running OS Sierra 10.12) but I don't get a messagesaying no software or drivers are available. Is this fair? Do I have to get a new printer? Quite disappointed if I do like it
-
Qosmio G40 - partition of NVCache showed in my computer
So now my Qosmio G40. Some how when I use recovery NVCache Volume is Visible. On that, there the Readyboost file.It is (500 MB Fat32 partition), and is only 5 MB of free space Ever since that it began to appear I get the disk cleanup ball telling me
-
original title: I continue to receive updates for Windows. Updates begin to install fail, updates to day is awarded automatically installation and then the cycle starts again. This process takes about an hour, during which I can't use the laptop.
-
Start Microsoft Word 2007 screens
Is it possible to create a splash screen that appears when you open the document. I know it's possible with Excel but can't see how it's done in Word (if possible) I am using office 2007 Thank youTony