Problem processing multiple files with dll

I'm using a function in a dll that turns a binary data file into a TSV file with actual numbers.  The function takes three inputs, a pointer to a string for the input file path, a pointer to a string for the file to write and an integer for "integrity check" which as far as I can tell does nothing.  I have the dll in a subvi, pass it a string corresponding to the input file path and let it convert the file.  This works but will only convert the first 254 files then errors out.   The only way I can get it to work again is to close labview completely and reopen it.  My experiment requires the conversion of literally thousands of files so closing and reopening labview gets old real quick.  I have tried creating a reference to the subvi and closing it for each file but this still does not work, I have also tried on windows xp and windows 7.  When the new files are created they have a size of 0 kB and are empty until I close labview then they assume a reasonable size (few kB) and have data in them.  Additionally if I try to delete one of the newly created files while labview is open I get an error saying the file is open in labview.  I can delete the files when labview is closed.  I have also tried opening each file and closing it after the conversion but that does not work either.
I believe this is some sort of file open limitation but I don't know how to get around it, I'm almost to the point of writing one of those mouse move/button click macros nerds use for games to convert the files because this is driving me insane.

I managed to get the c code for the dll (it was somewhere on the computer). I can only pass an integer to validity otherwise it errors, is there an unsighed char in labview?
_declspec (dllexport) int converting(char *filetoRead, char *filetoWrite, unsighed char validity)
FILE *fpin, *fpout;
int result;
int records=0;
int valid=0;
unsigned long MTOFL=0;
unsigned long MT;
struct {unsigned ADC:12;
unsigned INVALID
unsigned MTOV:1;
unsigned GAP:1;
unsigned ZERO:1;
unsigned MTHIGH:
unsigned R:8;
unsigned MTLOW:
} DataRecord;
fpin=fopen(filetoRead,"rb");
fpout=fopen(filetoWrite,"w");
while(1)
result = fread( &DataRecord,
if (result!= 6)
return(0);
records++;
if(DataRecord.MTOV)
MTOFL += (unsign
if(validity==1)
if(DataRecord.INVA
continue; // don't sav
valid++;
MT = (((unsigned long)Data
fprintf(fpout,"%11lu",MTOF
fprintf(fpout,"%5u",DataRec
fprintf(fpout,"%4u",DataRec
fprintf(fpout,"%6u",DataRec
fprintf(fpout,"\n");
fclose(fpin);
fclose(fpout);
return 0;

Similar Messages

  • Elements 11, PC Windows 8.  Problem: Process Multiple Files is grayed out.  How can I activate it?

    I have to reduce the resolution for files in a folder.  I have done this in the past but have a problem with the reinstall of Elements 11 on a PC that lost it's mind and had to reinstall all software.  The Process Multiple Files under the File heading is grayed out and will not allow me to point to the files to be reduced.  Sure would like some help on this.   THX.

    You have to be in Expert Mode (see this picture) to enable the "Process Multiple Files ..." from the file menu.   You are in the Editor windows, right?

  • Problem Processing Multiple Files in Photoshop Elements

    I have always used the process multiple files option in the File drop down menu without issue. I recently completed editing some photos as I have done before and wanted to process them into a smaller JPEG file and add my watermark. I set all the settings in the process multiple files program and clicked OK. The first image came up and appeared to process but then a "save as" dialogue box came up. The box was asking to save the file as a photoshop file and not a JPEG. I cant seem to find out why it is doing this. I have restarted the program and my computer running it and I have tried running the same process on other files with the same result.

    Which Elements version ?
    Was it a raw format file ?
    If so, is your bit mode menu in the middle of the bottom bar of the ACR dialog set to 16 bits ? Try setting it to 8 bits and save a raw file in 8 bits before trying the process multiple files again to see if that makes a difference.

  • Process multiple files issues

    Hi all,
    I tried to process multiples files with PSE9.
    My purpose was :
    Source DNG files
    Photo optimization, add a tag left bottom and record the results into jpeg high quality files in an empty directory.
    The results I got were :
    -optimization applied
    -Tag not included
    -for every single file a pop up windows required a location to register the file (psd format)
    -no jpeg file produced
    I do not understand what I miss coded so that I did not get my jpegs.
    How can I avoid the pop up phase?
    Regards,
    Thierry

    Michel,
    I ran the test again with ACR screen tagged at 8 bits rather than 16 bits.
    The process went up to the end without any pop up. The tag is there etc.
    As a conclusion I would say that you're right and when you require a jpeg while you openned the file as 16 bits PSE9 propose a compatible format even if the message is not explicit.
    Regards,
    Thierry

  • PhotoShop Elements 10...I need help with font size for watermark in Processing Multiple Files.....

    I have PhotoShop Elements 10, and I am trying to watermark some of my photos, I have successfully added them one at a time with a font large enough to be seen. Now I am trying to add it using the "process multiple files" , I can do that but the font even at 72 the largest setting is so small on the photo you can barely read it! Can anyone help me the size larger on my photos?

    Thank you, Michael. I just watched the Russell Brown video again for CS6 and looked real closely at his settings in ACR and he was using 240ppi. I changed my file in image size to 240 ppi and then ran the script and the layer didn't change size this time when I ran the script.
    It is kind of annoying to have to change the image size everytime I want to run this script and then change it back again as most of my files are 300 ppi. I used to run his script for edit in ARC in CS5 and recall that if I just remembered to change the settings in ARC to 300 ppi while the script was playing and before pressing 'open' that the image wouldn't change size during the raw processing, but this doesn't seem to be working in CS6. Do you know of a way to use this script and not have to change the ppi for the image to 240?
    Thanks again.

  • Process multiple files and stack with originals

    I have had an ongoing frustration with PSE.  After ranking my photos I use the raw import to post process multiple photos.  Almost all of my post processing occurs during the raw import of my NEF originals.  When done I save the files as stacked JPGs.  Unfortunately I have not found a way to process multiple files and have them stay stacked with the originals.  This results in me doing a "Save As" for every single photo in the photo bin.  VERY TIME CONSUMING!!
    Has anyone determined a way to process multiple files into JPGs and have them stacked with originals?  I am sure this is possible and it is really driving me crazy!!  Any help would be greatly appreciated. 
    Ken
    P.S.  I did search the forums for key words around this issue and wasn't able to turn up any hits.  My apologies up front if this has been addressed before.

    Check http://photoshopelementsbyadobe.blogspot.com/2010/02/batch-processing-in-adobe-photoshop.h tml if it helps...
    But you will have to stack them manually and Auto-suggest stack can also be helpful !
    Give it a try and feel free to ask specific questions...

  • Processing Multiple Files Problem

    Elements 5.0, Windows Vista
    Under FILE I see there is a "Process Multiple Files" function.
    I have gone there and tried to process several images... setting it to "Convert To JPEG Medium quality" and processed.
    My thought is that, same as "Save To Web", it would have taken a 100k jpg and made it say 40k for the web as it would if you used "Save To Web" and saved with JPEG Med Quality there.
    But it doesn't, the file size is near exactly the same after processing. I have hundreds of images to process at a time and I can't possibly do save to web one by one by one.
    Any idea what is going on? How to make it work? Maybe it's not supposed to do that?
    Suggestions on how to automate a batch of alot of images for save to web compression?

    Check out (free) ImageMagick
    -- it has a
    wealth of options for image conversion.
    Best regards, Be sure to check for answers to your questions at
    John Navas http://help.adobe.com/en_US/PhotoshopElements/6.0/

  • Can't process multiple files on one of three catalogs

    After getting straightened out about getting my catalogs in order, which I've done, I've run into another problem. I have three catalogs one for People, one for Things and one I call Workplace where I try out things that are new to me so I don't mess up my main catalogs.
    I've straightened out the files in my Things catalog. I have one catagory that contains images of autograph book pages from the late 1800s. Those scans were done in JPEG some time ago. I've tried using multiple processing to change these 55 images to psd in the original file to be consistent with the rest of the catalog. Each time the process fails.
    In order to see what the problem might be I have copied the catagory file into both of my other catalogs and have been able to process the catagory file back into itself as psd. I have also created another small file in the Things catalog and tried to convert it and had the same result. The warning info box that appears when copying back into the same file states that the original files will be overwritten. The psd files do not overwrite the jpg files. They are added to the original file. That may be the way it is intended to be. That's not a real problem.
    The real question is why can't I process multiple files in the original catalog. I have looked at the error file and, although I don't know much about most of it, I found the following in the first part of the file.
    crash exception="EXCEPTION_ACCESS_VIOLATION"
    I run XP SP3 and PSE 8. I am a single user with administrator rights. I find no mention of a  permission filter in the PSE 8 program.
    I'm stuck until I solve this problem and I need help getting it done. Any suggestions or information will be greatly appreciated.
    Message was edited by: Minocq

    One thing to try : instead of using 'process multiple files', can you use the 'export' feature in the Organizer to export the jpegs of that category in psd format into a new folder ?

  • Process Multiple Files in Bridge

    I am trying to process multiple files in Bridge CS3 using Photoshop Elements 9.  It does not give me an error, it just does nothing.  Can someone help me figure out how to fix this?  It used to do this now I am having problems.

    Can someone help me figure out how to fix this?  It used to do this now I am having problems.
    Without knowing your workflow or your OS to my knowledge Bridge CS3 is not designed for Photoshop Elements 9 but for Photoshop CS3. There used to be a Bridge CS4 version bundled with PSElements 8 for a Mac but thats all I know about it.
    However if you want to open files from Bridge in PS Elements you should either select the files you want and with right mouse click menu choose open with and from the submenu choose PSElements 9 or go to the Bridge preferences file type associations and change the file type you need in PSE to open in PSE9 by default.
    If this is not the answer you expected could you be more specific about OS (windows/Mac) and what you mean with process (raw settings, batch actions or just open in, etc.)

  • How To Split File In to Multiple Files With out using B.P.M

    Hi Guys,
    How To Split File In to Multiple Files With out using B.P.M.
    Thanks in advance
    Regards's
    KIran.B

    Hello
    below r the links were u will find message spilitting by graphicaaly i.e without using BPM.
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    Sender File Adapter with file conversion  Multimapping --file content conversion with split messg mapping
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748---- [original link is broken] [original link is broken] [original link is broken]
    multimappig
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    hope this resolve your problem
    thank's
    Chetan

  • URGENT!!!  Please help~ Process Multiple Files says folder empty

    When I try to use the Process Multiple Files feature, it is giving me a message saying that the process was stopped or cancelled. Press continue or stop.  When I click continue, it say that the folder is empty.  It is not empty.    This is  what I use all the time to put my watermark on my photos.  I've never had a problem with it before.  Any suggestions?  Please

    Thank you for responding.    I am using Windows 8.  Since posting this about Process Multiple Images, I have noticed that PSE is not even opening images.  It will open the File>OPEN window, and act like it is going to import the image for about 1 second.  Then......nothing????   Any suggestions?

  • Process Multiple Files hangs Computer

    Running PSE 12 on a HP Pavilion with Windows 7 Home Premium SP 1 and all current patches applied.
    I am what I consider an avid photographer (not professional but I take a lot of pictures) and I have been using PhotoShop Elements for over 5 years (all different versions of course).
    Recently whenever I use Process Multiple Files in the editor to get photos ready for displaying on my blog my computer just hangs and I have to turn it off by way of the power switch.
    Here is what happens:
    I edit photos in the editor adjusting exposure and cropping and such then I need to get them ready to display online so I go into Process Multiple Files (much faster then doing it one by one).
    I then point the output to the folder I want adjust the output size and file type to JPEG and click on OK.
    The photos get processed as always and I am presented with the blank editor screen (no pictures as they all closed after being processed)
    Then when I try to go back to the organizer (or any place else) the computer just sits there and does nothing (The clock does not even update during this hang).
    I tried to get to the Task Manager by hitting the Ctrl+Alt+Delete keys but nothing happens. The computer is totally unresponsive.
    I have even tried just letting it sit and see if it ever comes back. When I did this it eventually blanked my screen after the time I specified in the screen saver. When I moved the mouse it just came back to the empty editor.
    When I need to edit my photos I use Process Multiple Files all the time as it is a great time saver when saving photos for the web.
    Any and all help will be appreciated in resolving this issue.
    P.S. I have been using PSE12 since December of 2013 without any problems until now. Also it does not matter if I process 3 files or 30 files same results, computer hangs.

    R_Kelly
    The folder I was trying to process was in another folder with a
    backslash in the name. Once I removed the backslash, Process Multiple
    Files worked again. Thanks for the quick response and the helpful hint.
    Sincerely,
    Todd
    R_Kelly wrote, On 5/10/14, 5:59 PM:
    >
          Process Multiple Files jpegs grayed out
    created by R_Kelly <https://forums.adobe.com/people/R_Kelly> in
    /Photoshop Elements/ - View the full discussion
    <https://forums.adobe.com/message/6371873#6371873>

  • Process Multiple Files, PDF failing

    I am trying to use the option to process multiple files in PSE 9. I select the source folder, destination folder, and no matter what I select as a converting option I get the error.
    "There were no source files that could be opened by photoshop elements"
    Despite the fact that PSE successfully opens each of these PDF files in the background, it just doesn't do any processing and displays the error.  So now if I go back under the process multiple files menu, and select Process Open files, and click OK, it will now convert each of the files that PSE left open during the previous failed attempt.
    In this particular test case I am trying to convert 10 1 Page PDF files to PNG format, but again the destination format selected does not matter as it fails no matter what. This seems like an obvious case of some sort of bug based on the fact that PSE is successfully opening and converting each file, it just won't do it when the folder is selected as the source.
    Any advice or suggestions would be appreciated, as we are currently running a trial of 9.0 to verify it can do everything we need it to do around the office. We are currently running PSE 2.0 so needless to say we are looking forward to running software thats just slightly newer if we can get some problems worked out.

    Did you ever figure this out?
    I have 100 single PDF files that I would like to convert to JPG.  There are online tools like zamzar.com to do this but there are limits on number of files, or if combined on the size.
    I have Adobe Photoshop Elements PSE 11 and using the batch processing "Process multiple files" option I can select that "from" directory, it thinks awhile, opens them all in Adobe Photoshop with the same error you indicated above: "There were no source files that could be opened by photoshop elements".  It does not make sense because as you say, I can then simply "Save As" and convert into jpg format.  Opening a PDF file without multi support works just fine, as well.  The tool does what I need, just doens't work in the batch mode.
    Thanks!

  • Process multiple files

    Elements v 4.0 How do you input files in "process multiple files" function. I get "file empty" and "disc not available" messages when the reverse is the case.

    99jon
    I have added some comments because this feature is not behaving
    according to the book.
    I have tried using dummy files with simple titles but nothing works
    and I do not understand what is causing the problem. The Mac input
    does not seem to be acceptable. Pity, because I have a use for it in
    re-titling various photos.
    Bate*
    >
    >Re: process multiple files
    >created by <http://forums.adobe.com/people/99jon>99jon in Photoshop
    >Elements - <http://forums.adobe.com/message/5914417#5914417>View the
    >full discussion
    >You normally create a new folder. Choose the folder with your
    >originals as the source. Choose your new folder as the destination.
    >
    >Please note that the Adobe Forums do not accept email attachments.
    >If you want to embed a screen image in your message please visit the
    >thread in the forum to embed the image at
    >http://forums.adobe.com/message/5914417#5914417
    >
    >Replies to this message go to everyone subscribed to this thread,
    >not directly to the person who posted the message. To post a reply,
    >either reply to this email or visit the message page:
    >[http://forums.adobe.com/message/5914417#5914417]
    >
    >To unsubscribe from this thread, please visit the message page at
    >[http://forums.adobe.com/message/5914417#5914417]. In the Actions
    >box on the right, click the Stop Email Notifications link.
    >
    >Start a new discussion in Photoshop Elements at
    ><http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=3347>Adobe
    >Community
    >For more information about maintaining your forum email
    >notifications please go to
    ><http://forums.adobe.com/thread/416458?tstart=0>http://forums.adobe.com/thread/416458?tstart=0.

  • Process Multiple Files on a Mac.

    Erroro message is "Could not complete your request because of a disk error".
    I have a new Mac Book pro with the new Lion OSX. I've installed PSE 10. I used to have a PC and I absolutely love Photoshop Elements. I especially love being able to batch process a lot of photos at one time automatically.
    It seems that PSE is not finding the photo files. They are there but they are not being picked up by the program. Is this program not compatible with this computer or what. I am getting very frustrated and feel I have wasted my money on buying a program that once was a very easy program to use. How do I get PSE to work in the process multiple files function.
    I've read all the tutorials and researched some of the answers provided in this forum but the one that may have helped me is not an easy problem solving exercise. What am I doing wrong.
    I notice that PSE will not find files on I Photo either, so I have to create seperate files to even begin to start to find the photo files in PSE.
    Looking forward to a fix on this as I have been a huge PSE fan.
    Phil...

      The editor prefs often get corrupted. You may need to rebuild the editor preferences to resolve any conflicts.
    Hold down the Cmd+Opt+Shift keys and simultaneously click on the Edit button on the welcome screen. Release the three keys and look behind the welcome screen by closing it. Or go to applications and hold down the three keys whilst double clicking on Photoshop Elements Editor application.
    You should see a pop up box with the words: Delete Adobe Photoshop Elements Settings File?
    Click on Yes
     

Maybe you are looking for

  • Not able to load data in view

    Hi All i had created one view based on four different tables.Now to enter the data in load i had successfully created INSTEAD OF TRIGGER on view.But data load into tables but when i try to see data in view then its shows me nothing. so why my data no

  • Language settings and Google

    I like to keep my iPhone's language and regional settings in Japanese. This in turn redirects all Google related activity to google.co.jp (and Wikipedia also goes to .co,jp), but I want to keep it to google.com so that my search results are in Englis

  • Can Badi WF_SUBSTITUTE be used for SRM approval substitution

    Hi, We have a requirement where we want the substitutes (active and passive) to be restricted by roles. That is when the approver is assiging the substitute system should allow him to assign the substitute with users with Manager roles only. Is it po

  • Create A Link to More Text on the Same Page?

    I want to know how to make a link that says "MORE" that will reveal additional text on the same page. I am NOT referring to a link that will scroll the user to a different part of a page. I am talking about a page with a lenghty amount of text that i

  • Bloggie MHS-TS10 /TS20 EXPORTING to bloggie help me

    ok so i just bought bloggie mhs-ts10 i have no trouble exporting videos to my bloggie i have imported from my bloggie.. but when i try to convert other vids i have that were not associated with the blogie i get an error... the non associated videos w