write the file wav with power button

Hi all

I am trying to record a wav file at a push of a button with Auto name files.

The idea is the VI is running, display data when recording key data are saved as wav up to what the key once again. The file name is generated with the date and time automatically. The user can create as many record as he or she wants without stop the VI.

As you can guess, I'm not a good labview programmer and I have a problem because my VI does not work properly. The return registered wav file are huge they seem to hold too much data essentially. When I play it back it sounds loop. I understand that the problem is with my VI. Believe me, I've been trying and trying without success. Could someone have a look please and let me know what the problem. I do not understand how to operate the part save my VI.

Please find attached my VI.

Thanks in advance for your help.

Frédéric.

Yes, our solutions are remarkably similar.

Be careful to close files when you have finished writing for them - I'm not sure that you have done this. You placed a fence outside the loop that will only close the most recently created file.

Kind regards

Tags: NI Software

Similar Questions

  • Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Hello

    2796614 wrote:

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Of course, it is possible.  According to what the text file looks like to, you can create an external table that treats the text file as if it were a table.  Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.

    You have problems whatever you wantt?  If so, your zip code and explain what the problem is.

    Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas.  In this case, also post a small sample of the text involved file.

    If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • Cannot write the file in the destination folder.

    Installed the new printer of brothers. PDF (file) scanning to e-mail could sweep old printer. Error code (CC3-103-00030302). Says "failed to write the file in 'Destination folder',

    Got, it works.  Here are some things I've done.  I'm sure that some of them are useless holes to leave open, but its not working.  These settings can be removed that time to identify exactly what is required to have fixed.

    Windows 7 64-bit Brother MFC-J615W network Scan to Setup

    1 open the windows firewall ports UDP 137, 54925 & 54926

    2. set the read/write for the guests and users permissions

    3. uninstall/reinstall

    4. in CC3 configuration of SCANNING has two tabs; a device and software.  You must pay attention to the directory/s you want to use.

    Now, I am very satisfied with this printer.  This is my first brother and I don't think that the last to the first impression.  I have now this printer works wirelessly with a Ubuntu Netbook Remix, a MacBook 10.5 OS and Windows 7 64-bit.

    * I am also able to scan in PDF without problem.

    See you soon

  • the monitor can not display any image on the screen. CPU power button is lit orange instead of green.

    Original title: I have absolutely no idea of what is wrong with my Dell Dimension C521 Windows Vista (x 86)

    It is impossible to display an image on the screen. CPU power button is lit orange instead of green.

    See page 47 of the owner's manual

    http://support.Dell.com/support/eDOCS/systems/dimc521/en/OM_EN/RP333A00.PDF

  • DVD how much we need for the files backup with backup and restore program?

    Hello how are you?
    DVD how much we need for the files backup with backup and restore program? Y at - it large differences in the time and space between write backups on DVD and external hard drive?

    I do not understand your question.  Asked how the space has been used on your C: drive and you answered 60 GB.  Now you say your PARTITION C: is 60 GB with only 20 GB used?  I really don't understand what you're so confused.  It's simple arithmetic grade 3rd.  What is space you USED on the C: drive, that multiply by 0.7 to obtain the amount of space will be used on your backup disk after compression.  Divide this number by 4.7 and round.  That's how many DVDs you'll need if you insist on the use of DVDs for backup.  Then

    (1) If you are using 60 GB, the answer is (60 x.7) / 4.7 = 8.936.  I rounded up to 9 and added 1 just to be sure.

    (2) If you use only 20 GB, the answer is (20 x.7) / 4.7 = 2.97 rounded up to 3.  Add 1 and get 4.

    If you use only 20 GB, I am very surprised, because almost any important installation of Windows 7 is going to take more than 20 GB.

    All of this assumes that you do NOT use the Windows backup and restore program, but one that I recommended.  When I used the windows one, the results were several times the space that I used on my C: partition.

    Good luck.

  • What is the file brayhs with size zero?

    Original title: brayhs

    What is the file brayhs with size zero?
    How can I clean my system (windows Server 2003) this?

    Run a full scan of the system and set your PC to show hidden and system files and the folder and check if there is any suspicious element or just try to delete.

  • I lost all the file associaation, with the exception of aol, how do I add these files?

    I lost all the file associaation, with the exception of aol, how do I add these files?

    Hello

    1. what happens when you try to open a program?
    2. have you made changes on the computer recently?

    Try the steps listed in the article below and check.
    How to change or choose the program that starts when you double-click a file in Windows XP
    http://support.Microsoft.com/kb/307859

    I hope this helps.

  • write the file

    Hello, I am trying to write to a file here is a clip

    FILE * f = fopen("' / shared/documents/save.txt ', 'w'");

    if (f is NOTHING) {

    fprintf (stderr, "failed to create output.txt...\n");

    _exit(2) (1) ;

    }

    fprintf (f, 'Hello World');

    Close (f) ;

    The error I get is impossible to create output.txt why it is not write to this location?

    & If I write for

    fopen (".") ("/app/native/save.txt", "w"); He writes the file but I cannot find the location of the device.
    What escapes me as to why he wrote another the doesnot?

    Thank you

    Request/grant permissions 'Files' in the bar - descriptor.xml?

    What is the error you get?

  • name the file exported with date

    Hi, I use this command to export my schema

    exp file = c:\expdat.dmp med/med

    I think that if I use the same command over and over again, it will replace the old file with the new one? right?

    2. I want to name the file exported with the sysdate (date and time)? , and I think it's a way to create a new file and does not replace the old file.

    Thank you

    Here is an example of adding a date for a file name:

    > exp med/med file=c:\expdat.%date:~10,4%%date:~7,2%%date:~4,2%.dmp

    To add as a data and once, you just need something based on time that is unique, so try something like:

    > exp med/med file=c:\expdat.%date:~10,4%%date:~7,2%%date:~4,2%.%time:~1,1%%time:~3,2%%time:~6,2%%time:~9,2%.dmp

  • ORA-09817: write the file verification failed

    Dear all,

    Enter the user name: sys as sysdba
    Enter the password:
    ERROR:
    ORA-09817: write the file verification failed.
    Linux-x86_64 error: 28: no space is available on the device
    Additional information: 12
    ORA-09945: failed to initialize the audit trail file
    Linux-x86_64 error: 28: no space is available on the device

    When I m trying to connect to the database I m getting this error.

    When I do a df

    + / dev/sdf 165139820 158449288 0 /u01 + 100%

    Its 100% can all the files I need to remove to connect to the database

    I tried to move adump files to another drive as / u01 player say only 100%

    I m using 11g it please can someone help me a this.

    Thank you and best regards,
    Hiroji gallot

    You should monitor your space... Do not let the problem happened just because you forgot to monitor by simple command (df - h), please mark this thread as answered.

  • Transfer the file RAW with edited Information?

    I have Lightroom on my pc laptop and desktop (Windows Vista and Windows 7 64 bit respectively).  I copied a few Canon RAW CR2 files to my laptop in the field and edited some of the files.  Is it possible to transfer these changes, along with the files on my desktop pc?

    Probably do you a temporary LR catalog on the LT to make your changes, but your permanent catalog is on the DT?

    On your LT, if you use the library / metadata / save metadata to the files (plural) with selected images in the library grid, you should get an XMP file for each file CR2 containing the snapshot of adjustments when you perform the backup.  Copy the CR2 as well as the XMP file on your desktop, and when you import the changes will be part of the State of the initial import.  If you have already imported the files on your w/o the XMPs DT, then remove them from the library of DT (but not record) and reimport them after copying the XMP files above.

    If it is something unique, then the single transfer and CR2/XMP is ok.

    Depending on what else is in the your LT LR catalog, you can export a catalog, with just your images and their settings and import this catalog on your DT, change the paths to the images if necessary on the side of DT.

    Presumably, you know how to copy files (CR2s, XMPs, LRCATs) from your laptop to your desktop through a network or a USB drive connected, right?

    Either of these processes is a little messy.  If you do this on an ongoing basis then think about how to make the process as simple as possible.  What I do is have the LR catalog and images (for the last year, at least) on an external drive 1 TB USB3-speed that I bought at Best Buy, where drive letter is set to be the same on both computers I use LR on, and then I just plug in the USB drive to any computer I want to use at the moment.  I backup all the contents of the drive every night at a different speed USB3 drive so if I never forget that I'm wearing autour and destroy it, then I have another copy of everything.

    The initial copy took time, but changes in nightly replication does not take too long.  I use PTReplicator from KarenWare to plan a my pictures folder replication nightly at 02:00.  There are other similar programs to facilitate unidirectional replication such as RoboCopy SyncToy and DoubleTake.

  • Problem of the satellite A50 with power!

    Hello
    My laptop has a contact with tea and I cleaned main Board and all others. And now it does not start when I push the power button / stop (when the battery is charging) light flashing battery and the laptop does not start. When the battery is fully charged when I push the button walk / stop there is nothing that's happened. Any suggestion what I supposed to do?

    If any fluid pours in a laptop or any electrical appliance the first thing you need to do is to remove any power source. In this case this includes your laptop battery. If the liquid contains sugar, you can rinse the cold tap water, distilled water is preferable. Then find a place so he can dry and leave. Somewhere with a dehumidifier is ideal but a ventilation compartment will... Leave it for a week to be sure. Then once you are sure that it is not dry replace the battery and the power supply cross-fingers and turn it on.

    I saved many keyboards, PCs and mobile phones using this method, but the success is never guaranteed.

    If you do not remove the power quickly you run the risk of a short circuit. Maybe it's what has happened here.
    In this case you will need an engineer to take a look for you.

    With the battery removed the laptop turns on?

  • Error-2625 cannot write the file call node in NI_XML.lvlib:Save.vi

    I get this error when you perform a certain acquisition with a CoolSnap HQ2. The user defines its parameters, then these settings are saved in the file so that they can be easily identified later in the database. The error came to us when we did a test with 4 different parameters. We did: Laser X w / filter X; Laser X w / filter Y. Laser Y w / filter X; Laser Y w / filter Y.

    The first and the third is saved without errors, but the second and fourth receive errors.

    Error-2625 cannot write file call node in NI_XML.lvlibave.vi

    Someone has an idea, what happens? This is the vi I'm talking about.

    I forgot to mention that the name of filter attribute is 593/LP, could the "/" be the cause?

    Found the solution. It is indeed the "/" in the name of the filter that caused the problem. I replaced it with a '-' and everything worked

  • dialog box: write the file name

    Hello everyone,

    I want to show a dialog box wich ask user write the name of the file before be registered with that name. (See attachment please)

    Thank you ALL,

    Tell him its very simple.

    Good luck

  • Cannot shut down Windows 10 laptop with power button / stop

    I have a laptop Aspire E5-532 with Windows 10.  I have configured the power management to turn off the laptop when I push the power button.

    It does NOT work.  When I push the power button, nothing happens.

    Help!

    I thought about it.  Press the button for a few seconds so that the system recognizes the button push!  When cela all functioning properly.

Maybe you are looking for