How to the get the count even after we exit the program and start again.

Hi,
I have a DAQ program which takes scans every 3 sec, scan number is incremented is been tagged with the filename of each scan. What my requirement is to save that scan number somewhere and get that number the next time I start the program, hence there is no repeatation of the scan numbers ever and I always end up having sequential scan files.
One solution which came to my mind is to save that number in the computer as excel or txt file and read back again the next time I start the program. I am just wondering if there is any better way of doing it.Please let me know.
Thanks,
Ankit

well ,
you can get an array of the files in the directory and scan for the highest number....
or use the the ini-file vis to write that number before exit (or after each file written)
here I first wrote the key  ... however I hope you got the key
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

Similar Messages

  • How can i get back my data after i restored my iphone and accidentally created a new iphone ac.

    how can i get back my data after i restored my iphone and accidentally created a new iphone ac.
    it did a back up when i started my restored iphone and i cant retrieve my previous backup while i didnt back up on icloud....
    the new ac is actually the same apple id as the one i used. I lost all my contact, photos and data of whatsapp...
    what can i do...help!

    I don't know if this is a similar problem but I wrote 2 notes yesterday on my iphone. I opened my mail to print them and they appeared as notes but wouldn't load. Then I looked at them on my iphone and I could see the notes but they quickly updated to blank with a time of the last edit the same time I tried opening them on my computer.
    Yesterday I updated to 4.3.4  I don't know if somehow that affected them. Are they stored somewhere else. Can I get them back?

  • Has anyone else experienced the stopping and starting again while  playing music in iTunes.  It was fixed but with the last update it has started skipping again.

    Has anyone else experienced the stopping and starting again whil playing music in itunes.  It was working fine wit the prior fix, but after the last update
    it started skipping again. 

    Try it in another vehicle see if it still happens, at least you can narrow it down to your  phone or the car. My 4s play totally fine, I have never had any of those issues. Maybe its time to restore your phone and start over. I would also have someone else play their Iphone in your car, see if it happens to them. Or try yours in someone elses car. Good Luck!

  • My program does not work properly. I run the program but it is not capable of adding any of my ebooks and when I connect my ereader, it recognises the device but  it does not add any ebook either.  I uninstalled the program and reinstalled again but nothi

    my program does not work properly. I run the program but it is not capable of adding any of my ebooks and when I connect my ereader, it recognises the device but  it does not add any ebook either.
    I uninstalled the program and reinstalled again but nothing gone better-
    What should I do?
    Best regards

    Do you have Logitech gaming software installed on the PC? If so, perhaps try the suggestion from the following post:
    Re: Everytime I close Itunes it loads back up

  • I got a new iPad last month and set up through iCloud. Still have a message on my screen that it is still restoring from iCloud. How do I get it to complete other than having to rest me start again?

    I Got a new iPad last month and sent up in the usually way and syncd to iCloud. However it has ever since shown a comment saying:
    Restoring from from I cloud backup
    i I have no idea how to get it to complete. Or do I need to re-set and start again?
    Help!

    Where do you see this message? I know it can take a few hours to restore from an iCloud backup if you had lots of apps, data, movies, camera roll photos etc on it, but it should not take days and daus to finish.
    Have you restarted or reset your iPad since you got it? Not the reset that you are talking about - I mean the system reset. Try either or both and see if the message goes away.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support

  • When i set iphoto to 'fit slideshow to music' the song cuts off before the end and starts again.  Anyone know why?

    I have tried changing the seconds each slide displays for and fiting the slides to the music and no matter what I do the song cuts off 30-40 seconds before it actually ends and starts again.  I haven't had this problem before.

    Hi kjackson73,
    Thanks for visiting Apple Support Communities.
    If the same songs seem to cut out on multiple devices, first try re-importing or converting them using iTunes. You can also download iTunes Store purchases again. See these articles for more information:
    iPhone and iPod touch: Songs or other audio content are skipped during playback
    http://support.apple.com/kb/TS3159
    If the original CD is available, remove the affected content from the iPhone or iPod touch and then import it again from the CD using iTunes.
    If the original CD is not available, convert the content to AAC using iTunes.
    Download past purchases
    http://support.apple.com/kb/HT2519
    Best,
    Jeremy

  • I was asked to download the iOS on my ipad3 which then completed automatically but instead iTune with a plug-in icon came on the screen. SInce then I can't operate the ipad even after I switch it off and on again. The icon just monopolize the screen.

    I was asked to download iOS on my ipad3 which the completed automatically but instead iTune with a plug-in icon came up on the screen. SInce then I can't operate the ipad3 even after I switch off and on again. That icon just monopolize the screen ! What shall I do now? Please help.

    Try and put your iPad in recovery mode
    http://support.apple.com/kb/ht1808

  • How can i get my photos back after i erased all content and settings

       Okay so i had a Iphone 5c and broke it so they shipped me a new one, And as i was trying to set my new one up the paper said to go to settings and back up my phone and then erase all content and settings from my damaged device, So i did. And for some reason i cant find anything in my icloud account.
       How can i get all my pictures back onto my phone but the knew one? Is that even possible? Or can i find them anywhere else? Like how can i restore a back up? I think thats what it is. I just need my pictures back really bad, Any suggestions!? Please help me

    I had saved my photos on my WD My passport but I think it was only saved like a preview.
    We need to know more, to be able to understand what you have done.
    How did you save your images to the external drive? Did you copy your Aperture library there?
    Is your Aperture library referenced or managed - did you store the original image files outside the Aperture library or are they included in your Aperture library?  If you have referenced images, did you back them up too?
    The error message you are seeing, shows that Aperture cannot find the original image file. That is indicated by the yellow warning badge with the arrow.
    If your Aperture library is referenced, you need to restore your backed up original image files as well from their backup, and then use the the command "File > Locate Referenced Files" to reconnect the image versions with the missing original files.  Do you have a backup of the originals? If you cannot restore your referenced originals, you can turn your previews into new originals; post back, if you need help with that.
    If your Aperture library is managed, and all your originals are included inside your Aperture library, try if the Aperture Library First Aid Tools can fix this:
    Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual
    Check if the "Masters" folder inside your Aperture Library contains any image files: Crtl-click the Aperture library and use "Show Package Contents". Are the missing original image files inside?
    Reagrds
    Léonie

  • How do I get my touchscreen back after upgradin to windows 10 and then returning to windows 8.1

    I upgraded my laptop to windows 10 and did not like it.  returned to windows 8.1 and now I have lost the touchscreen capabilities.   How do I get the touchscreen back?

    There is a solution in the thread immediately below this one that has an answer to restoring the touch screen.I would imagine the proceedure is the same in both Win8 and Win10. Try it. I forgot - it won't be where it was after I replied.... it's here: http://h30434.www3.hp.com/t5/Notebook-Operating-Systems-and-Software/Touchscreen-not-working-after-windows-10-update/td-p/5170340 

  • I accidently removed my home toolbar and can't get it back. how do i get it back even my view bar file bar and everything are gone help.

    i accidentally removed my home toolbar and can't get it back. how do i get it back
    == This happened ==
    Every time Firefox opened

    Hit the '''Alt''' key to show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark. Also check-mark the Navigation toolbar.

  • Firefox 7 hangs a whole lot in the past several weeks. I can hardly get through typing an email without it freezing and making me have to kill the program and start over.

    I am using firefox 7, windows 7 pro, 64 bit machine.
    If I am typing an email I never know if I can finish because it often freezes and I cannot get the mouse to do anything. I have to hit "control-alt-delete" and stop firefox and sometimes the process and then start over. Also firefox is consuming a lot of cpu resources
    (over 110,000k and sometimes near 200,000k). Is that normal?

    We're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and paste them into your response here.
    [[Image:SubmittedCrashReports-Win7|width=520]]
    <br><br>
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

  • I had somebody  work on my OS 10.9.2 to speed it up. He failed and now  Preview, Textedit, App Store, Mail and Contacts  do not work anymore. I can still use Safari, Firefox and iPhoto etc. How do I get it fix I can still use Safari, Firefox and ed again?

    I had somebody  work on my OS 10.9.2 to speed it up. He failed and now  Preview, Textedit, App Store, Mail (crashes) and Contacts  do not work anymore. I can still use Safari, Firefox, Word, Photoshop and iPhoto etc. How do I get the Apple programs fixed again?

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • Share does not show up even after turning home sharing off and on again.

    I cannot share movies between my computers.  The Share item appears in list after resetting Home Sharing but disappears reight after.

    Hello, lrc2. 
    Thank you for visiting Apple Support Communities.
    Here is an article I would recommend taking a look at.  Try all of the steps in this article and if you are still experiencing the issue, see step 9.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Cheers,
    Jason H.

  • Problems since I was updated automatically by Firefox. This is very annoying. Should I just remove all the updates and start again such as Adobe Flash Player 10 Plugin, Mozilla Firefox (3.6.14) and Firefox Setup 4.0 Beta 12?

    Problem with Pogo games.

    Mozilla are aware of the issue in Firefox 3.6.14 and are working on a fix, no timescale but they are planning on a quick release. Firefox 3.6.15 will fix the issue with some Java applets not working, which has caused many Pogo games to stop functioning.

  • HT1660 is there an easy way to delete the whole itunes library and and start again. I notice there is only an add file/folder button but no remove facility

    I recently upgraded to the iphone 5 and managed to sort the transition out with little trouble but noticed when I tried to put my music on that Itunes has messed with album info and either it or me has generated several copies of the same albums over the years and it makes it quite dificult to sort it all out before reloading on the phone. To stop the chaos I had hoped to clear the library and start again but cant find a way to do it. I was hoping to sort all my music out in original files and consolidate them into a proper folder. HOw do I do this. I notice there is an add fole and folder button but no take away??? is there an easy way?

    Use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. If you have multiple references to the same files then don't send to the recycle bin. Use my DeDuper script if you don't want to do it by hand. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

Maybe you are looking for