Recording universal time along with dynamic data

Hey guys, basic question. 
I have a single pressure transducer that I'm recording data from.  I want to have a single button that the user can press to start recording and have the same button stop recording.  I suppse the catch is that as the user, I would like to see periodic updates from the what the DAQ assistant is seeing.
The problem I'm having is that the time stamp in the recorded data file repeats for every cycle of the DAQ assistant.  Meaning, if I record two cycles at 5 Hz and at 5 samples, my time stamp goes from 0,.2,.4,.6,.8,0,.2,.4,.6,.8.  See it repeats.  Ideally I'd like it to go like this 0,.2,.4,.6,.8,1,1.2,1.4,1.6,1.8. I'm attached the VI and sample output.  I appreciate any help you guys can provide. 
John
Solved!
Go to Solution.
Attachments:
single_transducer.vi ‏88 KB
testoutput.txt ‏1 KB

How are you running your VI?
It only runs one time them stops.  It doesn't have a while loop for multiple iterations.
Please don't tell me you are using the Run Continuous button and the Abort button.  They are only for debugging purposes.
If you put a while loop around your code and use a real stop button on your Front panel, you'll see it works just fine.  Run Continuous is not the same as a while loop.  It is more like, run, run again, run again, run again, always restarting the VI until you hit the abort button which is what is causing your time stamps to restart.

Similar Messages

  • Need help for storing time along with the date

    Hi,
    I have one procedure as follows, In last_update_column of the table job_data having date and time.But after execution of this procedure only date is inserting into the job_master.
    If I queires the table job_master with to_char(Last_Update_Date, 'DD-MM-YYYY HH24:MI:SS') , then it is showing time as 12:00:00.
    I tried to insert date with to_char,to_date format but it is not working.
    Please provide me the solution.
    Thanks in advance.
    create or replace
    PROCEDURE         SP_LOAD_JOB
    IS
    CURSOR CUR_DATA  IS
            SELECT   PARENT_ITEM,
         `               CHILD_ITEM_ID,
                   LAST_UPDATE_DATE
      FROM job_data,
    BEGIN
      For Cursor_job In CUR_DATA
                 Loop
                 Exit When CUR_DATA%Notfound;           
        Insert Into job_master(parent_Code,
                                       child_code,
                                       last_update_date)
    values(
                             Cursor_job.PARENT_ITEM,
                             Cursor_job.CHILD_ITEM_ID, ,
                             Cursor_job.Assembly_Item_Id,
                              Cursor_Bom.LAST_UPDATE_DATE)
    commit;
    end loop;
    END;

    Hi,
    I don't believe you
    First to input time to job_master from job_data table first you have to store time in job_data.
    execute 
    select LAST_UPDATE_DATE from job_data
    and show result.
    Second remark : your procedure will not compile success Because
        Insert Into job_master(parent_Code,
                                       child_code,
                                       last_update_date)  ---3columns
       values(
                             Cursor_job.PARENT_ITEM,
                             Cursor_job.CHILD_ITEM_ID, ,
                             Cursor_job.Assembly_Item_Id,
                              Cursor_Bom.LAST_UPDATE_DATE) ----4columns
    Third remark : why to insert into table from other you wrote procedure???! you need only type insert stmt like this
        Insert Into job_master(parent_Code,
                                       child_code,
                                       last_update_date)
        select .... from  job_data
    Ramin Hashimzade

  • Connect an 1-D array of cluster of 3 elements with dynamic data

    hi everybody.
    I am trying to wire an 1-D array which consists of a cluster of 3 elements with dynamic data. The error that appears says that I'm trying to "connect two terminals of different types". Actually, what I want to do is write to a file the FFT data produced by the Spectral Measurements vi. In order to write to a file, I am using the Write to Measurement File vi, but I don't know if this is the right way to do this. Has anyone any idea about this problem, because I'm out of ideas....
    Thanks a lot!!

    ok! This works really good! thanks a lot! now i'm facing an other problem...The output file does not contain the right data. I want to collect the FFT (frequency vs. amplitude) of a time signal and it gives me the record length and the sampling rate instead.
    For example, if I use a sampling rate of 300 ksamples/sec and a record length of 1000 sampling points, the file to be created has one column containing the record length e.g.
    0
    1
    2
    3
    498
    499
    and on more column containing almost zero values and the value of the sample rate. Do you have any idea why this is happening?
    Thank you!!

  • How to use a queue with dynamic data

    When using a collector I have found that it significantly slows down my loop times. I am using LabView7.1 on a Dell PC with Windows XP.  If I use a queue with dynamic data do you think that will require less of my processor and allow for faster loop speeds?
    I have created a queue using dynamic data in one loop and I want to retrieve all available samples each iteration in a slower loop. If I use the flush queue I get a 1d array of dynamic data. What is the best way to convert the 1d array of dynamic data so that the array of dynamic data is consolidated back into a single dynamic data type? Any help would be much appreciated.

    Hi Dennis,
    You could for instance wire the array to an auto-indexed for loop. I attach an example. I assume you wish to concatenate the arrays a singel waveform.
    Hope it helps,
    Pelle S
    District Sales Manager
    National Instruments Sweden
    Attachments:
    Dynamic queue.vi ‏245 KB

  • SSRS 05 snapshot with dynamic date parameter

    I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
    Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
    Gaur

    Hi Gaur,
    In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
    Stored credentials for the data source. 
    Defaults for all Parameters.
    Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
    render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
    based on the current parameter values, but we can still use snapshot with dynamic date parameter.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • JasperException, calling tag with dynamic data

    Hello
    I want to call a tag which I have written with dynamic data.
    I can call the tag like this, and it works fine
    <cm:getCalendar year = "2" week = "51" />But I don't want the input to be hard coded.
    Therefor I have tried to insert GET data to the tag like this
    <cm:getCalendar year = "<%= request.getParameter("year")%>
    " week = "<%= request.getParameter("week")%>" />Or like this
    <cm:getCalendar year = "%{#request.yearNr}" week = "%{#request.weekNr}" />The %{#request.yearNr} should be struts 2 specific I think.
    In both this cases I get this exception
    org.apache.jasper.JasperException: /calendar.jsp(25,0) According to TLD or
    attribute directive in tag file, attribute week does not accept any expressions
    Is there a way which I could insert data dynamic to my own tag?
    Here is the TLD file
    <taglib>
      <tlib-version>1.0</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name></short-name>
      <tag>
           <name>getCalendar</name>
           <tag-class>taglib.PrintCalendar</tag-class>
           <body-content>JSP</body-content>
           <attribute>
                <name>year</name>
                <required>true/false</required>
           </attribute>
           <attribute>
                <name>week</name>
                <required>true/false</required>
           </attribute>
      </tag>
    </taglib>

    I change the tld to
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name></short-name>
    <tag>
    <name>getCalendar</name>
    <tag-class>taglib.PrintCalendar</tag-class>
    <body-content>JSP</body-content>
    <attribute>
    <name>year</name>
    <required>true/false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>week</name>
    <required>true/false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>

  • How to call javascript function with dynamic data in display tag

    Hi,
    Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
    I have a problem when calling the javascript function using ahref in attribute in display tag.
    <bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
    <display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
    <display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
    title="Number"/>                         
    <display:column property="strDate"title="Date" />
    <display:column property="orderValue"title="Order Value(INR)"/>
    <display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
    <display:column property="statusDescription" title="Status" />
    </display:table>
    The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
    When I try this with ordinary struts its working fine the code is:
    <logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
    <tr>
    <td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a>     </td>
    <td><html:hidden name="polist" property="strDate" write="true" /></td>
    <td><html:hidden name="polist" property="orderValue" write="true" /></td>
    <td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" />     </td>
    <td><html:hidden name="polist" property="statusDescription" write="true" /></td>
    </tr>
    </logic:iterate>
    Please help me how to call javascript with dynamic data.
    Thanks in advance

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • How to Insert record in IT0014 along with cost Assignment details - FM Pls.

    Hi,
    I want to insert record in info type 0014 along with Cost Assigment details.
    I used FM - HR_INFOTYPE_OPERATION and RP_PLANT_DATA_UPDATE_TABLES.
    It works fine, but if I go and check PA20 after execution of program, ICON (Cost Assignment details) is not showing up on screen PA20. But If I check cost assignment tables (ASSOB & ASSHR) the record is present.
    Please let me know how to insert record in IT0014 along with Cost Assignment details.
    Thanks in Advance,
    Krishna

    Hi,
    I want to insert record in info type 0014 along with Cost Assigment details.
    I used FM - HR_INFOTYPE_OPERATION and RP_PLANT_DATA_UPDATE_TABLES.
    It works fine, but if I go and check PA20 after execution of program, ICON (Cost Assignment details) is not showing up on screen PA20. But If I check cost assignment tables (ASSOB & ASSHR) the record is present.
    Please let me know how to insert record in IT0014 along with Cost Assignment details.
    Thanks in Advance,
    Krishna

  • CTM set up time along with mfg time at supplier

    Hi All,
    where to enter the set up time along with mfg time at supplier in ctm ....Set up time is nothing but time required for the supplie r to procure his RMs and set up the mfg lines before commensing of prodn, lot specific.

    the setup time you define can be modeled as procurement time in procurement tab at supplier. Mfg time should be modeled in PPM as the operation lead time.

  • How to get Header data into multiple times along with the Line Items

    Dear All,
      I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.
    Details is below.
    Example
    Header record is one
    E1EDK01
    E1EDKA1
    Line items are two
    E1EDP01
    E1EDP01
    I want in the flat file two records having duplicate data in the fields which is belongs to header data
    Like :
    Record #  partner data     Line item data
    Record 1 : WE name1 city   00010 materialname1 156
    Record 2 : WE name1 city   00020 materialname2 198
    ( WE name1 city - data is same in the record 1)
    For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.
    I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.
    If any one knows , please give solution.
    It is great help to me.
    Thanks in Advance.
    Ramarao

    Dear Ramarao,
    This will help you,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    No Documentation for Mapping Function useOneAsMany (Mapping Problem)
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Thanks & Regards
    Agasthuri Doss

  • Background Jobs with Dynamic Dates

    I am looking for how to run a job in the background on a Daily basis where the data time range is always Yesterday - specifically, I want to run a Notification report daily to see the previous day's notifications.
    I have established a Variant with the Dynamic Dates to be "Current Date - 1 days", and schedule it to run in the background Daily.  The report runs daily as scheduled, but the dates are not changing (i.e. it always runs the report for the same date).

    Dear Richard,
    It appears that the date that you generated by "Current Date - 1" is not used for running notification report or not passed from variant.
    You can actually code the same in your program.
    I suggest you to expecute the report in SE38 with debugging by putting a break-point.
    v_date = sy-datum - 1.
    v_date should be used for notification report. (not sy-datum)
    Reward points if this is helpful.
    Regards,
    Naveen.

  • What's wrong with dynamic data?

    I am starting this thread to showcase what I might call "dynamic data abuse": The use of dynamic data where it has no business to be used (does it ever?).
    Everybody is invited to contribute with their own examples!
    One of the problems when operating on dynamic data is its opacity. We can never really tell what's going on by looking at the code. It also seems to hide serious programming mistakes by adapting in ways to mask horrendous code and making it seemingly functional, glossing over the glaring programming errors.
    To get it all started, here are a few recent sightings:
    (A)
    (Seen here). No Kidding! The users joins a scalar with a waveform, then wires the resulting dynamic data to the index input of "replace array subset". He cannot see anything wrong, because the program actually works (coercing the dynamic data to a scalar will, by a happy coincidence, return the value of the scalar joined earlier. I have no idea what thought process led to this code in the first place (maybe just randomly connecting functions until the result is as expected? ).
    (B)
    (seen here)
    What's wrong with simply branching the wire???
    (C)
    I don't remember the link, but here's how somebody transposed a 2D array a while ago (bottom part of image). No way to tell from looking at the code picture! (The "FromDDT" and "ToDDT" need to be configured just right ...).
    ARRRRGH!
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    join.png ‏2 KB
    split.png ‏3 KB
    DynamicTranspose.png ‏18 KB

    Here's another one for you.  Found here:http://forums.ni.com/t5/LabVIEW/Program-unresponsive-after-a-dialog-box-input/m-p/2447608#U2447608
    Put a bunch of booleans into a Combine Signals and then do a Dynamic Data to Boolean Array.
    I supplied the much more cleaned up version of the code below.
    EDIT:  I just realized I needed to subtract 1 frm the power before using the Scale by Power of 2.  Oops.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Button Press Decoder_BD.png ‏41 KB

  • Compare daqmx event with dynamic data

    Good evening everyone!
    Our project is now facing a problem with LabView.
    For our project, we need to use daq to acquire current for our SOC. We want to use virtual channel so people can choose channels from the front panel directly. But when use DAQmx Virtual Channel, the task out is daqmx event which can be used for further calculation like multiple times to get our SOC, also can not compare with a constant.
    Could anybody help me  with this question? How can I extract the value inside the task out for DAQmx or convert daqmx event to dynamic data directly  ??

    So you changed your DAQ Assistant to attempt to use the DAQmx API.  Normally, I would say "Good for you".  But if the code was working, why change it?
    Mimic what I did with the Analog Output.  See how I configured before the loop, wrote inside the loop, and closed after the loop?  You should do the same thing with the Analog Input, except you do a DAQmx Read instead of a write.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Formula Created in BI Query appears in Universe as Measure with No Data

    Hi,
    I have created the universe on top of SAP BI Query(Which is built on Infoset).
    There are some formulas created in BI Query as mentioned below:
    Eg: Status1=
                        If Completion Code = null then Status1 = 0 
                        If Completion Code = =10,11,18 then Status1 = 1
          Status2=
                         If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
                         If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
    In the Universe I get Status1 and Status2 as Measures.
    When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
    Is there any issue with the formulas to be used in SAP BI Query?
    Are Formulas supported in Business Objects from SAP BI Query?
    regards,
    Nisha

    Hi Ingo,
    I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
    But I wonder why there is no data in WebI for those formulas(Key Figures)?
    In Standard test MDX the MDX Query is as Follows:
    SELECT
    [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
    FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
    [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Based on above Query I created the WebI report which includes the objects as described below:
    one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS  from above query.
    Selected All the measures objects available in query which refers to [Measures].MEMBERS
    And  one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report???

  • Time stamp from dynamic data

    I trying to write dynamic data to a file using Express VI (Write LabView Measurement file). The dynamic data comes straight from a simulated Signal Express VI. The signal part of the dynamic data is written correctly but the time stamp is what appears to be float counting the seconds since the Write LabView Measurement file Express VI was started.
    I have configured the Simulate Signal VI Time stamp to absolute data and time option.
    This should be dead simple but it just do not work!
    Any suggestion to what I might do wrong?
    I do expect that the time stamp would be written as two columns one for date and one for time.
    Thanks,
    Soren T. Jensen

    The timestamp is written in the header of the file. The time and date entered there is the time and date that you are looking for. The timestamp written next to each piece of data is indead a relative value. It is the delta from the timestamp in the header to the time that datum was collected (created). The reason for this is that timestamps are quite large in bytes, especially if you break out the time and date in strings. Just stamping the header and providing the offsets is much more efficient.
    If you choose to not provide a header, I think that the timestamp will be lost entirely. I think that this is probably wrong, but I am uunsure what should be done to correct it.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

Maybe you are looking for

  • Help install Tuxedo 8.0 on RedHat Linux 7.2

    Greetings, I'm trying to install Tuxedo 8.0 on a RedHat Linux 7.2, using the tuxedo80_linux.bin (from www.bea.com site) , and face the following problems : . I dont' know what are the dependencies needed (I saw JRE and installed it, but it don't seem

  • 'disk too slow' problems when trying to record ONE TRACK on my ibook.

    okay- help guys. my new ibook freezes after not even a minute of one track live recording and i ge the disk too slow error. i'm using a basic m-audio usb interface with the internal (4200 rpm) hard drive. i know this isn't a fast hard drive, but SURE

  • When filling out a PDF form and reopening it is blank

    When I fill out a form using Acrobat XI pro and then save it with the same name or a different name and try to reopen it, it is blank.  I can us the quick print feature and it will actually print out the information I thought I saved.  But if I open

  • Is it possible to tell the resolution of images in a PDF?

    I'm curious if there's a way to figure out what resolution the photographs in a PDF are saved at. I receive lots of ads from different designers. Occasionally some designer has used a low-res image in an ad, but I don't find this out until I get the

  • Sales order to be created from Invoice from other system.

    Hi All, We have a unusual requirement and would like to take your guidance in this. The requirement is as follows:- Non SAPsystem team will extract the Invoice information details from their system and put a Excel file on File system SAP team will fe