Error trying to write to a measurement file and then send via gmail.vi

So as the title says, I have a VI which is writing to a tdms file, and I want to send the file by gmail once the program has completed it's run. I downloaded gmail.vi and am integrating it into my existing code. Both my original code and the gmail VI work fine on their own, but when I try to have the combined VI send the data file by email, I get the error message that I've attached.
Basically, it seems like the .tdms data file is in use by the measurement code, and I need to know how to free it up so that the gmail code can attach and send it.
I've attached the main code as well as my modified gmail VI, so hopefully someone can take a look at tell me what I'm missing.
Any help is much appreciate!
Attachments:
Error.PNG ‏19 KB
PID Controller - Cleaned Up.vi ‏239 KB
Email Alert.vi ‏19 KB

While I can't view all of your code because it is missing several SubVIs, I have a good idea of what you are trying to do. I believe the culprit is the "Write to measurement file" express VI. Near as I can tell the original reference to the TDMS file is being held open inside the express VI. Here's a good general rule for using Express VI's: when you see them, RUN THE OTHER WAY! I say because there is almost always a significant amount of code in there that is unnecessary, In this case, you simply need the Open TDMS file, Write to TDMS, Close file functions; you do not need all of the extra code that is in the express VI's.
<edit> P.S. I hope the username/password in Email alert.vi is a placeholder otherwise you just gave every idiot with access to LabVIEW your username and password to the account.
Charles Chickering
Architecture is art with rules.
...and the rules are more like guidelines

Similar Messages

  • With Mozilla Firefox, I cannot go to "File" and then "Send Link" so as to pull up an email ready to send via Outlook Express, as I can with Internet Explorer - how do I change the settings to permit this?

    If I am using Explorer, I can go to "File" and then "Send Link" -
    an email will automaticallt pop up, with the website url pasted in;
    I merely put in the recipents email address, hit Send, and away it goes
    With Firefox, the email does not pop up; I have to manually pull up an email ("create mail"), then copy and paste the website url
    displayed by Firefox
    I want to override this default to Explorer

    Hi,
    Please try this: '''Tools''' (or '''Alt''' + '''T''') > '''Options''' > '''Applications'''. Look for or start typing '''mailto''' in the search box and for the '''Action''' change it to the desired mail client (the application that opens up in Explorer) if the value is different.
    '''Options''' > '''Applications''': https://support.mozilla.com/en-US/kb/Options%20window%20-%20Applications%20panel
    Managing Actions: https://support.mozilla.com/en-US/kb/Managing%20file%20types

  • How do I scan a photo to a file and then send the file as an attachment via email.

    How do I scan a photo to a file and then send the file as an attachment  via email.

    All of this depends largely on what printer /software you have, which Email client you use and to some extent which OS you are running.
    Most HP printers have HP Solution Center which is used to set up scanning,choosing where to save,etc. Once a file/photo is scanned and saved to the folder, open the folder.Select the file and at the top of the window should be the option to 'Email'.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Import group members those are inactive more than 30 days to a csv file and then send the updated list by email

    Hello,
    I am very new to powershell and I have been looking for a solution where I can list all the inactive members more than 30 days from  particular groups in AD, export the updated list to a csv file and send the file by email . . Can someone help me on
    this?
    thanks

    Hi,
    Take a look at Get-ADGroupMember, Get-ADUser, Export-Csv, and Send-MailMessage:
    http://ss64.com/ps/get-adgroupmember.html
    http://ss64.com/ps/get-aduser.html
    http://ss64.com/ps/export-csv.html
    http://ss64.com/ps/send-mailmessage.html
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Trying to write out a binary file

    I have found that using the Dataoutputstream is the way to read the file but writing I can't seem to get. Below is the code. It is writing out some data but not all is accurate is there anyother way to copy exactly what is in one file to another by just renaming??
    DataInputStream brL = new DataInputStream(new FileInputStream(LogFile));
              DataInputStream brE = new DataInputStream(new FileInputStream(ECGFile));
              DataInputStream brS = new DataInputStream(new FileInputStream(SpeechFile));
              DataInputStream brH = new DataInputStream(new FileInputStream(HistoryFile));
    DataOutputStream bwL = new DataOutputStream(new FileOutputStream("c:\\Projects\\FirstSupport\\LOG_data.out"));
              DataOutputStream bwE = new DataOutputStream(new FileOutputStream("c:\\Projects\\FirstSupport\\ECG_data.out"));
              DataOutputStream bwS = new DataOutputStream(new FileOutputStream("c:\\Projects\\FirstSupport\\SPEECH_data.out"));
              DataOutputStream bwH = new DataOutputStream(new FileOutputStream("c:\\Projects\\FirstSupport\\HISTORY_data.out"));
              System.out.println("Starting to copy files");
              try{
              int c = -1;
              while((c = brL.read()) != -1){
                   bwL.write(c);
              while((c = brE.read()) != -1){
                   bwE.write(c);
              while((c = brS.read()) != -1){
                   bwS.write(c);
              while((c = brL.read()) != -1){
                   bwH.write(c);
         }

    use a FileInputStream and a FileOutputStream. You don't need to use the DataInput and OutputStreams. You can use a byte array to store the contents of the file and then write the contents of the byte array to a file.
    try{
        FileInputStream f = new FileInputStream("myFile.dat");
        byte[] contents = new byte[f.available()];
        f.read(contents);
        FileOutputStream o = new FileOutputStream("myFile.new");
        o.write(contents);
        f.close();
        o.close();
    catch(IOException ioe){
        ioe.printStackTrace();

  • Mac OSX 10.6.8 running Photoshop CS5. My hard drive went belly up. Installed a new one and then tried to install Photoshop from my backup. I get an error message 6 telling me to uninstall Photoshop and then reinstall from the original software. But I boug

    Mac OSX 10.6.8 running Photoshop CS5. My hard drive went belly up. Installed a new one and then tried to install Photoshop from my backup. I get an error message 6 telling me to uninstall Photoshop and then reinstall from the original software. But I bought from Adobe online. How do I go about this?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • I clicked "yes" to upgrade iTunes and now it doesn't work. I get an error message stating my computer is missing MSVCR80 and then a message stating Error 7 (Windows Error 126). I've tried reloading iTunes twice. What can I do?

    I clicked "yes" to upgrade iTunes and now it doesn't work. I get an error message stating my computer is missing MSVCR80 and then a message stating Error 7 (Windows Error 126). I've tried reloading iTunes twice. What can I do?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Admin gets the following message while trying to update software: None of the selected updates could be saved. A network error has occurred. Check your Internet connection, and then try again. Any suggestions?

    I'm the Adnin. just recently I tried to update system software (Lion OS). The following message was returned. None of the selected updates could be saved. A network error has occurred. Check your Internet connection, and then try again. but I have internet access )email, Safari, etc.). Any idea of what is happenening?

    The error may be at Apple's end rather than yours. It could also be due to corrupted files on your computer. Try deleting the following:
    /Home/Library/Preferences/com.apple.SoftwareUpdate.plist
    /Home/Library/Caches/com.apple.SoftwareUpdate/
    /Library/Preferences/com.apple.SoftwareUpdate.plist
    Restart your computer.

  • Unable to make changes to a jpg file and then save it without the program trying to change it to a psd [was: What a Pile of Crap!]

    Can't even make changes to a jpg file and then save it without the program trying to change it to a psd!!!!!  No wonder nobody like Adobe anymore.

    Do you mean that PSD comes as a default option or that JPEG is not available no matter what?
    Did you add a layer?  Did you change the bit depth?  Did you add transparency?   The JPEG format does not support layers, nor 16-bit images, nor transparency.
    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Linux Mint 17, migrated from Win7: Verify that you have enough disk space, and that you have write privileges to the file system, then try again.

    I get this error message (The messages could not be filtered to folder 'Generic Folder' because writing to folder failed. Verify that you have enough disk space, and that you have write privileges to the file system, then try again.) popping up on many, though not all of my incoming filters. I recently migrated from a Windows 7 installation to a Linux Mint 17 system.

    I did give it time to run through everything when I initially migrated, and it frequently will sit open for 3 to 4 hours while I'm working on other projects.
    The 'Generic Folder' represents sorting folders in my main mail account in Thunderbird. For example, my mail which is listed to filter into my 'Amazon' folder is sorted there with no problem, while any mail designated to be filtered into my 'Games' folder prompts the above error massage.

  • I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continues to blink on and off. I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated

    I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continue to blink on and off.
    I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated.

    are you backing up files, or doing a Time machine backup, either way, the Time machine will STOP when finished and show "last backup at XXXXXX"  meaning its done...... OR if when transferring files, it will show a progress bar on your desktop and vanish when files are copied.
    Open up the Hitachi drive (your G drive is made by Hitachi, and the best made by the way).....and see if the files are there.
    a MORE VISUAL way is to open the hard drive file, and drag and drop files INTO the Gdrive and you can see them visually be copied there as you do it.
    To see your HD on your desktop GOTO  FINDER......PREFERENCES....then GENERAL TAB.........check the box marked HARD DRIVES.........then your Gdrive will appear on your desktop........open it from there,  and DRAG and drop files from anywhere INTO the Gdrive....... easy visual way to see the files being copied into the Gdrive.

  • HT4527 I am trying to move my library and playlists to a new computer by burning to CD's. However, I followed the directions by going to File and then Library - then they said to go to burn CD(s) - I DO NOT have that option for some reason. How do I do th

    I am trying to move my library and playlists to a new computer by burning to CD's. However, I followed the directions by going to File and then Library - then they said to go to burn CD(s) - I DO NOT have that option for some reason. How do I do this? I have done the library sharing thing but I am getting rid of my primary computer and am afraid I will lose the library.

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    and select the Library that you moved.  That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    Your second option didn't work because you simply referenced her library on the old machine.
    Regards
    TD

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • I get the following error everytime I download something from the internet:-"/Users/vinaypunjabi/Downloads/Ontario Colleges Chart(2)(1).pdf could not be opened, because an unknown error occurred.  Try saving to disk first and then opening the file".

    I get the following error everytime I download something from the internet:-"/Users/vinaypunjabi/Downloads/Ontario Colleges Chart(2)(1).pdf could not be opened, because an unknown error occurred.  Try saving to disk first and then opening the file".
    Then it shows as downloading failed.But if I click on it twice ,it opens up .
    this has started happening since last week.Before this ,it never happened.
    Please suggest what has gone wrong somewhere and how can I rectify it.

    Please install the following add-on to see if it helps.
    https://addons.mozilla.org/en-US/firefox/addon/pdfjs/

  • I just subscribed to IHome but when it tries to gather information about my music library, I get an error message that my Itunes is not responding and then it shuts down. Has anyone else had this problem?

    I just subscribed to IHome but when it tries to gather information about my music library, I get an error message that my Itunes is not responding and then it shuts down. Has anyone else had this problem?

    Thanks so much but none of that helped.  It was driving me crazy because it would back up another external drive.  I just changed the name of the drive from iPhoto/iTunes Library to Media Libraries and IT WORKED!! I guess for some reason it didn't like the drive being called iPhoto or iTunes ???? I don't understand but I have tried so many solutions and exchanging things out but the name change did it????!!!
    Thank you for your help and replying to this.  Guess I made my own issue!

Maybe you are looking for