How can I skip files in an imaqdx sequence

I would like to start an imaq image sequence but skip approximately 100 images before beginning storage of the images into a buffer.  In addition, I may want to stop aquiring and begin again without ending the sequence.  The reason I need to do this is for precise timing of image capture.  The camera that the sequence collects images from sends an external trigger to a device which then begins a timed operation.  If I had unlimited buffer space, I would not need to skip images, but I can't switch over to a 64-bit system at this time.
It seems to me that the best option would be to only save the images that I need.  The imaq version of sequence had a "skip" input that allowed specified images to be skipped, thus saving buffer space.  The imaq dx version does not have this.  Is there a work-around?  Perhaps there is an imaqdx sequence sub-VI that has a "skip" input like the imaq version of sequence or something similar?

Using a Producer-Consumer pattern, you should have no trouble at all keeping up with streaming 30 fps to disk.  The basic idea of this pattern is that you have one process, the Producer, running in a loop that that makes "data" (in this case images) at some rate.  As they are made, they are put on a Queue, typically of some finite length (for efficiency), for export.  There is another process, the Consumer, also running in a loop and trying to empty the Queue.  The beauty of a Queue is that the Consumer will simply wait patiently for something to process, then process everything until the Queue is empty, when it waits again.
If you are not familiar with the Producer-Consumer pattern, there is an example, called Queue Basics, in LabVIEW (Help, Find Examples).  The Producer is the Top Left Loop, the Consumer is the Top Right Loop.
You should be able to set the camera up to produced images (in Grab mode) at 30 frames/sec.  Allocate "extra" buffers (experiment -- you may only need a few) to hold the images.
Here is the Producer loop:
Allocate a Queue to hold Image buffers from the camera.  I'd suggest that 10 elements should be enough (gives you 0.33 seconds for processing).
Set up the camera (Grab, 30 FPS, allocate buffers).
Start the Camera.
Bring into your Producer Loop the Image Queue and the Camera I/O Reference.  Within the loop, ask the Camera for the Next Buffer, and put it on the Queue.  Wire a Stop control to the Stop button to stop taking images.
On exiting the loop, stop the Camera.  Check if the Queue is empty (either using the Queue Status, or simply wait a second), then Release the Queue. 
[In this simple example, I'm assuming you are only taking a single video, hence when you push the Stop button, above, everything gets ready to shut down.  It is easy to modify this code to allow you to start and stop, saving multiple videos].
Here is the Consumer loop:
1   Open a file to hold the video.  Use the appropriate palette for the type of file you are writing (for example, I know there are VIs to handle .avi files).
2.  Bring the File reference into your Producer loop.  Also, bring a branch of your Queue into the loop.
3.  Dequeue an image.  It's not a bad idea to put a time-out (say, 100 msec) on the Dequeue, and to follow the Dequeue with a Case statement, where the True (Timed Out?) case does nothing, and the False case handles your image.
4.  Write the image to your already-opened file.
5.  When dealing with parallel (e.g. Producer-Consumer) loops, it's always a "trick" to get them to both stop at the same time.  You've already coded a Stop of the Producer, which stops the Camera, and then Releases the Queue.  Well, if the Queue is released while the Consumer is waiting on a Dequeue, an error will be generated (possibly 1122, I'm not sure).  You can wire the Error line to the Stop condition, since when the Queue has vanished, there's nothing to Consume, so you can safely exit the Consumer.  [It is Good Practice to find out the number of the "Waiting on non-existant Queue" error and to use this as the Exit condition, since you might have other errors that you'd want to handle differently, such as "No more Disk Space"].
Bottom line -- unless there is something very peculiar about your setup, you should have absolutely no trouble recording 30 fps video with LabVIEW.
BS

Similar Messages

  • How can i relink files to the timeline sequence when i've deleted the source file path? All the attribute are still in the timeline, I just can't relink

    So i started an edit and had the whole thing finished and ready to export in Final Cut X, when i went to export I had a message pop up say that it couldn't export while FCP X is still referencing media. I went through trying to solve the problem and ended up deleting the source media folders in the Final Cut Events folder and reimporting the clips. This lead to a whole can of worms opening up and now i'm left with a whole edit with 90% of the clips in the timeline unable to relink to source media.
    Can anyone help?

    First find the files. Then File>Relink Event Files and point to the folder.

  • HT4847 How can I store files on iCloud?

    How can I store files on iCloud?

    Actually, I have found that this is very possible, combining several other tips from around the web, though perhaps not easy.  I am using Moutain Lion.  I am assuming that you have already activated and signed into iCloud previously.  Here are the steps for creating a cloud storage location that you can drage any file into, and access from any of your Macs:
    1) Create a new folder in the directory that is synced with iCloud.  Start by opening a Finder window, and going to the ~/Library/ directory.  Do this by typing Shift-Command-G while the Finder is open, and typing ~/Library in the goto window.  Next, open the directory "Mobile Documents".  Finally, Control-Click inside the Finder and select the "New Folder" option, naming it whatever you like -- I chose "iCloud".
    2) Step two is about creating a shortcut to this iCloud folder in the Finder.  You cannot directly drag the iCloud folder into the Favorites section of the Finder, but you can do this:  Control-Click on your new folder, and select "Make Alias".  Now, drag this alias over to your Favories panel in the finder.  You will be prompted whether you really want to move the Alias out of iCloud: Say "Yes".  Now, delete the Alias -- you don't need the original instance of it any more. (Alternatively, you can skip to the end of step 3 and drag the symbolic link into the Finder Favorites)
    3) Step three is about being able to access this iCloud folder from the Unix command line, and from the Desktop GUI.  Open a Terminal window (Launchpad => Other => Terminal).  By the way, I recommend putting the Terminal into your Taskbar, if it isn't already.  You should be in your home directory ... to verify, type "cd" and press Enter.  Now, create a Unix symbolic link (an Alias won't work for this) to the actual location of the iCloud folder:
    Type "ln -s ~/Library/Mobile\ Documents/iCloud/ iCloud" and press enter.  The command should be entered precisely, I recommend cut and paste.  The first character is a lower case "L" and there is a space after the backslash between "Mobile" and "Documents".  You should now have a symbolic link to the iCloud folder created.  To view it in the Finder, go to your home directory: Shift-Command-G, and then enter "~/" into the window.  You should see a folder called "iCloud" there, with a little arrow animation in the corner.  You can drag this into the Taskbar to have a permanent clickable shortcut.  You can also access the contents of this folder through the terminal.  From your home directory, just type "cd iCloud" and press Enter.  You are now in the iCloud folder (or more properly, your local version of it), and can use the usual Unix tricks ... "ls" to list contents, "mkdir ABCD" to make a new directory called "ABCD", "mv a.txt b.txt" to rename a file "a.txt" into "b.txt", etc.
    4) Step four is about accessing this folder on other machines.  On a second Mac, repeat all of the steps above *EXCEPT* for creating the New Folder in step 1 ... it already exists, but you can get it into your finder bar, and create sym-links in the same way from there.
    The great thing about this is that when you work, you are editing a *local* copy of the file, so you can work offline if you like.  Then, whenever you have internet access, the *actual remote* cloud copy of any new or modified files is uploaded.  Likewise, updated files are downloaded from the cloud to get your local files into sync.  You have the benefit/safety of a local hard copy, AND the portability (and extra safety) of cloud storage.  It's exactly what I wanted, and it works like a dream.  Plus, time machine can back up your *local* copies, to maintain version history.  I'm not quite sure what happens if you try to simultaneously edit a file from two places, but don't do that.
    Hope that helps you!
    JWSpaceman

  • How to remove/skip file header

    Hi,
    How remove or skip file header in java.
    Thanks in advance
    suresh
    [email protected]

    To remove it you must rewrite the entire file, leaving out the header.
    To skip it depends on what the file format is.
    If it's text, and the header is a line by itself, when you read the header line ignore it.
    If it's text and the header is part of a line, read the line into a string or stringbuffer and then extract the non-header information.
    If it's any other format, you need to be able to identify the header location and use a method that's valid for the data to ignore the header data.
    If the file format allows - ie, fixed header location and fixed-length header, random access methods can update the file in place without processing the rest of the file.

  • How can i open file from adobe reader..i already have adobe read

    how can i open file from adobe reader..i already have adobe reader installed and cannot open a
    file and i cannot convert my file into pdf..

    Is the file really a PDF? Where is it? Have you tried opening it from within Reader?

  • Where can I find the Start up disk and how can I delete file from it.

    where can I find the Start up disk on theMac Book Air?
    How can I delete files from it?

    The startup disk is the internal SSD in your MBA.  You may delete files by draging the file  to Trash (or clicking on them and then execute COMMAND+Delete).  Then empty Trash.
    Ciao.

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

  • How can I transfer files from one external HD (WD My Passport) to another external HD (Seagate Backup Plus)?  WD drive was improperly ejected and Finder no longer recognizes it.  Tried fixing with Disk Utility but failed.

    How can I transfer files from one external HD (WD My Passport 2T) to another external HD (Seagate Backup Plus 2T)?  WD drive was improperly ejected (although we did tell it to eject) and now Finder no longer recognizes it.   Using MacBook Pro and I just upgraded to Yosemite before this happened. Was told at Apple Store to use Disk Utility to repartition, but it failed.  It says to backup files and restore.  But how do I backup files?  Or would appreciate any other suggestions to repair drive.

    You may drag & drop between external hds. 
    Should you run into trouble.
    Take the exernal drive appart.  Take out the harddrive.  Try reading the data via a usb adapter. Put a household finan on the hd.
    http://www.cablewholesale.com/products/usb-firewire/usb-2.0-products/product-40u   2-01000.php?utm_source=Nextag&utm_medium=cpc&zmam=54972865&zmas=1&zmac=4&zmap=4 4 77

  • How can i upload files from one ip address to another  ip address machine ?

    how can i upload files from one ip address to another ip address machine ?

    i need to copy files from one client m/c to server m/c like sftp
    please suggest solution on this

  • How can I sort files in a folder by name?

    How can I sort files in a folder by name? iFS first sort files that starts with upper-case letter and then files with lower-case letter.
    Like:
    A_file
    B_file
    a_file
    b_file
    I want:
    A-file
    a_file
    B_file
    b_file
    This doesn't help:
    String[] sort_attributes = {"NAME"};
    boolean [] sort_orders = {true};
    SortSpecification sort = new SortSpecification(sort_attributes, sort_orders);
    currentFolder.setSortSpecification(sort);
    Do I have to get all items in a folder and then sort them?
    /Elin

    I do not think there is a way to do that without add-ons
    There are a couple of workarounds I am aware of
    * Add the bookmarks manually in the bookmarks library and choose the position. That is using Show all bookmarks -> open required folder -> select a position and right click -> add new bookmark <br />Rather a slow and clumsy process
    * Sort a folder and copy it. If you sort the folder contents then copy and paste them they remain in that order when pasted.
    There are add-ons but I have not tried them. For example
    * https://addons.mozilla.org/firefox/addon/simplesort-bookmarks/
    * https://addons.mozilla.org/firefox/addon/auto-sort-bookmarks/
    There will be others available and take note of the advice to backup bookmarks manaully.
    * [[Restore bookmarks from backup or move them to another computer#w_manual-backup]]_manual-backup

  • How can i transfer files from adobe reader to my kobo e-book

    how can i transfer files from adobe reader to my kobo e-book??

    I think you should ask in the Digital Editions forum,
    http://forums.adobe.com/community/adobe_digital_editions
    This is the Reader one.

  • How can I transfer files from my computer to my I pad ?

    How can I transfer files from my computer to my I Pad?

    Try a conduit such as Dropbox.
    Goodreader or Documents to Go also have helper apps that allow transfers.
    Goodreader is particularly good in that it has a integal file tree and you can mount your computers harddrive and navigate directly on your ipad.
    Use the open with to view/move files into other apps.

  • How can I transfer files from my mac to my iPad, e.g., mp4 files.  Do I have to use iTunes?

    How can I transfer files from my mac to my iPad in an easier way?  I'd like to put some movies on, and I can use iTunes, but is there another way?  I have transferred epub books using Dropbox.  Movies eat up a lot of dropbox space and the iPad has trouble getting them.

    USB disk. You still have to go through iTunes.
    Connect device to computer/mac
    Select your device in iTunes menu.
    Apps...
    At thebottom of the page you will see the app.
    Select it and the Add for windows and + for mac
    Hope that helped.
    In the long run there is no way to access or uplood data on your device without iTunes unless you JailBrake....

  • How can I copy file/folders from and to hard drives? How can I have two or more windows of explorer so that I can drag and drop from one hard drive to another?

    Hi,
    I am a new customer (purchased last week) of MacBookPro (latest) and its my first ever Apple laptop.
    I am almost lost to find the operating tools.
    1. How can I copy files from hard drive to computer and vis-a-versa?
    2. Only can browse one but how can I have two or more browses at the same time like in MS windows?
    3. No right click works on track pad?
    4. Is there application/ program compatible to MS office? If so how much and how can I purchase?
    5. Is there AutoCAD program that is compatible to MS Window AutoCAD? and if yes how much and how can I purchase?
    I will very much appreciate if you could email me the with the solution/answers please.
    Regards,
    Khagendra Limbu

    1) For some reason this happens once in a while with FAT32 enabled external harddrives. I have no idea why this happens but it most easily solved by reformatting the drive. First make sure you've copied everything from the external drive to your internal harddrive. You've done this earlier so I assume you know how to do this.
    Now the reformatting part. Open Finder and go to Applications. Look for the folder called "Utilities". Click on it. In it you find a program called "Disk Utility". Click on it. Now look for the external drive. You probably see two entries for the disk. Click on the one that contains the name of the drive NOT the one that describes the disk (Like for example 320.07 GB Samsung S2 Portable Media).
    Now you see four tabs in the righthand part of the window. They're called "First Aid", "Erase", "RAID" and "Restore". Click on "Erase". This opens the tab with (amongst others) a dropdownbox (Format) and a textbox (Name) . In the dropdownbox select "Mac OS Extended (Journaled). Take note! This selection disables usage of the drive with Windows PC's. If your goal is to share the drive with Windows PC's select the MS-DOS FAT option.
    Enter a label for the drive in the textbox Name. Now click on the button "Erase". This will format the drive.
    Now when it's done you can copy back all the items you've copied to your internal harddrive earlier.
    2) Opening two windows like Explorer on Windows is opening two Finder windows on the Mac. Simply click on the background. In the menubar you items like 'Finder", "File", "Edit", "View", et cetera. Click on "File" and "New Finder Window". Do this two times. Alternatively you can click on the background and press CMD-N two times.
    3) You can right click on the trackpad. This however depends on if you've enabled the feature in System Preferences. In the topmenubar click on the Apple icon and select "System Preferences". Now look for Trackpad in Hardware. Click on it. You see three tabs with the names "Point & Click", "Scroll & Zoom" and "More Gestures". Select "Point & Click" and look for "Secondary Click'. Make sure it is checked and make sure it has written "Click or tap with two fingers" written beneath "Secondary Click". When you're done exit System Preferences. Now select the background and tap with two fingers on the trackpad. This should open the contextuel menu with options like "New Folder", "Get Info" et cetera.

Maybe you are looking for

  • Safari 5 - Lost Reopen all windows from last session

    Do you know, how to make "Reopen all windows from last session" work in Safari 5? I dont have this option in History- http://tinypic.com/r/2m6lwfb/6

  • Adding Custom fields to SRM 5.0 & placing them in the portal (SC)

    Hi, I am having some trouble with adding custom fields to the SRM 5.0 portal Shopping Cart. I know that in order to have the custom fields appear, you first need to add them to the INCL_EEW_PD_ITEM_CSF & INCL_EEW_PD_ITEM_CSF_SC tables. However, how d

  • Weblogic.security.Encrypt  -and-  Not enough space

    This post has two questions. I have a simple application on wls9.2 that is a web front end to the weblogic.security.Encrypt command line utility. It seems to work fine, but after a little bit of use I am seeing the following: java.io.IOException: Not

  • Problem using url rewriting

    Hi! I am currently developing a struts based BC4J application. This application has to run using the internet explorer without java-script and cookies. Currently with cookies enabled everything is fine. But when i disable cookies it seems as if the a

  • SNP releases pur req for 18 months,can I convert pur req to pur ord for 2 m

    Hello expert, please suggest me how could i solve below issue. Scenario: SNP releases purchase requisition for 18 months. I need to convert purchase requisition into purchase order only for two months. u2013 how could I do this? How can I do this con