Save data at given simple rate with new file name

Hi,
I'm using a PXI-5105 scope to acquire data generated by a function generator. Currently I am able to save the data displayed by the scope under a given name: test.txt
What I would like to do is continously save the acquired data at a given sample rate under a new file name. In other words, when I first "turn on" the boolean switch, a first set of data is saved as test001.txt, 1 second later the new incoming data is saved as test002.txt and so on.
I looked into this a couple weeks ago and thought I had found a VI posted by another user that did exatcly this, but I can't seem to find it anymore.
I attached the VI I'm using to save the data. I'm still relatively new to LabVIEW, so my program isn't as efficient as it can be. I'm in the process of changing the program so the two switches don't conflict.
Any help would be greatly appreciated.
Best,
Marc

I forgot to attach the file. Here it is.
Attachments:
Acquire and Save.vi ‏34 KB

Similar Messages

  • Flash gives me an error when I compile after I 'Saved As' the FLA with new file name

    This seems weird. My code worked in the original FLA (using AS3) but when I 'Save As' as a new doc,
    It gives me a compiling error below:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at flash_fla::MainTimeline/frame1()
    Any ideas why this happens?
    Does it have to do with path to the Library? Is there a way to reset this within Flash or do I have to copy and paste the code to a totally new AS3 file?
    Thanks

    kglad,
    It doesn't specify what line the error takes place.
    The weird thing is...
    when I copy and paste the code on a totally new AS3 document and rebuild the movie clips within that document, it works fine.
    but for some reason...when I 'Save As' to a new file name, it's like it doesn't acknowledge the MovieClips in the Library anymore..
    It's kind of frustrating...
    Not really a show stopper....but it does waste some time.
    I don't know if you run into anything like this before.

  • Saving File with new file name

    I am subclassing JFileChooser and implementing ActionListener for being able to save and open files.
    I am using different file extensions (.ac and .ps), and when saving, I first check that the file name has the right extension.
    If it doesn't, I add the right extension.
    But for some reason it doesn't show my saved new file, even though in the debugger it goes through all the code of saving.
    Here is the main portion of my code before the code of saving (adaptee is my JFileChooser):
    File ananyaFile = adaptee.getSelectedFile();
    String name = ananyaFile.getName();
    int l = name.length();
    if (!(l >= 4 && name.charAt(l - 3) == '.' &&
    ((adaptee.getFileFilter() == adaptee.acExtensionFilter &&
    name.charAt(l - 2) == 'a' && name.charAt(l - 1) == 'c') ||
    (adaptee.getFileFilter() == adaptee.psExtensionFilter &&
    name.charAt(l - 2) == 'p' && name.charAt(l - 1) == 's'))))
    if (adaptee.getFileFilter() == adaptee.acExtensionFilter)
    name = name + ".ac";
    ananyaFile = new File(name);
    adaptee.setSelectedFile(ananyaFile);
    else if (adaptee.getFileFilter() == adaptee.psExtensionFilter)
    name = name + ".ps";
    ananyaFile = new File(name);
    adaptee.setSelectedFile(ananyaFile);
    Why does it not show my saved new file? Do I have to set it somewhere else?
    Thanks for your time!

    Ok, I put the code which adds the extension
    File ananyaFile = this.getSelectedFile();
    if (ananyaFile == null)
       return;
    String name = ananyaFile.getName();
    int l = name.length();
    if (!(l >= 4 && name.charAt(l - 3) == '.'  &&
       name.charAt(l - 2) == 'a' && name.charAt(l - 1) == 'c')  
       name = name + ".ac";
       ananyaFile = new File(name);
       this.setSelectedFile(ananyaFile);
    }into the approveSelection method of my subclass of JFileChooser.
    If someone wants to open a file without writing the extension and the file with the extension (which was added in my code) exists, it does get opened.
    Also, if someone wants to save a file without writing the extension and the file with the extension (which was added in my code) exists, it does ask if you want to replace the file (as I have programmed).
    But if you say yes, or if you want to save a file without the extension that doesn't yet exists (with the extension), it doesn't save it.
    However, saving works fine if someone writes the full file name into the File name box.
    Well, I would like to allow the user not to write the extension not only for opening a file, but also for saving a file.
    Please help! I am getting pretty desperate! Thanks!

  • Rename recorded avi file with new file name

    Dear all,
    I'm working on capturing video from a web-cam and storing files which use the time stamps as the file names. As my application must start storing the data as quick as possible, so I need to start the realized processor, create/open the datasink in advance, otherwise there will be a 10 sec time lag. In creating the datasink, I set the medialocator pointed to a temp file:TEMP.avi
    I store the files in the same TEMP.avi for each recording and I want to rename the TEMP.avi using the time stamp as the file name.
    I've tried the setOutputLocator() and tried to set the output as 2003_11_02_183023.avi, but it only work once, the next record still use the previous name.
    I've tried the renameto(), but it doesn't work.
    I've also tried the renameFile(), but it prompt "non static .. can not be referenced to static content".
    Are there any way to solve this problem ? It seems to be a simple file renaming problem, but ..
    Thanks in Advance !
    kan

    byte[] aviData = ...; // data from TEMP.AVI
    File file = new File(timestamp);
    FileOutputStream out = new FileOutputStream(file);
    out.write(aviData);
    out.flush();
    out.close();

  • Trying to save a document with a new file name

    I have a IMacOSX Lion
    I am very new to apple products
    How do I save an existing document with a new file name thereby having two documents the old one and the new one with changes? Once a document has been saved once opening File no longer offers the save or Save as choice. Clicking on Save a version does not work either. Please help!

    What application are you using?
    Most Apple apps have adopted a new file saving scheme for what you describe. In Pages, for instance, you go to the File menu and select Duplicate. You end up with two documents, one labeled xxx copy (if the original was xxx). Now you can save xxx copy by using Save from the File menu, and change the name to whatever you want.
    Hope this helps you. Best of luck.

  • Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame st

    Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame still there. Is there a "apply change" or similiar command that I simply cannot see.

    brings the image back, straightened, but with the skewed back ground frame
    PSE did what you told it to do. Choose the Straighten and crop edges or fill edges options when you use the straighten tool if you want it to do more than just straighten the contents of the image. Many people prefer the plain straighten because they'd rather crop themselves than let PSE do it.

  • Save As with suggested file name and folder

    I would like the user to be able to press a save button on the pdf and the "Save As dialogue box" pops up pre-populated with a file name and location choosen. The user can then choose to name the file something otherwise or select a new location. I would just like to save them the steps of copying the field data and finding the correct folder (deeply buried on server) however to place the finished document in.
    This doesn't seem to require a trusted function, but how do I suggest the file name based on a field name in the document. And how do I suggest the folder the document should be saved into?
    Thanks in adavance.

    Hi,
    you need a folder level script to use the browseForDoc method.
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=10 4

  • [svn:osmf:] 13083: Updated MASTAdapter class with new trait names and events.

    Revision: 13083
    Revision: 13083
    Author:   [email protected]
    Date:     2009-12-17 16:10:05 -0800 (Thu, 17 Dec 2009)
    Log Message:
    Updated MASTAdapter class with new trait names and events.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/adapter/MASTAdapter.as
        osmf/trunk/plugins/MASTPluginIntegrationTest/src/org/osmf/test/mast/TestMASTPluginInfo.as
        osmf/trunk/plugins/MASTPluginIntegrationTest/src/org/osmf/test/mast/adapter/TestMASTAdapt er.as

    Silviu!
    I'm really sorry, but as all the office is trying to fix the problem, someone replaced the url content with the stuff that was pointing to the local machine.
    I've fix it, and the video player is available here again: http://pp.player.webtv.flumotion.com/params/apiKey/5PzLR2ULL3z2rumJ/videoId/60
    If there are other references to the localhost, please do not bother with them, as they do not affect player functionality.
    The stream that it uses is an RTMPE, so i'm afraid it will only works with this player. Anyway, the stream url is as follows: rtmpe://87.248.205.81/a4349/e2/veo7/ondemandrtmpe/mp4/med/first-person-mario-4d8741aa.mp4
    I really appreciate your help!
    Thank you!

  • How to change the Existing alias with new alias name...MAXL SCRIPT

    HI Experts
    I need to change alias name of the existing member with new alias name.
    please send me maxl code to change the alias name .
    My thought is
    1) Old alias should be replaced with new alias name .
    2)There is one account that should be rolled out to another parent..these parents are already exsist
    3) I need a MAXL Script to change the new alias name .
    please suggest ASAP.
    Thanks
    USER

    John
    I heard that we can replace existing alias name with new alias thru MAXL
    i.e replace alias name XXXX member with YYYY ;
    please correct me if iam wrong ,might be Maxl command is wrong but this is the idea.
    Thanks
    USER

  • IDoc to File with different file name and data based on the IDoc header dat

    Hi,
    I got a requirement to implement IDOC to file senario.  In this the Converted file should have the file name and file content based on IDoc Header data.  Means If one of the IDoc header field value is
    'A'  - then the file name recieved by reciever system should be 'A.txt' and with the columns A  B  C  D  F.
    'B'  - then the file name recieved by reciever system should be 'B.txt' and with the columns C  D  F.
    In both the case IDoc message type is same.
    Please suggest me what i need to do to achieve this.
    Thanks in Advance. ...
    Regards
    Sri

    Hi,
    As per my requirement, we need to create one file for each IDoc based on IDoc header data. SAP program generates 10 IDocs for each run. All 10 IDoc's message type is same.  Each IDoc has one header record with the file name. Base on the  name in the IDoc header record, file needs to be created with different columns and file name. Means..
    IDoc 01- Header Description contains 'A' - than file will be generated should have name as 'A.txt' and columns 'parent'  'child' 'descripion'.
    IDoc 02- Header Description contains 'B' - than file will be generated should have name as 'B.txt' and columns 'Name' 'Department' 'Description'.
    IDoc 10- Header Description contains 'J' - than file will be generated should have name as 'J.txt' and columns 'Order No'  'Materail' 'Description'.
    Hope this will give more clarity on my requirement. Please let me if you are still not clear on requirement.
    Thanks for your all help..
    Thanks & Regards
    Sreeni

  • Need to generate multiple error files with rule file names during parallel data load

    Hi,
    Is there a way that MAXL could generate multiple error files during parallel data load?
    import database AsoSamp.Sample data
      connect as TBC identified by 'password'
      using multiple rules_file 'rule1' , 'rule2'
      to load_buffer_block starting with buffer_id 100
      on error write to "error.txt";
    I want to get error files as this -  rule1.err, rule2.err (Error files with rule file name included). Is this possible in MAXL? 
    I even faced a situation , If i hard code the error file name like above, its giving me error file names as error1.err and error2.err. Is there any solution for this?
    Thanks,
    DS

    Are you saying that if you specify the error file as "error.txt" Essbase actually produces multiple error files and appends a number?
    Tim. 
    Yes its appending the way i said.
    Out of interest, though - why do you want to do this?  The load rules must be set up to select different 'chunks' of input data; is it impossible to tell which rule an error record came from if they are all in the same file?
    I have like 6 - 7 rule files using which the data will be pulled from SQL and loaded into Essbase. I dont say its impossible to track the error record.
    Regardless, the only way I can think of to have total control of the error file name is to use the 'manual' parallel load approach.  Set up a script to call multiple instances of MaxL, each performing a single load to a different buffer.  Then commit them all together.  This gives you most of the parallel load benefit, albeit with more complex scripting.
    Even i had the same thought of calling multiple instances of a Maxl using a shell script.  Could you please elaborate on this process? What sort of complexity is involved in this approach.? Did anyone tried it before?
    Thanks,
    DS

  • Library files files are replaced with new files

    Almost everyday, when i start iTunes my library files are replaced with new files & then i need to replce the new ones with my backup set

    There are a couple of recommended methods for using more than one iPod on a single computer. Method one is to have two Mac or Windows user accounts which by definition would give you two completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one.
    Method two is to set your preferences so that either one or both iPods get updated with only certain playlists within one library. Have a look at this article and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
    Another option when using a single library is to set one or both of the iPods to manual update: Managing content manually on iPod
    Choosing the update option "automatically update selected playlists only" (called Sync Music - Selected playlists in iTunes 7) allows you to create a playlist specifically for each iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used by the other iPod. Make your playlist a Smart playlist and limit the size to just below the advertised capacity of your iPod ( for example, around 3700MB for a 4GB or 1800MB for a 2GB Mini or Nano). You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes

  • Cannot save the Untitled.indd under a new file name.

    hi,
       i am using window.i got this message while save a document,Cannot save the Untitled.indd under a new file name.
    my code is,
    IDocument *docFrom = Utils<ILayoutUIUtils>()->GetFrontDocument();
    UIDRef docRef = GetUIDRef(docFrom);
    InterfacePtr<IDocumentUtils> docUtils((IDocumentUtils*)GetExecutionContextSession()->QueryInterface(IID_IDOCUMENTUTILS ));
    InterfacePtr<IDocFileHandler> handler(docUtils->QueryDocFileHandler(docRef));
    IDFile destFile;
    PMString path("E:/desktop/auquery.indd");
    FileUtils::PMStringToIDFile(path,destFile);
    handler->SaveAs(docRef,&destFile,kFullUI);
    ErrorCode result = ErrorUtils::PMGetGlobalErrorCode();
    pls help,
    thanks,
    screen410099

    Hi JADarnell,
                 desktop is a folder which i created in e: drive.And I found problem so pls give me a solution.
       Problem is i save a file without any changes its save but if i made any change in a document it doesn't save and one more information
      the  saveas method working in ActionComponent.cpp file in a project only.
    thanks,
    screen410099

  • Saving documents with similar file names

    When saving documents with similar file names, I used to be able to hit save as button and go to the file folder I wish to use. I could then click an existing file in the folder to draw in the name and then just modify it slightly to create the new name.
    In Reader DC I get an error saying this is a read only file an can not be saved.  I can save the file if I use a different file name but then I have to go in and rename the file. i.e. if I have a weakly report that I save, I may have the file name "Installerspayroll.we.04.25.15.pdf."
    I used to be able to click on the existing file name to bring it into the name box and then just change the date. The updated version is not allowing me to do that, creating more work.

    I thought you were referring to an admin account within the Adobe program. I am an admin on the machine I am signed into and using while having these problems
    Thank you for this opportunity to share our expertise,
    Michael Mallary
    Treasurer
    Mallary Carpet & Flooring, Inc.
    410-766-6992
    www.mallarycarpet.com<http://www.mallarycarpet.com>
    Earning your unsolicited referrals
    is our number one priority

  • How do i print a photo with the file name

    This seem stupid simple but I cannot find an answer anywhere. I want to print out hardcopies of phots with the file name printed with the photo. In Windows there is a program called Picture Manager (which has been eliminated in Office 2013) where you can open a folder of images, rename them individually or in batches, resize, edit, etc, all in one lovely program. You can print out individual or contact sheets with specific information for each image. Easy, one program, easy results.
    Is there a comparable program for the Mac? I have searched the web and can only find suggestions that use multiple progams, downloads, plugins, and convoluted work arounds to do this. I have tried printing contact sheets in iPhoto but it crashed each time. Our IT guy suggested moving the images into an album and printing from there but it still crashes. And even if it worked I want large image per page but iPhoto leaves a large amount of white space.
    The quickest way I have figured out is this:
    Select the images in Finder, make a separate folder and copy the images there. (3steps)
    Locate the folder in Finder and drag it to the Bridge icon (4steps)
    Select the images in Bridge, adjust the output settings and Save as a pdf (6steps)
    Locate the pdf in Finder, open in Acrobat, select the images (again!) and print (9steps)

    GraphicConverter, from here:
    http://www.lemkesoft.com/

Maybe you are looking for

  • [CS 4] Is it possible to change the font preview word? (eg: default is 'sample')

    Hello Adobe Community, I know that with past versions, changing the word that was used to preview fonts ('sample') was not possible (in 2006 anyway). But, because I believe CS4 came out in 08, I was wondering if this was a feature that had been imple

  • End user access - Files at the OS level

    Hi all, I am not sure how apt would it be to post this question in this thread. And I am also not aware of the SAP functionality that I am going to detail. With one of the interfaces, we get files dumped in the XI system. I am trying to give access t

  • Web Services and JAXRPC serialization encoding

    Hi all. I have written a Web Service starting from the WSDL using wscompile (NetBeans 5.0 feature). The WSDL defines an operation which returns a complex data type which is wrapped by JAXRPC SI in a suitable class package. What I simply do, is to use

  • ADF chekbox is refreshing and get unclicked on clicking

    Hi all, JDEV 11.1.2.1.0 i am using a fragment in which i use a drag drop a table and then i manually create 1 more column in which i use check box, BUT whenever i clicked on this check box AT RUN TIME then it just refreshes and get UNCLICKED ... then

  • After New Update I've had Issues

    Prior to updating my blackberry the "A" button the the keyboard would lock my phone so that it required a password to get back in. After the update the "A" button only locks the keyboard. Is there anyway I can fix this? Was it a malfunction before? S