Problem with intermittent sampling and writing to file(s)

I am describing the functionality that I am trying to achieve via the attached VI.
The VI opens with a sequence structure. In the first sequence step analog output voltages for 2 AO channels are set
The next sequence step consists of analog data acquisition
Custom linear scales for 3 input channels are specified, to convert input ‘volts’ to respective physical quantity being measured
The input voltage signal is with +/- 10V but the physical quantity (forces) are greater than 10N
The headers for the data files are created as strings
The acquisition is set for finite sample acquisition
The VI is set for periodic acquisition, wherein the data is acquired for specific time period given by ‘Sampling on’ and then ignored for time period specified by ‘Interval off’.
The VI is set to write instantaneous data to multiple files. Each time the While loop is executed the instantaneous data, number of samples read (sampling rate x Sampling on time),  is written to a ‘.dat’ file.
Statistical operations on data collected for each While loop execution is performed. These values (average & st. dev) are then written to another file ‘*.sum’ with respective headers
The headers for the ‘*.sum’ file are written only for the first execution of the While loop
The VI is designed to run for a specific duration after which the execution of  While loop is stopped
Certain safety features are incorporated to terminate the execution of the While loop if the ratio of measured quantities exceeds a preset limit.
In the last sequence the analog outputs are set to zero
I am having following problems with the execution of the VI:
The VI does not write instantaneous data to data files (*.dat)
The VI writes the averaged data for *.sum file for only the first execution of the While loop.
It also truncates the values to around 10.5 written in *.sum file. While implies that the custom scale is not working as intended.
I would really appreciate if you would tell me how to fix these bugs with the VI. I would really appreciate your help.
Have a happy holiday season.
Thanks,
Dinesh
Attachments:
VLBT_Sequence_AnalogIP_2.vi ‏437 KB

Lynn, he may actually not be to blame for the diagram size. It does not change if you "clean" it, which leads me to believe that this is what he did. But a very entertaining diagram it is. A true case study :-)
Now, the strange thing is that stuff like this remains in it:
As Lynn said, the reason why the file is updated only once is that there must be an error after the first acquisition completes. The only way to figure out which one it is (in order to avoid or correct it) is to debug your code in situ (using a probe on the error wires). It might be because you try to restart your acquisition within the loop (you probably should stop it first if you really want to restart it anyhow). I would put the start out of the while loop and try this way. The error might occur elsewhere though or for another reason...
Since you recreate your dat file at each iteration, the second giving you nothing because of an (unknown) error, will essentially erase your first successful iteration.
I don't understand the truncation statement.

Similar Messages

  • Problem with QuickLook/Finder and Office 2008 Files...

    Hello,
    I don't understand what's going on with QuickLook and Finder. I used Keynote and the created files were readable with Quicklook and previewable in the Finder.
    Lately, I installed MacOffice 2008. I opened the keynote files with Powerpoint, save it in the same format....and the files are now unpreviewable in Finder and unreadable with Quicklook....I tried to save it in pptx format but I've the same problem....Is it possible to make this files readable and previewable ?
    Thanks,
    RedVivi

    Solved with 10.5.2 update

  • Adobe Type Manager problem with Windows 7 and DIN font file extension not showing

    I have Windows 7 and for some reason I cannot install Adobe Type Manager onto my Computer.
    I need ATM to install the DIN font but am having no luck what so ever.
    I can see the DIN font in my Dropbox but it is showing up like this:-  ._DIN-bold, no file file extension. what am I doing wrong? is it Mac?

    Adobe Type Manager absolutely cannot be installed on Windows 7. In fact, even attempting to install it may corrupt your operating system installation and its ability to properly render Type 1 and OpenType CFF fonts. The last version of Windows for which ATM was at all compatible was Windows XP, 32-bit only!
    Adobe Type Manager is not at all necessary to install fonts, even Type 1 fonts, on Windows 7 systems. Right click on the font file for TrueType of OpenType CFF fonts or the .PFM file for Type 1 fonts and select the Install option.
    The font file you are trying to install is for MacOS. It cannot be installed on Windows.
            - Dov

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications.  I haven't ever used time machine to back up (my bad I know).  Is there a way to go back to snow leopard with messing up all my files and my set

    I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications.  I haven't ever used time machine to back up (my bad I know).  Is there a way to go back to snow leopard with messing up all my files and my set?

    Are you using the latest version of Silverkeeper? - v.2.0.2 is stated to be compatible with Snow Leopard.
    http://www.lacie.com/silverkeeper/
    If it's messing things up you could try asking LaCie Support for assistance.

  • Rreading and writing this file's metadata (xmp) has been disabled. Renders unplayable/corrupted files

    Hi everyone,
    I've been using Premiere Pro CC for a while now, as I have a YouTube channel, and I've rendered, exported and edited around a dozen different videos, and have had no issues until now. I haven't done anything to my settings, but randomly, I am now unable to export any videos. I've tried exporting multiple times, using different formats, and I still get the same error:
         File importer detected an inconsistency in the file structure of [FILE NAME]. Reading and writing this file’s metadata (XMP) has been disabled.
    I've looked around, and I've seen just about no help in fixing the issue, so I was hoping that someone could help me out.
    Some of my computer details are:
    Premiere Pro CC
    Toshiba Z10T
    Windows 8.1
    Hopefully that's enough to go by
    Thanks guys

    After moving LR3.5 and catalogs to a new computer running Windows 7 and LR from an XP system, I suddenly had 6400 files with exclamation points--failure to synch metadata or similar warnings on every file.  If I thought I had one without the error, if I clicked on it--there error showed up.    It was very frustrating and I was wondering if I was going to have to keep my old computer forever.
    After I searched for a couple of hours and found that there have been several discussions concerning failures to sync xmp sidecar files and failures to write metadata on this forum and others.  Some of the postings had angry rants against Adobe.  On my system, it was not Adobe that should be blamed, it was Microsoft:
    On one of the Adobe threads, I noticed a post that the person had multiple external drives and the problem did not show itself on one drive.  The person said that changing the permissions on the other hard drives solved the problem.   I tried this and it worked for me.  I did not have this problem with this same drive on my XP system.  I will try to find that other forum and thank the person who gave me the solution.

  • I'm running Windows XP and FF 8.0. I'm having more trouble than ever with intermittent streaming and videos not playing all the way through. What is the easiest way to fix this?

    . I'm running Windows XP and FF 8.0. I'm having more trouble than ever with intermittent streaming and videos not playing all the way through. What is the easiest way to fix this?

    That may be a problem with the VLC plugin. VLC has never worked for me properly on the occasions that I've tried it on Windows and Linux, so I have stop using it. There are usually other plugins or media players available that work better.
    What kind of media files are that?
    For WMP files you can install the new Windows Media Player plugin you can also try RealPlayer and QuickTime if it is about media that those programs can handle to see if that works better.
    * https://support.mozilla.com/kb/Using+the+Windows+Media+Player+plugin+with+Firefox
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    * http://www.interoperabilitybridges.com/windows-media-player-firefox-plugin-download

  • Problems with ListViews Drag and Drop

    I'm surprised that there isn't an Active X control that can do this more
    easily? Would
    be curious to find out if there is - although we aren't really embracing the
    use of
    them within Forte because it locks you into the Microsoft arena.
    ---------------------- Forwarded by Peggy Lynn Adrian/AM/LLY on 02/03/98 01:33
    PM ---------------------------
    "Stokesbary, Michael" <[email protected]> on 02/03/98 12:19:52 PM
    Please respond to "Stokesbary, Michael" <[email protected]>
    To: "'[email protected]'" <[email protected]>
    cc:
    Subject: Problems with ListViews Drag and Drop
    I am just curious as to other people's experiences with the ListView
    widget when elements in it are set to be draggable. In particular, I am
    currently trying to design an interface that looks a lot like Windows
    Explorer where a TreeView resides on the left side of the window and a
    ListView resides on the right side. Upon double clicking on the
    ListView, if the current node that was clicked on was a folder, then the
    TreeView expands this folder and the contents are then displayed in the
    ListView, otherwise, it was a file and it is brought up in Microsoft
    Word. All this works great if I don't have the elements in the ListView
    widget set to be draggable. If they are set to be draggable, then I am
    finding that the DoubleClick event seems to get registered twice along
    with the ObjectDrop event. This is not good because if I double click
    and the current node is a folder, then it will expand this folder in the
    TreeView, display the contents in the ListView, grab the node that is
    now displayed where that node used to be displayed and run the events
    for that as well. What this means, is that if this is a file, then Word
    is just launched and no big deal. Unfortunately, if this happens to be
    another directory, then the previous directory is dropped into this
    current directory and a recursive copy gets performed, giving me one
    heck of a deep directory tree for that folder.
    Has anybody else seen this, or am I the only lucky one to experience.
    If need be, I do have this exported in a .pex file if anybody needs to
    look at it more closely.
    Thanks in advance.
    Michael Stokesbary
    Software Engineer
    GTE Government Systems Corporation
    tel: (650) 966-2975
    e-mail: [email protected]

    here is the required code....
    private static class TreeDragGestureListener implements DragGestureListener {
         public void dragGestureRecognized(DragGestureEvent dragGestureEvent) {
         // Can only drag leafs
         JTree tree = (JTree) dragGestureEvent.getComponent();
         TreePath path = tree.getSelectionPath();
         if (path == null) {
              // Nothing selected, nothing to drag
              System.out.println("Nothing selected - beep");
              tree.getToolkit().beep();
         } else {
              DefaultMutableTreeNode selection = (DefaultMutableTreeNode) path
                   .getLastPathComponent();
              if (selection.isLeaf()) {
              TransferableTreeNode node = new TransferableTreeNode(
                   selection);
              dragGestureEvent.startDrag(DragSource.DefaultCopyDrop,
                   node, new MyDragSourceListener());
              } else {
              System.out.println("Not a leaf - beep");
              tree.getToolkit().beep();
    }

  • Problems with itunes 8 and ipod shuffle gen 2.

    Problems with itunes 8 and ipod shuffle gen 2.
    I recently upgraded from itunes 7 to itunes 8 on my windows XP PC. That's when i had issues syncing my 2nd gen shuffle.
    When i try to drag songs directly on it, itunes says i can't
    I made a playlist and use auto fill. But when I remove it from the dock, it's either not updated, or the new songs are at the bottom of the playlist when they are supposed to be up higher. I end up having to hit auto fill twice to make it sync correctly.
    Computer Specs
    Windows XP SP3
    384MB of Ram (works really good)
    USB 1.1 connection
    Pentium 4 clocked at 1.285 GHZ
    IPOD Shuffle Specs
    2nd Generation
    1GB (964MB)
    Version 1.0.4
    unchecked options: open itunes when ipod is attached, Sync only checked songs, convert higher bit rate songs to 128kbps AAC, Enable sound check, Limit MAX volume, enable disk use
    All those are NOT checked. Sometimes i enable disk use for seeing the IPOD_Control folder, but either way it still messes up.
    Itunes Specs:
    Version 8.1.1.10

    This is a well-known issue. Apple changed the internal file names used with iTunes 8, which makes the ordering on 2nd generation Shuffles behave differently. There is no good workaround, apart from moving the files with a hand-crafted AppleScript program.
    Apple has been silent on the issue, so nobody knows if we'll ever have a fix for it or not.

  • Having a Problem with WMA DRM and Muvo TX FM - Upd

    No elapsed time problem with WMA DRM or other protected files from:
    Napster
    WalMart
    Audible.com.
    Elapsed time problem with WMA DRM from:
    Netlibrary.com
    This is an update on the problem that I described below:
    Windows Media Player
    One problem I had was that Windows Media Player would not recognize my muvo players. It turned out that because I was using a USB hub for the players to connect WMP was not recognizing the players. When I used a direct line to the USB port on the computer, WMP has no problem recognizing the player.
    Digital License.
    As a test, I bought a WMA song file from WalMart to see if its Digital Rights Management was compatible with Muvo. There was no problem with the correct elapsed time showing. I will also test a file from Napster and add its license details here.
    Here is something else I noticed - the differences in
    the license for the two types of WMA files:
    The one from WalMart - which works fine with the
    elapsed time on the MuVo:
    This file can be played an unlimited number of times
    Collaborati've play for this file is not allowed
    This file can be burned 0 more times<<<
    This file can be synchronized an unlimited number of
    times
    The license for this file can be backed up <<<
    For the one from netlibrary.com
    This file can be played until 4/9/2005
    Collaborati've play for this file is not allowed
    This file cannot be burned
    This file can be synchronized 3 more times until
    4/9/2005
    The license for this file cannot be backed up<<<<
    I have been able to copy WMA with DRM audiobook files to my TX FM, but the elapsed time doesn't change with either play or fast forward. The file is from Netlibrary.com which supplies audiobooks to public libraries. The file plays, but the display stays all zeroes.
    I have been sending information and getting replies and suggestions from both Netlibrary support and Creative technical support with no solution. I have the latest firmware and everything else. I have the problem on both Windows XP and Windows 2000 computers. I have downloaded several files, but none of them show elapsed time. I suspect it is something to do with the DRM, because I can play a preview file from Netlibrary - without DRM - with no problem. I also have no problem with other files copied over - from Audible, from CDs, etc.Message Edited by alex20850 on 03-30-2005 07:54 PMMessage Edited by alex20850 on 03-30-2005 08:4 PM

    I'm primarily using my TX FM for netlibrary.com audiobooks and also get all zeros on the display.
    I've been steadily complaining to netlibrary and my local library about problems/inconveniences, itcertainly is experiencing growing pains; we're the ones getting the pain, though!
    I'll post here if I find a (legal) resolution to this.
    What firmware version do you have? I have .2.04 and I see that .3.03 is available for download. I've read here that there are problems with .3 with volume limiting and I'm hesitant to change. I do notice that one of the listed fixes is:
    Updates the elapsed time displayed during navigation within a long recorded track
    so, maybe this is the answer?
    Dr Dave

  • Hi anyone having a problem with windows 7 and itunes

    Hi has anyone had a problem with windows 7n and Itunes...My Itunes was working now wont open says files missing reinstall...which I have done several times also other programs that were working now have error message your side by side configuration isnt correct any ideas!!!

    Yes, I am also having trouble with my windows 7n.  I tried to install the download but it didn't have 32 bit for my computer and I don't think it will help me see my phone on my external devices. I can't transfer my photos. Any help would be appreciated.

  • Hi I have had problems with photo's and films going onto a 2010 Apple classic MP3.  Have managed to sort photos but it still refuses to copy the films purchased. It comes up with not copied cannot be played on this ipod.

    Hi have had problems with photo's and films going onto a 2010 Apple Classic mp3. Have managed to sort photo's but the films won't copy and comes up with message videos not copied cannot be played on this ipod

    razzbust wrote:
    ...but the films won't copy and comes up with message videos not copied cannot be played on this ipod
    Self explanatory.
    You could try creating an iPod version of the films.
    Use CTRL and B to display the Menu bar shown above. Alternatively, use the ALT key, followed by the F key, the W key and finally the I (eye) key - that's (menu)/File/Create New Version/Create iPod or iPhone version.

  • Problems with captivate 8 and windows 8

    I´m using captivate 8 and windows 8, and I am having problems with the visualization and publication of my projects. For visualization, there is a message of an error with syntax of the files ou directory, and nothing happens. For publication, I can´t see the project published in the browser. It opens only a text file, with the codes. Is there anyone thar can help me with that?

    Acrobat 8 is not certified for Win7, particularly the x64 version. If you got the installation to go, the first step is to update AA8 to at least AA8.2. The x64 with XP required at least AA8.2 and I suspect that has not changed. I would suggest updating to the latest, either from the help menu (until no more updates are available) or by downloading the updates from the adobe.com>downloads page. For the latter, download ALL updates after your current version and install them in ORDER. They are not cummulative in most cases. You only need to reboot after the final update. The updates may get you going. If not, you may simply have to upgrade to AA9 or search for what others have been able to do in your situation.

  • Problem with the EFI system partition's file system.

    I installed latest yosemite 10.10.2 update - did a verify disk on “WDC WD1001FALS-403AA0 Media” (internal HD on my iMac 21.5-inch, Mid 2011) and got
    Problems were found with the partition map which might prevent booting
    Error: The partition map needs to be repaired because there’s a problem with the EFI system partition’s file system.
    However a verify disk on the volume partition gets a clean bill of health!
    I haven't done a 'repair disk' yet. Thought I'd check if anybody else has same message first.
    Cheers

    I had issues where my MacPro 8-core would not boot after the 10.7.4 upgrade, but my MacBook Air 13" 2011 upgrade worked just fine.
    I had to restore my MacPro HD from my TimeMachine back up. Apparently, the Softraid raid drivers that I use on my MacPro are not compatible yet with 10.7.4. See here for more info:
    http://macperformanceguide.com/blog/2012/20120511_1-MacOSX-SoftRAID.html
    I contacted Softraid and they are already aware of the issues and are working with Apple for a fix.
    Cheers.
    Bud

  • When i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    when i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    Hi
    I've got a similar problem.  iTunes v10.2 worked fine, but when I tried to update it to 10.5 I got a 'Bonjour' error.  I eventually solved that but I still couldn't upgrade to 10.5, so I deleted every single Apple, Quicktime, iTunes, etc file on my PC using Revo Unistaller (because the normal Windows Add/Delete programs wouldn't work) but now, when I install the latest iTunes version from scratch (on XP SP3), it says: "the installer encountered errors before it could be configured.... your system has not been modified" 
    Any ideas?
    Rick

Maybe you are looking for

  • Report Generation Toolkit: Page Numbering

    When creating a Word Report using the Report Generation Toolkit, I am using the Word Set Page Numbering.vi to display the page numbers in the footer of each page of the report. This works fine when the include page x of n switch is turned OFF. Howeve

  • How to restrict the number of error messages appearing in af:messages

    Hii all.... Ihave customized the error messages which are produced when a constraint in a database are voilated using the following links http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b25947/web_val.htm#CIHJBIDJ and by overriding the Lis

  • Gt 683r right speaker pitches at high volume, suggestions ??/

    Hi, I have an gt 683r gaming laptop, however there seems to be a problem with the right speaker as at high volume it starts to pitch and it makes listening to music annoying. Does anybody have the same problem, and how could it be solved. Thx

  • Upgrading from SCM 4.1 to SCM 2007/5.1 (HP-UX/MaxDB)

    Here's my  challenge - I need to upgrade an SCM 4.1 system (HP-UX IA64 11.23/MaxDB 7.5) to SCM2007/5.1.  From what I can see in the Product Availability Matrix, SCM2007/5.1 requires MaxDB 7.7.  What I need to know is how and when should the MaxDB dat

  • Not able to open forms After R12 installation

    Hi, I recently installed R12.0.4 on windows 2003 sp1. Post Installation tests were successful, and I am able to login with no issues. But when I try to open any form, no form is opening. Thanks, Raj ~ moving this to R12 Forum Edited by: CalvinNHobbes