Extra empty groupName in TDMS file when using DAQmx Start New File & stop DAQmx while waiting for trigger?

I wrote a VI that listens to an external trigger coming from a PFI line and saves a user-defined number of pretrigger+posttrigger samples into disk, and then the DAQmx restarts to wait for the next trigger. I used the DAQmx Start New File.vi to change the filename of each of the next file. However, I found that for each of the resulting TDMS files, there is an additional group that is added in addition to the real data. For example, if the groupName is set to "task_voltage", then there is an additional groupName called "task_voltage #1".
I suspect that this is because the program preallocate diskspace using the old filename for the pretriggered samples, but when the trigger happens and the samples are ready to be written into disk, an actual new file is opened and saved. The reason I think this might be the case is because, say each file would be 50kB and I already have 1 file triggered and saved, before the second trigger comes in, I can see that the file size of the first file is twice as much as it should be (100kB), but the file size will return to noraml (50kB) after the second trigger happens and a second file is created.
Does anyone know if this is really the case? Is there a way to configure the task so that this doesn't happen?
Another question I have is that the program currently set up so that the VI will wait until a trigger happens to return the values. However, this means that if a trigger doesn't happen, the VI waits indefintely, and the "stop" button in the while loop is useless. I have to use the "Abort Execustion" button on the tool bar to stop the VI. Is there a way to interrupt and stop the DAQmx task even if the trigger doesn't happen?
Thanks in advance for any help!
Attachments:
pretrigger_loop_new_file.vi ‏29 KB

I don't believe there is a way to programmatically change/delete the group name in a TDMS file. What you can do however, is convert between TDMS and TDM using the VIs found in the Data Storage palette and then perform whatever modifications you need using the TDM utilities.
Applications/Systems/Test
National Instruments | AWR Group

Similar Messages

  • HT4972 I am trying to update ipod touch from ios 4.3.2 to ios 6.1.3.  I have it connected to my computer, and the summary in itunes indicates the update is available.  However, when I click "update", it opens Windows Explorer and waits for a file name to

    I am trying to update ipod touch from ios 4.3.2 to ios 6.1.3.  I have it connected to my computer, and the summary in itunes indicates the update is available.  However, when I click "update", it opens Windows Explorer and waits for a file name to open.

    I am not at that computer now, but I did check via windows update & with the check updates menu choice in the itunes program  - neither indicated a newer version of itunes is available. (it is a vista computer).
    The itunes software on the computer displays my ipod & the current ios (4.3.2), and indicates a newer ios is available (6.1.3). When I choose "update", I am taken to Windows Exploer and prompted to choose a file to open. it is as if the "update" button has the incorrect code attached to it.
    The ipod is working, but there are several app I would like to install, but I can't with the current ooperating system.

  • I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4) A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
    A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens.  I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.

  • I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    Purchase and use Paragon Camp Tune

  • HT201263 my iphone 5 screen has gone black, and when i plug it into itunes it says we have discovered a iphone in recovery mode, then when i try to restore it it just says waiting for iphone and doesnt get anywhere else. ny clue on how i can fix this prob

    when i upgraded my iphone to the new update My iphone 5 screen went completely black and has been like it for 2 days. I have tried holding home and lock,I have tried holding lock and the volume, and I have tried holding just the volume, it still just stays black.
    When i plugged it into my Mac the apple logo comes up on the iphone screen. and then on the computer it says itunes has detected an iphone in recovery mode. you must restore this iphone before it can be used with itunes. (as in the below pictures)
    when i click ok to restore it just says waiting for iphone (as in the other photo below). i left it in for 20minutes and still said the same thing.
    after that i tried unplugging the iphone and it just went back to being a black screen again if anyone has any idea please please help me, thank you.

    I searched the iPod Touch forum for "iphone in recovery mode" and it appears there are two possible solutions:
    - Place the iPod in DFU mode and then restore it> 
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Use this program to get it out of recovery mode:
    RecBoot: Easy Way to Put iPhone into Recovery Mode | Jaxov

  • TS4057 I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What d

    I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What do I do?
    I also got Motion and can't figure out how to use it with Final Cut Pro X. Any help woud be great. Thanks

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • Inform users on unsaved data when switching between/starting new TaskFlows?

    Hi
    In our case, we are using the multiTaskFlow concept to dynamically start new TaskFlows in Tabs. The simple requirement is to have a generic way to inform users on modified unsaved data when switching or starting new TaskFlow
    I did research in google for answers, but did not found anything working.
    For example, I added following checks (df=dirtyFlag) just before switching between Tabs and Menu-items:
    boolean df1 = am.getApplicationModuleDef().isDirty();
    boolean df2 = ControllerContext.getInstance().getCurrentRootViewPort().isDataDirty();
    boolean df3 = ControllerContext.getInstance().getCurrentViewPort().isDataDirty();
    boolean df4 = AdfFacesContext.getCurrentInstance().getDirtyPageHandler().isDataDirty();
    boolean df5 = am.getTransaction().isDirty();
    boolean df6 = am.getDBTransaction().isDirty();
    boolean df7 = bindingContext.getDefaultDataControl().isTransactionDirty();
    boolean df8 = dcBindingContainer.getDataControl().isTransactionModified();
    boolean df9 = dcBindingContainer.getDataControl().isTransactionDirty();
    Start Application and perform a TAB switch without searching or changing anything
    df1 true
    df2 false
    df3 false
    df4 false
    df5 false
    df6 false
    df7 false
    df8 false
    df9 false
    Within a TaskFlow I perform a SEARCH and perform a TAB switch, flags change to following:
    df1 true
    df2 true
    df3 true
    df4 true
    df5 true
    df6 true
    df7 false
    df8 false
    df9 false
    I MODIFY values within TF and perform a TAB switch, flags remain same and regardless what I do, they remain so:
    df1 true
    df2 true
    df3 true
    df4 true
    df5 true
    df6 true
    df7 false
    df8 false
    df9 false
    Do you know a working approach?
    Thanks in advance!

    Hi,
    its for when you leave a view, not when you switch task flows in a page. To get back to your question, one thing you forgot to mention is what data control state is it that the task flows have: shared or isolated? If they have a shared state then only a single transaction is on and you should be able to tell the dirty state by calling
    boolean df2 = ControllerContext.getInstance().getCurrentRootViewPort().isDataDirty();
    However, if the task flow is in isolated mode then you will need to get a handle to the data control frame used by that task flow.
    BindingContext ctx = oracle.adf.controller.binding.BindingUtils.getBindingContext();
    String frameName = ctx.getCurrentDataControlFrame();
    DataControlFrame frame = ctx.findDataControlFrame(frameName);
    boolean isDirty = frame.isTransactionDirty();
    //see: http://docs.oracle.com/cd/E15051_01/apirefs.1111/e10653/oracle/adf/model/DataControlFrame.htmlHowever, this information is only available from within the task flow, which means to check this from the outside you need to provide a mechanism to get to this information (contextual events would be an option. You define a contextual event receiver on the task flows that when called checks the current transaction state and then "fires" the answer back to the caller, which then obtains a map of task flow transaction states to check before navigating away or switching task flows.
    Frank
    Edited by: Frank Nimphius on Apr 11, 2013 2:48 PM

  • When i turn on Facetime, its allways stay in "waiting for activation"

    Hello..
    My iPhone 4 can not use Facetime..
    When I turn it On, its only stay in "Waiting for activation"
    So What can i do??

    Yes i know, have do everything. reboot, reset, hard reboot, new instalistion..
    But when I wake up this morning its suddenly working.. Now I Will Call my provider for a refund for All my money the take for not getting ny FaceTime avtived 1 Time..

  • Using A2 Trial while waiting for Box Version

    I currently have Aperture 1.5.6. My questions are:
    1) If I download the A2 trial, while waiting for boxed version (which is on order), when I get it can I just enter the valid serial number (from the boxed version) and Aperture A2 trial updates to 2.0 properly?
    or
    2) Do I have to delete the trial version and do an actual (boxed version) upgrade once I receive it?

    just enter the serial from the boxed version on the trial ... no reinstall necessary ...
    upon starting you should be seeing a screen for "activate" "buy" and soemthing to the effect of continue to use trial ...
    activate is what you want ...

  • Using IFRS Starter kit to build a quick POC for Client

    Hello Friends,
    As IFRS starter kit comes with a packaged solution, I was planning to use the same to build a quick POC for the client. However, I am seeing issues with basic functions like Data Loads. I updated the Dimensions members with the client specific data. I am getting error mainly with the Interco dimension. For some reason, when I tried to process this dimension, it kept waiting for server response indefinitely. I see this problem only with this dimension. In this context, I have the following questions:
    1. Can the starter kit be used with custom data?
    2. If so, is there any better way to overcome these issues?
    Please advise.
    Regards,
    Ven

    Hi,
    The kit can be definitely be used with customer data. The functionality doesnt depend on what data you have. Rather, it depends on how the configuration has been done. There is definitely something wrong in the IntCo dimension, because of which it might be getting stuck. I believe its just getting stuck. Can you try to maintain only few members in the dimension and then try again? Are you able to process all the other dimensions?

  • After the IOS7 update, i can no longer use my imessage and facetime. It says "waiting for activation" and tried to log in on my apple id but it turned out to connection error. Please help me guys! Thank you.

    After the IOS7 update, i can no longer use my imessage and facetime. It says "waiting for activation" and tried to log in on my apple id but it turned out to connection error. Please help me guys! Thank you.

    Have you tried to reboot your phone(hold home and lock button simutainiously)?

  • When offline wikipedia will be available? I am waiting for it

    When offline wikipedia will be available? I am waiting for it. Its kind of cool to have the whole wikipedia offline on iPhone. Any body know the status?
    http://collison.ie/wikipedia-iphone/

    Apple need digg like application request. Kind of like idea storm. That way, the most needed application will be approved faster. As a result, Apple will have happy customer

  • HT4623 when turn imessage on there is a message saying waiting for activation but it doesnt change anybody knows why?

    when turn imessage on there is a message saying waiting for activation but it doesnt change anybody knows why?

    Hi guys,
    I keep getting "waiting for activation" on my iMessage. I can only send/receive iMessage from my email address, NOT my phone number.
    I have done all kind of fixing suggestions that I can find online, but nothing works so far.
    - Date & time set as automatic (I don't know why this matter, but mine was already set as automatic from the begining)
    - Reset network setting
    - Changing the DNS to 8.8.8.8.
    - Restore to factory setting (from back up & as new iPhone)
    - Turning on/off iMessage & facetime
    - Sign out/in of apple ID
    - Change location from apple ID
    - Hard reset/reboot
    And many others.
    ...me too. I'm in Portugal having the same issue!! Hopefuly Apple will give us a solution, shortly...

  • I had to replace the hard drive on my computer.  I am now trying to download Adobe Photoshop CS6, previously purchased.  I get an error that files are missing after waiting for the whole download.  I have Windows7

    I had to replace the hard drive on my computer.  I am now trying to download Adobe Photoshop CS6, previously purchased.  I get an error that files are missing after waiting for the whole download.  I have Windows7

    The error msg said that the file archive part of Adobe photoshop CS6 is missing and that I need all parts in the same folder.

  • How do i eliminate talking tom cat when it wont download the 20mb.  It sits waiting for WiFi and my Pc to hook up. No wifi hook up at home

    how do i eliminate talking tom cat when it wont download the 20mb.  It sits waiting for WiFi and my Pc to hook up. No wifi hook up at home

    So you started downloading it and it won't finish? Hold the home (circle) and lock (top of phone) buttons at the same time untill a power off slider comes up. Turn off your phone and when you turn it back on it will ask you for your password to restart the download. Click cancel and it should cancel the download.

Maybe you are looking for