The data is plotted against acquired timestamp

Hello

I followed the answer on "How Can I plot my data gains Versus A Timestamp in LabVIEW?", but am still unable to plot my data acquired against its corresponding timestamp. There is a problem with data types that I don't understand. Can you please help?

Hello youness

I wrote you to code samples that you can you to change the values of the wave time stamp. Originally you where trying to build a cluster, which is an object that contains independent variables.

I hope this is useful

Philippe

Tags: NI Hardware

Similar Questions

  • 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.
  • How the date can be filled with timestamp in dynamic sql

    Hi all

    Below we have sql

    v_stmt: = ' MERGE IN MTH_EQUIPMENTS_EXT_B ED

    WITH THE HELP OF)

    SELECT TAG_DATA,

    EQUIPMENT_FK_KEY,

    WORKORDER_FK_KEY,

    SEGMENT_FK_KEY,

    SHIFT_WORKDAY_FK_KEY,

    HOUR_FK_KEY,

    ITEM_FK_KEY,

    READ_TIME,

    ATTR_GROUP_ID,

    RECIPE_NUM,

    RECIPE_VERSION,

    NVL (FND_GLOBAL. User_Id,-1) l_updated_by,.

    NVL (FND_GLOBAL. Login_Id,-1) l_last_update_login

    OF MTH_TAG_READINGS_T_STG

    WHERE DB_COL = ' | " ' || v_colname | " ' ||') TS

    WE (';)

    v_stmt: = v_stmt | "ED. EQUIPMENT_PK_KEY = TS. EQUIPMENT_FK_KEY AND

    ED. READ_TIME = TS. READ_TIME AND

    ED. ATTR_GROUP_ID = TS. ATTR_GROUP_ID)

    WHEN MATCHED THEN

    UPDATE

    GAME ED.'. v_colname |' = TS. TAG_DATA,

    ED. LAST_UPDATED_BY = 1, ";

    v_stmt: = v_stmt | "ED. LAST_UPDATE_LOGIN = TS.l_last_update_login

    WHEN NOT MATCHED THEN

    INSERT ('| v_colname |', EXTENSION_ID, EQUIPMENT_PK_KEY, WORKORDER_FK_KEY, SEGMENT_FK_KEY, SHIFT_WORKDAY_FK_KEY, HOUR_FK_KEY, ITEM_FK_KEY, READ_TIME, ATTR_GROUP_ID, LAST_UPDATE_DATE, LAST_UPDATED_BY,';)

    v_stmt: =.

    v_stmt | ("LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE, RECIPE_NUM, RECIPE_VERSION)

    VALUES (TS. TAG_DATA, EGO_EXTFWK_S.NEXTVAL, TS. EQUIPMENT_FK_KEY, TS. WORKORDER_FK_KEY, TS. SEGMENT_FK_KEY, TS. SHIFT_WORKDAY_FK_KEY, TS. HOUR_FK_KEY, TS. ITEM_FK_KEY, TS. READ_TIME,';

    v_stmt: = v_stmt | "TS. ATTR_GROUP_ID,' | '''|| SYSDATE | "'| ', 1, TS.l_last_update_login, TS.l_updated_by,'|"' | SYSDATE | " ' ||', TS. RECIPE_NUM, TS. RECIPE_VERSION)';

    EXECUTE IMMEDIATE v_stmt;

    After you run the above SQL last date of update in MTH_EQUIPMENST_EXT_B is filled with sysdate but timestamp is not its always 00:00:00. Can we have timestamp also populated through dynamic sql in the last update date

    Kind regards

    Amrit

    Values to hardcode in the dynamic SQL - never use bind variables:

    v_stmt: = ' MERGE IN MTH_EQUIPMENTS_EXT_B ED

    WITH THE HELP OF)

    SELECT TAG_DATA,

    EQUIPMENT_FK_KEY,

    WORKORDER_FK_KEY,

    SEGMENT_FK_KEY,

    SHIFT_WORKDAY_FK_KEY,

    HOUR_FK_KEY,

    ITEM_FK_KEY,

    READ_TIME,

    ATTR_GROUP_ID,

    RECIPE_NUM,

    RECIPE_VERSION,

    NVL (FND_GLOBAL. User_Id,-1) l_updated_by,.

    NVL (FND_GLOBAL. Login_Id,-1) l_last_update_login

    OF MTH_TAG_READINGS_T_STG

    WHERE DB_COL =: 1) TS

    WE (';)

    v_stmt: = v_stmt | "ED. EQUIPMENT_PK_KEY = TS. EQUIPMENT_FK_KEY AND

    ED. READ_TIME = TS. READ_TIME AND

    ED. ATTR_GROUP_ID = TS. ATTR_GROUP_ID)

    WHEN MATCHED THEN

    UPDATE

    GAME ED.'. v_colname |' = TS. TAG_DATA,

    ED. LAST_UPDATED_BY = 1, ";

    v_stmt: = v_stmt | "ED. LAST_UPDATE_LOGIN = TS.l_last_update_login

    WHEN NOT MATCHED THEN

    INSERT ('| v_colname |', EXTENSION_ID, EQUIPMENT_PK_KEY, WORKORDER_FK_KEY, SEGMENT_FK_KEY, SHIFT_WORKDAY_FK_KEY, HOUR_FK_KEY, ITEM_FK_KEY, READ_TIME, ATTR_GROUP_ID, LAST_UPDATE_DATE, LAST_UPDATED_BY,';)

    v_stmt: =.

    v_stmt | ("LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE, RECIPE_NUM, RECIPE_VERSION)

    VALUES (TS. TAG_DATA, EGO_EXTFWK_S.NEXTVAL, TS. EQUIPMENT_FK_KEY, TS. WORKORDER_FK_KEY, TS. SEGMENT_FK_KEY, TS. SHIFT_WORKDAY_FK_KEY, TS. HOUR_FK_KEY, TS. ITEM_FK_KEY, TS. READ_TIME,';

    v_stmt: = v_stmt | "TS. ATTR_GROUP_ID,: 2, 1, TS.l_last_update_login, TS.l_updated_by,: 3, TS. RECIPE_NUM, TS. RECIPE_VERSION)';

    V_stmt EXECUTE IMMEDIATE

    With the HELP of v_colname,.

    SYSDATE,

    SYSDATE;

    SY.

  • Filter a report to take the date of closing days for the current month

    Hello.

    I need to create a filter on to only opportunities extraction that are expected to close for the month that we are in a report. By that I don't want to not just Augustus, but regardless of the current month is that the report is run

    The date 'Should close' is a timestamp field in our OnDemand.

    Thank you!

    Hi, you can create a SQL filter as below

    YEAR ("Closing Date". Date) = VALUEOF (NQ_SESSION. CURRENT_YEAR) AND MONTH (the "Closing Date". Date) = VALUEOF (NQ_SESSION. CURRENT_MONTH)

    Hope this works

    -John CRMIT

  • data is plotted on the graph of absolute time delay

    Hi all

    I'm plot data on a graph of absolute time and I find 2 hours difference between the data displayed by the debugger (left) and data on the graph (X - SCALE AUTO).

    The time saved in ptTime, was acquired by using the function 'time' and the PC has Amsterdam, Berlin, Rome as time zone.

    Here, under a screen shot that implemented the code, the debugger and the result.

    The debugger is also showing the version in good time!

    Can anyone suggest me how to process data in order to have the same result on the debugger window and on the graph?

    A big thank you and best regards

    Sergio

    Question: in the CVI debugger show you, the time_t variable appears as a double, while its definition in 'time.h' is ' typedef unsigned int time_t; "so I am a little confused.

    Response: I did something nonsense in this screenshot: I took a variable of type double (it happened to be a UIDateTime, actually) and configured the debugger to format as if it were a time_t variable. The formatted values that the debugger shows me, therefore, are not valid, of course. But I just wanted to show the time_t format, because it corresponds to what you have in your screenshot, and I was already suspicious that you use time_t variable to pass to the curve.

    Furthermore, if you are not familiar with the way in which you can change the formatting in the debugger, this is how you do it:

    Usually, the debugger can automatically pick the best format to use, based on the data type of the variable (for example, with variables of time_t). But in this case, what the debugger calls a variable "Date Time" is all just a double. The debugger cannot assume that you want to display all your double variables as a 'Date Time', and so you need to replace yourself.

    Question: I was not able to find UIDateTime using the ICB type, this is the value returned by GetCurrentDateTime(double *)?

    Response: There is really no such thing as a type of data "UIDateTime". I've been a bit remiss with my terminology. Unfortunately, when you're dealing with dates and hours, there are several possible representations of these quantities in the world of C, and it is important that you use the correct the intended variant you use for. In this case, the chart controls expect that you pass the time format used by the library of user interface, that is, one that is returned by the GetCurrentDateTime or MakeDateTime functions. The underlying C for this representation of the time data type is simply twice, and so it is not a good name to refer to it. That is why I used UIDateTime, but I should have been clearer than that.

    Question: Y at - it a function to convert time_t values UIDateTime values

    Response: Yes. You can use the functions of the programmer's Toolbox following two, in exactly this order:

    CVIAbsoluteTimeFromCVIANSITime (time_t ansiTime, CVIAbsoluteTime * absTime);

    CVIAbsoluteTimeToCVIUILTime (CVIAbsoluteTime absTime, double * uilTime);

  • I'm reading the data (speed rate and flow) of a table and it plot in a graph.

    I'm reading the data (speed rate and flow) of a table and it plot in a graph. I need to draw two values of l/min (speed) to the same speed. How can I do using a loop for?

    There is no need actually to use a loop FOR this. And using a graphic waveform isn't the type of field for this, for a waveform you a (Start), the dT T0 (greatness not) and table D (Data), this isn't what you want unless you know precisely the measure will take place according to an orderly disposal, you'd want a xy chart so that you can trace the measures where they occur in the axes X and Y of preference.

  • Display or process the data acquired by NI 5732

    Hi all

    I have a scanner high-speed NI 5732 works with NI SMU 7962R. I need to acquire data at high frequency and the process/view it online if possible. I think the problem is that the while loop in the high acceptance of the VI page is too slow to read the data sent by the FPGA. I can see clealy waveform when the input frequency is low, but when the frequency is high the ugly looks of waveform. Is there a way I can see the waveform clealy high frequency in real time? Or I can use somethig like a FIFO to store data and view it later?

    Thank you

    Tong

    Hi Matthew,

    Thank you for your answer and I've already found the solution by myself.

    I did the FPGA and host screws by myself according to the example of "Getting started". I use the internal clock of 80 MHz in the FPGA VI. I'm trying to use NI 5732 to acquire the signal with a frequency of several MHz, so I think that the acquisition rate is fast enough.

    I solved the problem by using a target-to-host FIFO. The maximum size of the FIFO seemed to be 32767, so I put this value. Also, host VI, I put the number of items to be read from the FIFO to 10000. So I can view the MHz signal at the host VI.

    Best,

    Tong

  • 2 non-equidistant curves of XY to plot against the other

    Hello, I have a few points of recorded data from various sensors XY. Values of X are always the time stamp and the values are the values of the different sensor. Almost all XY curves start and finish at the same time (most less than a few seconds). In addition, the curves are not equidistant, I mean that the data points are not at the same time stamps. In addition, some of them have been registered with 60 sec, others with sampling frequency of 1 sec (etc...). In fact, this is why I use a graph XY to present these curves together.

    I would like to examine certain correlations, so I want to trace two arbitrary XY curve againts each other (intrigues both their there values as a new curve of graph XY). This procedure is skipped when we equidistant curves, but here the data points are not in the same time positions, and also the number of them is not equal.

    How would you rate this conspiracy? I think about it, I could take the stamp of the first and last time in the two curves X values, and I would generate a table of new equidistant time stamp to cover the entire range (with a number of points which makes sense). After that, I have to do on the two original XY curves interpolation that transforms the original of the X values and be placeable on the new X positions.

    What would be the shortest way to do this in LabView? Or maybe someone has a simpler idea?

    Thanks for the tips!

    Edit: I guess the '1 D VI interpolate' is just what I need?

    Yes, so this is implemented, pls remove me wonder is trivial, I see now...

    All you need is to create a new ramp time (e.g. linear) that covers the two time slots at a sufficient resolution, then interpolate the two sets of data against it.

    Here is a quick sketch.

    Alternatively, you could also add the two original paintings of the time, sort and remove all duplicates to generate the new ramp time.

  • How do switch you between multiple channels to indicate which channel to acquire the data from?

    I'm trying to builld a VI where I can have an option to enable or DISABLE multiple channels depending on the modules plugged into the chassis and then acquires the data of the channels which are turned on and where other acquisition parameters do not change. Is there any specific/switch where can I do this? Please answer as soon as possible. Its quite urgent. Thank you

    You use DAQmx?  To change the assignment of the data acquisition channels, you must close the currently open session and then create a new session with the new channel definition.  So the order of execution:

    Create task or virtual channel - read - clear task of triggering and synchronization of the configuration - set new channel list and to create a task - read - clear task, etc...

  • Can I plot the data in a graphical table of references?

    I have a request, when the customer asked 12 plots on a single screen.  These plots data in a table.  It would save me a lot of time if I could make a table of controls and wire then the data that their using a structure.  I tried to do this with an array of references to my maps, but it doesn't seem to be a way to add data to a chart by using a reference.  This seems a little strange because you can do so many things by using a reference, I guess that you can use to add data to the chart.  I feel that I checked the list of properties and methods well enough, but maybe I've misunderstood something.

    If you add new values for parcels (ie. you have a table of 12 items for 12 cards), you could do that.  I use the invoke with chart labels strategically selected node.  If your labels are not strategically chosen, simply create an array with their respective labels.

  • 2014 CC Dreamweaver takes conditional text? Specifically, I can put all my tech in a location data and the output of the subsets of data (doc Admin against doc user versus doc Marketing) based on tags or other methods?

    CC of Dreamweaver takes conditional text? Specifically, can I put all of my tech data in a doc of DW and the output of the subsets of data (doc Admin against doc user versus doc Marketing) based on tags or other methods?

    I don't have any front-end text editor (such as FrameMaker) or I'd do it here. Dreamweaver can do this without complex workarounds or procedures not supported?

    Thank you very much.

    Mike the Newbie

    OK, that's fine. DW not conditionalization and I'll see if I can get what I need to do or find another approach.

    Thanks a lot for your help.

    Michael

  • Run CKM against the model of all the data of a package

    Hello

    is it possible to perform a check of the commands against a data package or interface model? This would be similar to ODI Studio a feature that allows, with the right button on a data model, and then on control and verification. This verifies all stores data in the data model and possibly its submodels.

    Ideally, I would check the entire data model in the batch, but only certain types of constraints - references that contain references to complex user.

    We run ODI 11.1.1.5 with sources and targets in Oracle 11 g database 1 material.

    Thank you
    Petr

    Hi Peter,

    Create a package.
    Drag and drop your model in the package.
    Set the type as model checking.

    Thank you
    Fati

  • 11g you can store Timestamp in the Date field?

    In our 9i database, we store a timestamp in a Date field - this is not correct, I know, but it's a legacy issue that we have not solved at the present time.

    We have updated to 11g and now insert a model date Timestamp is successful BUT the time part gets cut off then when search you again you get only the data of the DD-MM-YYYY.

    It is a problem for us, and I would like to know if its possible to set up a Date on the ground in 11G to store data of hh.mm.ss.ssss DD-MM-YYYY entirely.

    Any constructive thoughts appreciated :)

    In our 9i database, we store a timestamp in a Date field... We have upgraded to 11g

    There is no change in the specification of the DATE data type that the Oracle RDBMS is concerned.
    What you have managed to insert and to persist in a DATE previously in 9i should be the same in 11g (all other things being equal).

    We have updated to 11g and now insert a model date Timestamp is successful, BUT the time part gets ébranchée off then when search you again

    How do you recovered it?
    Have you checked to go using a format full explicit TO_CHAR that the time element is actually missing?
    Verified that this is not a conversion implied and/or associated NLS_DATE_FORMAT error?
    And you can always check with the DUMP function which is really persistent.

    Once the foregoing double-check, then the question is what is inserting this time stamp?
    What application? What does say? The pilots have changed? etc.etc
    For example, at one point, I remember that changed how jdbc drivers dates with times must be mapped to the types of data Oracle, i.e. of something as a java.sql.date to java.sql.timestamp. But it is rather a distant memory.

  • How to set the Date() timestamp to midnight?

    Hi guys,.

    I'm probably completely brain-break it but that's... I need to pass a date range start date and end in my query... The loading of the page, it is automatically set to the current date... I am by default

    var startDate:Date = new Date();

    var endDate:Date = new Date();

    This puts in place together with the date current time... No biggie... but since I need all records for the day, I need the timestamps on the two buttons... the startDate set to 00:00:00 and the endDate updated 11:59:59.

    But how the hell do I do?  I can't just add both because a user can connect every time that... I tried brute force, setting the time as:

    endDate.hours = 11;

    endDate.minutes = 59;

    .. without luck.  Any ideas would be greatly appreciated!

    Thank you

    Adrian

    use endDate.setHours (11,59,00,00000);

    Kind regards

    Ranga

  • Conversion of a data type to the data type Timestamp Date equivalent

    I'm trying to use the date of update the son page to track sales phase changes that occur each day associated with a campaign. Reporting requirements are to break the daily accomplishments of the users each day from the previous week. I can't find any other date field which provides information on when a sales stage has changed.

    I've searched high and low and ordered Mr. Lairson (sp?) book, but can't wait until I get to solve my problem.

    Can someone advise, very explicitly since I was a novice, on exactly how to type such a conversion?

    I don't know if I understand your query exactly, however if you are looking to convert a timestamp value (i.e. Date of change) in a short date format, then you can use: -

    CAST (timestamp AS DATE)

    for example CAST (lead. (' "Last modified" DATE)

    I hope this helps.
    Kind regards
    Cameron

    Published by: Cameron McGrath on March 6, 2009 02:29

Maybe you are looking for

  • Application of WiFi for password AND username but other devices just ask password

    Hi, recently, a router, I usually use got taken by my father but the new router asks a username when there isn't one. I tried to go into the details of the router manually by using the feature of 'Other' in the Wifi settings and still cannot open a s

  • WinXP service print spooler does not

    I am trying to reinstall hp 5580 all-in-one printer.  installation stops and the message: not running the print spooler service.

  • SanDisk Extreme 8 GB does not not in UDMA

    HelloI bought a Sandisk card CF Extreme (SDCFX - 008G - X 46, BI100912916B) today and seems that it does not work in UDMA mode. I can read/write it max 9, 5 MB/s in my card reader (and this card reader can read/write 18 MB/sec my Extreme III SDHC car

  • 6700 premium wireless when you sleep for a while doesn't wake up.

    OfficeJet 6700 Premium works wireless.  After he goes to sleep for a while, he doesn't wake up and messages telling me, it's not connected.  I turn on the printer to wake her up, and then turn off and turn it back on and all is well.   If I just turn

  • time to elapse in a call

    I know it is a simple solution, but can't for the life of find me the setting. Look for the setting to allow the time elapse in a call on the MXP, EX and C Series codecs. Will appear in the lower left corner during a call. Any help would be appreciat