Adjusting time stamp of AI waveform when using pause triggering

Hi Everybody,
I've written a VI that acquires data (AI) at specified time intervals
by using pause triggering and a counter signal, but the resulting time
stamps associated with the data points in the AI waveform are NOT the
actual time relative to the start of the initial acquisition. I was
thinking of modifying the time stamps (post-acquisition) for each set
of data points per interval by adding the "off" time as set by the
counter signal, thereby adjusting the time stamps of the data to real
time. I then have a subVI that will convert the time stamps to elapsed
time. I also have an AO waveform being generated at the same time, and
was wondering if I could somehow use those time stamps values if they
were synced to the AI somehow, although this seems more difficult. The
adjustment does not need to be extremely accurate, and can vary on the
order of seconds (e.g., the last data point could be at 9990 seconds
for an acquisition that actually ended after 10000 seconds). Any
suggestions?
As an aside, the important point of this part of my program is to
reduce the amount of data being collected. I need a high sampling rate
to acquire waveforms with pulse widths on the order of milliseconds,
but typically run the experiment overnight (+12 hrs.) so the files get
really big (e.g., 3 GB!). I could try writing to binary files, but I
haven't figured out how to read the file and then split the data into
smaller files of user-defined size that can then be converted to
text/.xls files. If you have any ideas on how I might do this as well,
I'd greatly appreciate the help! Thanks!
Unagi

Unagi,
I am not exactly sure what you are trying to do, but I can
take a guess.  When performing analog input measurements the waveform is
composed of t0, dt and Y.  You can manipulate any of these values after
the data has been acquired.  If you set up the task the waveform should
contain an absolute time, not relative.  If relative is required, as you
suggested, this can be done post acquisition with the build waveform components
vi. 
I do not understand exactly what you want do with the
timestamps for the analog output.  Do you
want to use the relative time computed from the analog input data for the
analog output waveform?  If so, you could
build a waveform and use the t0, dt from the analog input processed/relative
time waveform.  Again this would be done with the build waveform components
vi.
Finally, a binary file would reduce the amount of memory
required when saving your data.  A binary file is fairly simple to save
and open in LabVIEW.  There are a couple examples in NI Example Finder (i.e.
Write Binary File and Read Binary File) that show you how to write and read
binary files.  If you write the data to a binary file during acquisition,
and modify/split it later you could open the binary file, retrieve the data in
LabVIEW, and write a small subset to a text file.  Alternatively, you could
perform some analysis of the data during acquisition and only save the set of
data that you require post acquisition.
Regards,
Jesse O.
Application Engineering
National Instruments
Jesse O. | National Instruments R&D

Similar Messages

  • Time stamp request does not work using Internet Explorer

    Hi fellows
    I get the following error information when signing a document only when I am using Adobe Acrobat 9 Pro in the Internet Browser:
    Creation of this signature could not be completed. 
    Error encountered while signing: 
    Timestamp signature property generation error: 
    Transport connection timed out.
    This error only  occurs if a request to the time stamp server should be established. By using only the local computer time, the signature is placed and marked as valid in the browser. By using Adobe Acrobat Pro 9 without Internet Explorer, the connection with the time stamp server works without exceptions, the legal time is used to sign the document. I tested various browsers, but have still the same error information.
    Does somebody have an idea what I can do to fix this problem?
    Thanks in advance!
    Leonard

    Hi Leonard,
    It should work (or to put it another way, it works for me). My guess is there is a proxy server issue. If I'm right it's likely that the browser is not configured to use the proxy server.
    Steve

  • How can I change the time stamp of a waveform?

    Hello,
    I am using a "waveform" data type and I want to change its time tamp.
    There is a vi "set waveform attribute.vi". I connected a string NI_ExpTimeStamp and a integer to the set waveform attribute.vi.
    Nothing happens. It does not seem to replace anything since the boolean output remains "false", but I do not get an error.
    Simon

    I would use the Build Waveform primitave.  Feed the waveform in and set the t0 component. 
    I am not comfortable with the timestamp attributes.  Both NI_ExpStartTimeStamp and NI_ExpTimeStamp describe the "time stamp of the first sample".  So, what happens if they are set to different values?  I have used set and get on other attributes with great sucess, but the timestamp attributes seem to be attempting to duplicate values that already exist elsewhere in the waveform.
    Message Edited by jasonhill on 03-01-2006 08:24 AM
    Attachments:
    waveformtimestamp.PNG ‏3 KB

  • How to Convert Time Stamp to String for Filename use

    I'm writing an Labview application in which I would like to convert pull time stamp infor from Time Stamp VI and convert to string so I can use to append as part of filename.
    The fomat that I want may look something like basefilename081208_1300.  This would represent a file name that has elements consisting of the date 08/12/08 and 13:00 hours zulu.
    Paul 

    Hello:
    Use the Format Date/Time String VI, and use as the format string the following: %d%m%y_%H%M
     This way you'll get the date string you want. 
    Then concatenate the output to other strings you need to name your file.
    I've attached an screenshot.
    Hope this helps.
    Robst.
    Robst - CLD
    Using LabVIEW since version 7.0
    Attachments:
    datetime string.JPG ‏20 KB

  • CS6 - Screen goes black when trying to crop & clone stamp screen goes polorized when using

    I run Photoshop CS6 on a windows 7 machine.  It has started having two problems:
    First, when trying to crop, as soon as I release the mouse button after blocking the frame to crop, the screen goes black - No controls, no picture, nothing.   I have to close Photoshop and restart to get back to the photo.
    Second, when using clone stamp, as I click to clone the photo switches to odd colors (almost like it was polarized).  The color returns to normal when I release the mouse button.
    What is going on and what do I do?
    Thank you,
    Mike Modlin

    Update your video card driver from the GPU maker's website, or disable GPU drawing in Photoshop if you cannot update the driver for some reason.

  • Time Capsule high latency (ping) when using WDS

    Hi!
    I have this WDS configuration.
    An Airport Extreme 802.11g connected to my cable modem as WDS main
    A Time Capsule as WDS remote.
    Both are using channel 1 with WPA/WPA2 Personal.
    I can access the Internet. Printers and AirTunes work fine. But I have some high latency when pinging the ISP modem on 10.0.0.1 from any device connected through the Time Capsule.
    More specifically when I am connected to Airport Extreme 802.11g the ping looks fine: within 1-10 ms. Both if I am directly connected to the Extreme with a cable or wireless.
    BUT when I am on Time capsule (both wired or wireless) my latency time looks very awkward ranging from 1 to 1500 ms.
    64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=35.074 ms
    64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=291.896 ms
    64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=1292.345 ms
    64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=1.495 ms
    64 bytes from 10.0.0.1: icmp_seq=4 ttl=64 time=1.435 ms
    64 bytes from 10.0.0.1: icmp_seq=5 ttl=64 time=1.461 ms
    64 bytes from 10.0.0.1: icmp_seq=6 ttl=64 time=1.471 ms
    64 bytes from 10.0.0.1: icmp_seq=7 ttl=64 time=1960.883 ms
    64 bytes from 10.0.0.1: icmp_seq=8 ttl=64 time=960.775 ms
    64 bytes from 10.0.0.1: icmp_seq=9 ttl=64 time=186.944 ms
    64 bytes from 10.0.0.1: icmp_seq=10 ttl=64 time=1.460 ms
    64 bytes from 10.0.0.1: icmp_seq=11 ttl=64 time=977.690 ms
    64 bytes from 10.0.0.1: icmp_seq=14 ttl=64 time=1.529 ms
    64 bytes from 10.0.0.1: icmp_seq=13 ttl=64 time=1002.142 ms
    64 bytes from 10.0.0.1: icmp_seq=12 ttl=64 time=2002.976 ms
    64 bytes from 10.0.0.1: icmp_seq=16 ttl=64 time=1.806 ms
    64 bytes from 10.0.0.1: icmp_seq=15 ttl=64 time=1002.782 ms
    64 bytes from 10.0.0.1: icmp_seq=17 ttl=64 time=1.533 ms
    64 bytes from 10.0.0.1: icmp_seq=19 ttl=64 time=1.565 ms
    64 bytes from 10.0.0.1: icmp_seq=18 ttl=64 time=1002.137 ms
    64 bytes from 10.0.0.1: icmp_seq=20 ttl=64 time=1.446 ms
    64 bytes from 10.0.0.1: icmp_seq=21 ttl=64 time=22.602 ms
    All packets get there but they are terribly delayed causing bad communication while using Skype or SIP telephone from my laptop and imac when connected through the Time Machine.
    I have tried to change the multicast rate on both of them but with no success... still bad latency
    Do you have any suggestion?

    I have found the solution.
    I post it here so it might help someone.
    The issue is: even if you are in WDS don't use the WAN port in the Time Capsule.
    Leave that one empty and use the other 3 LAN ports... and it will make your Time Capsule work perfectly!
    The weird ping result in my previous msg were produced by a computer connected into the WAN port on my TM set into WDS. The port works and behave as a LAN port actually but it's not working properly. Avoid using it!

  • Date and time stamp on dump & log file using EXPDP in HP-UX

    Hi All,
    Can someone help me with the below issue
    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0 , Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    #!/usr/local/bin/bash
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2; export ORACLE_HOME
    PATH=/u01/app/oracle/product/11.2.0/dbhome_2/bin; export PATH
    mydate=`date +%Y_%m_%d_%H_%M_%S`; export mydate
    ORACLE_SID=PD; export ORACLE_SID
    expdp system/0@PD DIRECTORY=prod_exports DUMPFILE=FULL_EXP_PD_${mydate}.
    dmp LOGFILE=FULL_EXP_PD_${mydate}.log compression=all schemas=SYSADM

    991805 wrote:
    Hi
    Thank you very much for your reply. The problem is the time stamp is not coming on my dumpfile
    So what are you getting?
    Works for me:
    #!/bin/bash
    export ORAENV_ASK=NO
    export ORACLE_SID=orcl
    . oraenv
    mydate=`date +%Y_%m_%d_%H_%M_%S`; export mydate
    echo mydate is $mydate
    expdp system/halftrack directory=data_pump_dir dumpfile=full_exp_${mydate}.dmp logfile=full_exp_${mydate}.log schemas=scott
    ls -l /u01/app/oracle/admin/orcl/dpdump
    2014-01-03 15:28:36
    oracle:orcl$ ll
    total 260
    -rwx------ 1 oracle oinstall    300 Jan  3 15:27 doit
    -rw-r----- 1 oracle asmadmin    116 Jan 31  2013 dp.log
    -rw-r----- 1 oracle asmadmin 249856 Jan  3 15:28 full_exp_2014_01_03_15_27_34.dmp
    -rw-r--r-- 1 oracle asmadmin   1974 Jan  3 15:28 full_exp_2014_01_03_15_27_34.log

  • How do I implement time stamps with my readings when I import to Excel?

    I currently have 3 channels running off of DAQ Assistant and plan to eventuall add more, so far I have set up my code to creat an array send as .csv file, How can I add a column for time stamps for current time?  It is required to know date and time that I am logging my data?  Please help!  Attached is my code  FYI I have a Milisecond delay timer on the THIRD Frame of the case structure.
    Attachments:
    Sergio Updated.vi ‏101 KB

    Hi ChrisR774,
    Please take a look at this example: https://decibel.ni.com/content/docs/DOC-14138
    National Instruments
    Applications Engineer

  • No waveforms when using Multi-camera clips!

    I'm editing with multicam clips.
    The audio is from separate WAV files, with 3 tracks.
    When I cut some of the multiclip into a timeline, it does NOT display any waveforms.
    I could've sworn last time I did this, it DID show waveforms.
    Even when I display the waveform for the multiclip in the Source monitor, it shows NOTHING, even though audio does play.
    I tried deleting all the waveform peak files / caches, then Pr rebuilt them, but still shows nothing.
    Anyone have a solution??
    The ONLY place the waveforms DO show is when viewing the actual Multicam source sequence in the timeline.
    (Pr 7.2.1 on Mac 10.9.1)

    I figured it out ...
    You MUST set the panning of the tracks in the Multiclip sequence to Left/Right alternating (these are mono tracks), and set the stereo outputs (or "Direct Output Assignment") for all tracks ... e.g.,
    Track 1 > Left 100 > 1+2
    Track 2 > Right 100 > 1+2
    Track 3 > Left 100 > 3+4
    etc..
    If you try to set the tracks as if they were truly Mono/Centered, then your destination sequence does not show waveforms correctly.
    A bug, if you ask me...

  • Time stamp does not appear when referenced by a parameter

    In the following, I am successfully deleting the dbo.ssheet (line 2), but the insert into dbo.tlog (line 2) never shows a value for param2. I do see values as expected for param1 and 3. I am new to this. Am I correct in assuming that param1 refers to the first ? in VALUES, param2 refers to the second ?, and param3 refers to the ? in the WHERE.
    In the output of a query on  the dbo.tlog when searchig for the 'id' parameter, I do find the row I search for, and that row is flagged as 'delete' (param3) as expected. But param2 always has a null rather than the date. When the exact same editCmd (relating to param2 below) is used prior to this code when asserting to this same dbo.tlog row, I do get a date showing up on a query. But this assert never shows a date.
    MM_editCmd.ActiveConnection = MM_TimeSheetDB_STRING MM_editCmd.CommandText = "INSERT INTO dbo.tlog (id, tstamp, [type]) VALUES (?, ?, 'delete') DELETE FROM dbo.sheet WHERE id = ?"
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 5, 1, -1, Request.Form("MM_recordId")) ' adDouble
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 135, 1, -1, MM_IIF(Request.Form("tstamp"), Request.Form("tstamp"), null)) ' adDBTimeStamp
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 5, 1, -1, Request.Form("MM_recordId")) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    Thanks. One thing I notice is that no matter how I label the parms, the results are the same. I get the first and last parm in the output table as expected, but the parm in the middle, now labeled as param1 below, is always null.
    MM_editCmd.CommandText = "INSERT INTO dbo.tlog (id, tstamp, [type]) VALUES (?, ?, 'delete') DELETE FROM dbo.sheet WHERE id = ?"
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 5, 1, -1, Request.Form("MM_recordId")) ' adDouble MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 135, 1, -1, MM_IIF(Request.Form("tstamp"), Request.Form("tstamp"), null)) ' adDBTimeStamp MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 5, 1, -1, Request.Form("MM_recordId")) ' adDouble

  • What kind of brush to chose to paint adjustment layers and retouching in PS when using wacom tablet

    I have just started using Wacom tablet (Wacom Intuos pro small).
    I would like someone please to answer some of my queries:
    Do you always put Pressure For Size on for retouching and painting adjustments layers masks?
    What type and size brush you should use for painting adjustment layers masks?
    What type and size brush you should use for retouching photos?
    Will be happy to receive any links to video tutorial on this subject?
    Thank you for your help and effort in advance

    Same answer.   Adjustment layers tend to need either very soft masking with a high level of feathering, or very precise using a small fairly hard brush.
    But if I was doing the latter, it would be to adjust one particular part of the image, in which case I would usually make an acurate selection of that area before I opened the adjustment layer.  This automatically fils the layer mask to your selection.
    The sort of situation where I might be doing a lot of fine painting in a layer mask was where I had used Refine edge and output a new layer with layer mask.  Refine edge often leaves errors that need touching up, but I would be using 100% opacity and changing the size, so I would have pressure change size.
    It's entirely up to you to decided what works best in any situation, and to practice so you become familiar with the options - of which there are _many_.

  • Should Time Machine Be Switched Off When Using FCE?

    I have just started using TM and wondered whether its hourly backups are likely to interfere with the operation of FCE and similar apps?
    I suspect they won't but as it's something new to me, I thought I had better get an expert opinion.

    The Time Machine forum has an excellent FAQ submitted by Pondini.
    In it he mentions what would appear to be an excellent free app for myself and others using Final Cut etc.
    This is the TimeMachineEditor which allows you to customise TM so that you are not stuck with the automatic hourly backups and can arrange more suitable times or intervals.
    http://timesoftware.free.fr/timemachineeditor/
    This is the interface which can allow backups at 2, 3, 4 ........ hourly intervals or daily etc. at a specific time.

  • Converting time stamp in waveform to seconds

    Hello,
    I would like to convert the time stamp in a waveform (coming from 'AI Sample Channel') into seconds.  Currently when I read the waveform into a file I get a format that looks like
    18:00:47.453000
    Any help you can offer would be greatly appreciated, it seems like this should be easy to do?
    Thanks,
    Cullen

    In the attached example, I compare converting the datestamp to seconds by converting to double, to extended precision and doing a delta directly on the timestamp iteself (then converting). 
    Running the VI showed the same results (using Win-XP) for all three cases.  Unless you have a better OS, then the top example would probably do.
    At least the example will show you how to convert to seconds (in 50ms steps for the example), and how to do it using the array directly (polymorphic functions).
    Hope it helps,
    RayR
    Attachments:
    DeltaTime.vi ‏13 KB

  • Transfer time stamp from text file into MS Access thru Labview

    Hello everyone,
    I am Cruz; Long time listener, First time caller.
    I am currently monotoring data being collected by an oven. The data is stored in a text file. I am using Labview to take the data from the textfile and place it in an MS access DB for manipulation. The first three columns of the text file are the time stamp of data. When i transfer the data into Access i cant get the first three columns to display as a time stamp. Can have some pointers on what how to get the first three columns to display correctly.
    Additional info:
    the text file is a 1D array that gets overitten with every new mesurement tanken. the transfer to Acces is to not loos any of the information and to better manipulate the data into forms and such.
    Running Labview 2010
    attached is code and text file.
    Any help is greatly appreciated.
    Attachments:
    Oven test other.vi ‏16 KB
    datalog032010003.txt ‏1 KB

    Your first mistake is reading the file as DBL. Your first three columns are obviously not numeric values. Did you ever look at the output array? Read it as strings. Second, you would need to combine those first three columns to create an actual time stamp before you write to the db. Unless of course you have one column for date, one column for time, and one column for AM/PM. I would not recomend that type of structure in the db.

  • How to add a time stamp to a video edited in Photoshop CC?

    Hello fine ppl of Adobe communities.
    I was wondering how can you add a time stamp to a video when edited in PS CC, is it possible at all? I dont have premier but I do have PS and LR.
    Appreciate any help.
    thanks

    If you use File > Place Embedded, you'll be able to resize and place (move, rotate, etc.) images as appropriate in your open document with the added bonus of having them added as Smart Objects. (Note that using Smart Objects can greatly increase the file size of your document. Just be aware.)
    File > Place Embedded > resize and place (hold down Shift to constrain proportion as you resize) > confirm by clicking the checkmark or "commit" icon.
    For layers that already exist, right-click the layer in the Layers panel > Convert to Smart Object.

Maybe you are looking for

  • Is fuzzy logic vi good for discrete system

    If modeling a system using PID is too hard or too difficult, I want to use fuzzy logic, but according to the NI control manual, fuzzy logic is good for a continuous system. Can it be used on a discrete system? for example, turn on a heater for 2 seco

  • Headphone jack problem with Creative Zen Nomad XTra 3

    My warranty expired a couple of months ago, so, naturally, all problems are showing up now. Last night I noticed that my player is no longer deli'vering sound out of the right headphone. I've tried with several different headphones and a pair of exte

  • Which FXs do you use for Remix Vocals?

    Lets say, that it sounds like the Madonna Remixes Tapes. I´m thinking about the JamesBond Song. Of course I know many things depends on the Singer, but the I never done somethings like this and need advise to get close to this art. I don´t have any e

  • Urgent query on joins --Please Help!!

    Hi Experts, We have two table T1 and T2 with A three columns in T1 as A(uniquie constraint and not null )and in table T2 as X. We need to find rows in T1 for which no value of A exists in X of T2.Please provide your suggestion on the query we can fra

  • El sofware no actualiza 3gs

    mi iphone al intentar actualizarlo al iOs 4.3.3 se termina de descargar y luego al comprovar el archivo me dice tiempo en espera sobrepasado y no me actualiza