record channel times of order data NI_DataType

I'm trying to replicate some features of selection of the control Data Logging property in the VeriStand workspace in a Labview application (I wish I could get just the VI for control of the workspace).  In the control of the registration of the properties-> channel category data the time channel can be selected.  When I select absolute time he records the system path = 'targets, controller, channels, Absolute System Time. "  But I have one property TDMS NI_DataType = 68.  If I manually select the channel (add channels) we obtain a = 10 NI_DataType.  The difference seems to be that the NI_DataType = 68 has the well formatted time (m/d/Y/min) while the NI_DataType = 10 at a time in a large number that represents the number of seconds.  The NI_DataType is read-only.  How can I get the formatting nice NI_DataType = 68 to be registered like that?  This post is treated?  If so how to do that?

Thank you!

I have found that the Group of channels TDMS (NI_VS Data logging API.lvlib) type def that gets wired for the new Data Logging Specification.vi has a def of time type of the channels Options which allow channels different time to be configured and named.

Tags: NI Products

Similar Questions

  • Group records with time

    Hi all

    This is our requirement.

    We must combine records with time.

    for example: period = 3
    TABLE: XX_SALES
    ---------------------------------------------
    XDATE XQTY
    ---------------------------------------------
    10 5/1/2012
    20 2/5/2012
    3/5/2012 30
    4/5/2012 60
    12 2012/5/7
    8/5/2012 23
    45 8/5/2012
    100 12/5 / 2012
    5/2012/13 55
    5/2012/15 99

    == >
    ---------------------------------------------
    XDATE XQTY
    ---------------------------------------------
    1/5/2012 10-> 5/1/2012 Group (5/1/2012 ~ 3/5/2012)
    2/5/2012 20-> 5/1/2012 Group (5/1/2012 ~ 3/5/2012)
    3/5/2012 30-> 5/1/2012 Group (5/1/2012 ~ 3/5/2012)
    4/5/2012 60-> Group 5/2012/4 (4/5/2012 ~ 2012/5/6) *.
    7/5/2012 12-> Group 5/2012/7 (5/7/2012 ~ 9/5/2012) *.
    8/5/2012 23-> Group 5/2012/7 (5/7/2012 ~ 9/5/2012) *.
    8/5/2012 45-> Group 5/2012/7 (5/7/2012 ~ 9/5/2012) *.
    5/2012/12 100-> Group 5/12/2012 (2012/5/12 ~ 14/5/2012) *.
    13/5/2012 55-> Group 5/12/2012 (2012/5/12 ~ 14/5/2012) *.
    5/15/2012 99-> Group 5/15/2012 (15/5/2012 ~ 5/17/2012) *.

    After amount to combine with period = 3, the result will be
    ---------------------------------------------
    XDATE_G XQTY_G
    ---------------------------------------------
    60 1/5/2012
    4/5/2012 60
    2012/5/7 80
    12/5/2012 155
    5/2012/15 99


    Here's the example script
     
    create table XX_SALES(XDATE DATE, XQTY Number);
    insert into XX_SALES VALUES(to_date('20120501','YYYYMMDD'),10);
    insert into XX_SALES VALUES(to_date('20120502','YYYYMMDD'),20);
    insert into XX_SALES VALUES(to_date('20120503','YYYYMMDD'),30);
    insert into XX_SALES VALUES(to_date('20120504','YYYYMMDD'),60);
    insert into XX_SALES VALUES(to_date('20120507','YYYYMMDD'),12);
    insert into XX_SALES VALUES(to_date('20120508','YYYYMMDD'),23);
    insert into XX_SALES VALUES(to_date('20120508','YYYYMMDD'),45);
    insert into XX_SALES VALUES(to_date('20120512','YYYYMMDD'),100);
    insert into XX_SALES VALUES(to_date('20120513','YYYYMMDD'),55);
    insert into XX_SALES VALUES(to_date('20120515','YYYYMMDD'),99);
     
    We can solve this problem by using the loop now:
    to find the XDATE_G and it's rank in the loop and the XQTY in the range of the sum.
    DECLARE
      V_DATE_FROM DATE := NULL;
      V_DATE_TO   DATE := NULL;
      V_QTY_SUM   NUMBER := 0;
      CURSOR CUR_DATE IS
        SELECT DISTINCT XDATE FROM XX_SALES ORDER BY XDATE;
    BEGIN
      FOR REC IN CUR_DATE LOOP
        IF V_DATE_TO IS NULL OR REC.XDATE > V_DATE_TO THEN
          V_DATE_FROM := REC.XDATE;
          V_DATE_TO   := REC.XDATE + 3 - 1;
          SELECT SUM(XQTY)
            INTO V_QTY_SUM
            FROM XX_SALES
           WHERE XDATE >= V_DATE_FROM
             AND XDATE <= V_DATE_TO;
          DBMS_OUTPUT.PUT_LINE(TO_CHAR(V_DATE_FROM, 'YYYYMMDD') ||
                               '-----qty: ' || TO_CHAR(V_QTY_SUM));
        END IF;
      END LOOP;
    END;
    Is it possible to solve this problem by using analyze sql?


    Thanks in advance,
    Best regards
    Zhxiang

    Published by: zhxiangxie on April 26, 2012 14:41 fixed the grouping expected data

    There was an article about a similar problem in Oracle Magazine recently:

    http://www.Oracle.com/technetwork/issue-archive/2012/12-Mar/o22asktom-1518271.html

    See the section on the 'grouping beaches '. They needed a total cumulative who started once the total reaches a certain amount.

    You need a total cumulative which starts again when the date changes to group and the dates of beginning and end of each group must be determined dynamically.

    This can be done with the analytical functions.

    Here is a solution-based 'code listing 5', the solution MODEL, which is recommended in the article.

    SELECT FIRST_DATE, SUM(XQTY) SUM_XQTY FROM (
      SELECT * FROM xx_sales
      MODEL DIMENSION BY(ROW_NUMBER() OVER(ORDER BY XDATE) RN)
      MEASURES(XDATE, XDATE FIRST_DATE, XQTY)
      RULES(
        FIRST_DATE[RN > 1] =
          CASE WHEN XDATE[CV()] - FIRST_DATE[CV() - 1] >= 3
          THEN xdate[cv()]
          ELSE FIRST_DATE[CV() - 1]
          END
      )
    )
    GROUP BY first_date ORDER BY first_date;
    
    FIRST_DATE            SUM_XQTY
    --------------------- --------
    2012/05/01 00:00:00         60
    2012/05/04 00:00:00         60
    2012/05/07 00:00:00         80
    2012/05/12 00:00:00        155
    2012/05/15 00:00:00         99
    

    If you 9i, there is no function model. In this case, I can give you a solution using START WITH / CONNECT BY that does not work as well.

  • find data between specific times in a date range

    HII all,.
    I'm pretty new in PL/SQL so any help will be greatly appreciated. I'm trying to retrieve data from a set of tables. one of these tables has a field that is a timestamp in the format «dd/mm/yyyy hh24:mi:ss» field asked me to produce data for records that were created between 16:00 and 20:00 between 01/01/2010 and 31/08/2010. I can eat the date of issue, but the question of time is that I'm stuck.

    your help would be appreciated
    SELECT *
    FROM my_table
    WHERE col_date BETWEEN DATE '2010-01-01' AND DATE '2010-09-01'
    AND TO_NUMBER ( TO_CHAR ( col_date, 'HH24MI' )) BETWEEN 1600 AND 2000;
    

    Now something difficult:
    A DATE data type represents a specific time. It's something abstract. There's no format. It is in some cases stored internally, but we know not how (in fact, we know a little). Cannot directly display a DATE value - it is not a text, it is a point in time, it can be established on a calendar and a clock, but not on the screen. DATE FORMAT allows us to tell Oracle how we want it to be converted into a string and displayed. Do we want to day/month/year or year/day/month? Do we want a 24 hour clock 12-hour am/pm or? The same value, the same point in time can be displayed using different channels, produced using different DATE FORMATS. "Friday, September 17, 2010 13:15" is exactly the same point in time as "2010-09-17 13:15" - the only difference is the FORMAT. This allows us to perform several clever tricks with DATE data. Ok?
    (If you do not specify a DATE format, and then there are the values by default for your session and for the database. But the principle remains the same: a point-in-time value is converted to a string using the DATE FORMAT).

  • Registration of decrypted on 42WL863G channels time shift

    I have problems with registration on 42WL863G (at least) a few months of lag.

    When starting a recording of time offset of a satellite channel decrypted (decoded by SMiT Irdeto CAM CI + with card HD ORF) everything seems OK at first.

    But after a few seconds (about 6) recording stops by itself.
    When you press on 2 or 3 seconds are played, and then it's over.

    When you try the same thing with the unencrypted channels, everything is OK (as described in the manual).
    Programmed or a contact of the channels record decrypted also works very well.

    Is there a solution for this problem?

    FW is the newest (... (15).

    It could be a problem with the SMiT Irdeto CAM.
    Would be interesting to check another CAM.
    What do you think?
    You have this problem with all the encrypted channels or only some specific strings are affected?

  • Order date in the monitor of the VSM

    It's quite a long time, we have a problem of order date in the monitor of the VSM.

    Maybe you have ideas of how put the columns in the right order?

    Here is an example where data call are grouped by District:

    1874970.png

    As you can see columns are not in the right order. The curve has the same disease when the data are grouped by weeks, months, etc.

    Any change in the sort parameter does not help.

    I even tried to export the graphic settings, have changed the value of XValues.Order of loNone to loAscending, but it did not help either.

    I have the feeling that the resolution could be a very simple, so I hope even for a short notice of experienced people.

    Gytis

    Hi Gytis,

    The query is constructed dynamically, so it will require a code fix in a future RP.

  • HowTo 'Natural order' data (AS3/Flex)

    Hello

    I have a problem with my flex application. I am the analysis of data from certain Webservice and place it on an ArrayCollection collection.

    No such data are already in the 'natural order' on the server side. But somehow it s not like that in my ArrayCollection collection.

    I have found nothing can´t howto things so 'natural order' within my Flex application or even with ActionScript 3 to all the...

    Thanks for the help!

    So if I understand correctly, while questions of kind is interesting and to solve, the real problem is that, at the time when the data are displayed in the comboBox control, is no longer in the order in which the data in when you browse the data to create the collection?

  • See the time with the date in the cell?

    How do you not see time with the date in a cell? I tried all the settings I can find but without success.

    Using the numbers from version 3.6.2 (2577) - OS: El Cap 10.11.6

    I don't want to see that 12:00:00 AM

    Hi Russ,

    Inspector to format > cell, the parameters as shown below:

    Kind regards

    Barry

  • I can't find a way to sort the records themselves in alphabetical order by name. I speak not in a display mode, but in how they appear when I click on the tab my favorites. Can someone explain to me how to do this.

    I have a lot of issues of brand book with websites contained in each folder. I'm able to sort sites within each folder alphabetically by name, but I can't find a way to sort the records themselves in alphabetical order by name. I speak not in a display mode, but in how they appear when I click on the tab my favorites. Can someone explain to me how to do other than manually by dragging because it is extremely difficult for me, due to the fact that I am with limited movement tetraplegic hand dexterity

    Folders of bookmarks you created are in the folder Menu bookmarks. "Sort" this folder.

    http://KB.mozillazine.org/Sorting_bookmarks_alphabetically

  • How can I display the time of the data stored in a file using labview?

    How can I display the time of the data stored in a file using labview?

    Hi Matt,

    I think that we will need a little more information as to how you capture the data, what data you capture, etc.

    If you capture a waveform, is to extract the time data waveform which includes the t0 and dt values, so you can understand the time stamp of a specific data point as in the image below.

  • How can I get the clips in record full-time instead of the 25seconds (which seems to be set) when using windows DVD maker

    How can I get the clips in record full-time instead of 25 seconds (that they seem to be defined) using windows DVD maker

    Hi LorraineDawson,

    Here's a walkthough troubleshooting on this issue:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-creating-a-DVD-video-using-Windows-DVD-Maker

    hope this helps

    B Eddie

  • shut computer down, restarted my time and the date has changed

    shut computer down, restarted my time and the date has changed.  My date always gose for December 31, 4001.  Goin whats?

    Hello
    Date and time incorrect after restarting is usually the result of a dead of the CMOS battery. You may need to contact the manufacturer of the computer for help on this issue.

  • Cancel disable them button on the screen at the time of order credit check Hold applied

    Hello

    I want to cancel button on the screen at the time of order credit check Hold applied

    Thank you

    Please see the note below

    Book order cancel (https://mosemp.us.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?id=412683.1Doc ID 412683.1) button-click button grayed out in process Message window after

    This applies to your case

  • is com.mslv.oms.automation.AutomationException by updating the order data

    Hello

    I wrote a sample Xquery Automator with external event receiver.

    DECLARE namespace SGD = "urn: com:metasolv:oms:xmlapi:1";

    DECLARE namespace log = "java: org.apache.commons.logging.Log;

    declare namespace automator = "java: oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";

    declare the namespace context = "java: com.mslv.oms.automation.TaskContext";

    " declare osm namespace = ' http://xmlns.Oracle.com/communications/OrderManagement "; "

    declare saxon namespace = " " http://Saxon.SF.NET/ "; "

    " declare namespace xsl = ' http://www.w3.org/1999/XSL/transform ";

    declare the external variable $context;

    declare the external variable $log;

    declare the external variable $automator;

    Let $taskData: = fn:root (.) / CRAMER. Response

    Let $orderId: = $taskData/CRAMERWOID

    Let $jid: = $taskData/CRAMERJOBID

    Let $ordUpdateReqXML: =)

    " < OrderDataUpdate xmlns =" http://www.MetaSolv.com/OMS/OrderDataUpdate/2002/10/25 "> "

    < update path = "/" >

    < job_id > HC < / job_id >

    < / update >

    < / OrderDataUpdate >

    )

    Let $ordUpdateReqXMLStr: saxon =: serialize($ordUpdateReqXML, <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" saxon:indent-spaces="4"/>)

    return)

    Journal: info($log, "### XML Transformed")

    Journal: info ($log, $ordUpdateReqXML),

    Journal: info ($log, "# XML Transformed after serialized"),

    Journal: info ($log, $ordUpdateReqXMLStr),

    Automator:setUpdateOrder($Automator,"true"),

    Context:updateOrderData($context,$ordUpdateReqXMLStr),

    context: completeTaskOnExit ($context, "success")

    )


    but when running it throw exception automation:

    Caused by: java.lang.NullPointerException

    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData (unknown Source)

    NOTE: - in Design Studio Plugin properties - Xquery Automation tab I tried with two control box checked and unchecked data verification options.

    Please guide me what is wrong with my code.

    Let me know if more information needed on this.

    Thank you

    Stack trace

    com.mslv.oms.automation.AutomationException

    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage (unknown Source)

    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.impl.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

    at com.mslv.oms.security.base.ControllerBean.processExternalListenerAutomationMessage (unknown Source)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.__WL_invoke (unknown Source)

    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.processExternalListenerAutomationMessage (unknown Source)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_WLSkel.invoke (unknown Source)

    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)

    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_1036_WLStub.processExternalListenerAutomationMessage (unknown Source)

    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage (unknown Source)

    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

    at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a (unknown Source)

    to com.mslv.oms.automation.plugin.AutomationDispatcherImpl$ 2.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)

    at weblogic.ejb.container.internal.MDListener.run(MDListener.java:902)

    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

    Caused by: java.lang.NullPointerException

    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData (unknown Source)

    I found the solution, just need to order to update set to false after the order data update

    Here is the update of Xquery

    DECLARE namespace SGD = "urn: com:metasolv:oms:xmlapi:1";

    DECLARE namespace log = "java: org.apache.commons.logging.Log;

    declare namespace automator = "java: oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";

    declare the namespace context = "java: com.mslv.oms.automation.TaskContext";

    declare namespace osm = "http://xmlns.oracle.com/communications/ordermanagement";

    declare the saxon namespace = "http://saxon.sf.net/";

    declare namespace xsl = "http://www.w3.org/1999/XSL/Transform";

    declare the external variable $context;

    declare the external variable $log;

    declare the external variable $automator;

    Let $taskData: = fn:root (.) / CRAMER. Response

    Let $orderId: = $taskData/CRAMERWOID

    Let $jid: = $taskData/CRAMERJOBID

    Let $ordUpdateReqXML: =)

    http://www.MetaSolv.com/OMS/OrderDataUpdate/2002/10/25">

    HC

    )

    Let $ordUpdateReqXMLStr: saxon =: serialize($ordUpdateReqXML, )

    return)

    Journal: info($log, "### XML Transformed")

    Journal: info ($log, $ordUpdateReqXML),

    Journal: info ($log, "# XML Transformed after serialized"),

    Journal: info ($log, $ordUpdateReqXMLStr),

    Automator:setUpdateOrder ($Automator, true (()),

    Context:updateOrderData($context,$ordUpdateReqXMLStr),

    (: threshold, I have added to the problem)

    Automator:setUpdateOrder ($Automator, false (),.

    context: completeTaskOnExit ($context, "success")

    )

  • Try to set the time to a date field

    Hello

    Using jdeveloper 11.1.1.6.0.

    I have a date field in my table. I got the time string and convert it to a date field.

    String dis1 = theToken;   for example: 11:15:26

    DateFormat = formatter1
    new SimpleDateFormat("hh:mm:ss");
    Date2 date = formatter1.parse (dis1);
    rw.setAttribute ("TtAlertRecTime", formatter1.format (date2));

    While my running page and press that values have not been set for the field.

    In the page of the user interface

    < af:inputDate value = "#{row.bindings.TtAlertRecTime.inputValue} '"

    label = "#{bindings." TrackTicketsView1.hints.TtAlertRecTime.label}.

    required = "#{bindings." TrackTicketsView1.hints.TtAlertRecTime.mandatory}.

    shortDesc = "#{bindings." TrackTicketsView1.hints.TtAlertRecTime.tooltip}.

    ID = "id21" >

    < f: validator binding="#{row.bindings.TtAlertRecTime.validator}"/ >

    < af:convertDateTime pattern = 'hh '.

    type = 'time' / >

    < / af:inputDate >

    My Question is

    How to set the time in a date field? time is obtained as a string.

    Kind regards

    Prasad K T,.

    AS400 ops.

    well you can not set the time in the date field.  the date data type allow only data in a specified format before. It is designed like that.  If your issue is resolved now?

  • Order number: 10,127,143,959 Order Date: 17/06/2015 please cancel your order.

    Order number: 10,127,143,959 Order Date: 17/06/2015 Please Cancel your order.

    Hello

    I would ask you to please contact customer service to get help with the cancellation of the order.

    Concerning

    Maansee

Maybe you are looking for

  • How to get help from Mozilla and not volunteer professionals?

    Thanks to all the volunteers who help the people here. Are there own support workers of Mozilla that could be contacted? How can I contact them?

  • Satellite 5200 + external monitor

    I have a higher resolution monitor external 17 '' flat screen connected to my laptop and I really just want to know is possible to make it the "primary monitor? -This option is grayed out in the property control complete panel box. I can "extend my d

  • The volume on my laptop icon keeps popping up on the screen every time

    The volume on my laptop icon keeps popping on the screen each time, whay could be the problem and how it can be corrected?

  • error 800b0100 codes, 57 and 80070057

    I get the above errors when you try to install internet explorer 8, microsoft net framework 3.5 service pack 1, the update for windows vista (kb970653) and update for the mail filter unwanted windows mail (August 2009) (kb905866).  I have a toshiba s

  • Do not let me attach pictures, why?

    I am an older retired man who gets on the computer, but need help.  My computer has virus problems and someone fixed them for me and I just loaded the documents from the computer that I saved on a USB, back into the computer. Now, I'm having a proble