Multi-Camera-Link Vision Acquisition using .avi

So I'm trying to use two Camera-Link Cameras (JAI CM-200-MCL) with the NI PCIe 1430 frame grabber in order to obtain video of a y-axis tensile testing project, and I'm relatively new to the whole LabVIEW experience. Essentially, I want to be able to capture every image of the testing process, so I can correlate the tensile testing results with specific images using the same sample clock, (e.g. data taken at 30 seconds match the image taken at 30 seconds). I'm trying to put everything together in piece and I already have a fairly stable, working tensile testing program written for LabVIEW 2009. I'm now in the process of using IMAQ (4.4) to track these images and save them as a .avi file. I've provided some sample code -- although it currently isn't working -- that's very simplistic.
Questions:
1. Is there an even simpler way?
2. Can I sync the tensile testing VI and the Vision VI by placing the Vision VI in the Tensile Testing VI inside an event structure that's triggered by the "start" button. (Boolean)
Thanks 
Attachments:
Vision Acquisition.vi ‏199 KB

lyncheb,
How accurately do you want your test and images to by synchronized (second, millisecond...)?  If you only need to be accurate to around 1 second then software timing would work.  However if you need sub milisecond accuracy you will want to use hardware triggering.  The 1430 is capable of hardware triggering over a RTSI line.  See page 16 (2-4) of the user manual here: http://www.ni.com/pdf/manuals/372016a.pdf
What kind of data are you logging?  What hardware / software are you using to log this data?
Regards,
Sam K
Applications Engineer
National Instruments

Similar Messages

  • Stop/close camera in vision acquisition

    In my program i want to start the acquisition on 'ON 'state of the button and stop the acquisition / close the camera on "OFF " state of
    that button , so that i can again use camera in my program
    Can i go this way??
    where my camera settings are :
    Acquisition Start Trigger OFF - Frame Start Trigger ON
    and i am using GigE camera
    I am quite new to Labview, Please Help !!

    Set all triggering on your camera to OFF in MAX otherwise it will be expecting an external pulse.  If you just want to control its ON/OFF state from LabVIEW, use the attached VI.  It's just doing a very basic conintuous image grab.  It assumes your camera is configured to produce an unsigned 8 bit image. If your camera is configured for signed 16 bit images or something else, make sure to change the image type setting in the pull down enum on the block diagram.
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Basic Image Grab.vi ‏48 KB

  • Multi-camera is impossible to use...

    Hello guys)...I have one problem - I synchronized video from 2 different cameras using some program and I saved the sequence in APP CS3...
    Then I open this project in APP CS5 - but unfortunately I can't use "Multi-camera"...
    Who knows - what's a problem?
    Proof here:
    or - http://imageshack.us/f/535/001ap.png/ ...
    I've tried many ways - but no results...Help)))...

    Or I turn on Multicam, but APP displays only 1 camera, not 2...
    Picture - http://imageshack.us/photo/my-images/840/002gt.png/ ...

  • Dynamic link problem, PPro cs5 - AE cs5, multi-cam sequence

    This is odd. I'm working on a two camera interview in Production Premium CS5. Did the standard stuff - a source sequence with both cameras, did some rough editing here (syncing the two cameras, trimming the clips, etc.). Then nested the source sequence into a multi-cam edit sequence. Used the multi-cam monitor to switch back and forth between cameras, etc. All is good.
    But my editor wants to make three separate videos from this interview. So the logical thing (so I thought anyway) would be to nest this muiti-cam edit squence into three separate target sequences. Then I could get the camera switching done just once, and slice-'n-dice the three target sequences to make the short-'n-sweet individual videos that make my editor happy. Did this for the first target (a single question and answer). The result looks fine in PPro, and editor approves. All that's left is adding the lower thirds.
    Everything fine until I go to export to AE via dynamic link so I can add lower thirds and finish up. What PPro sends to AE isn't just my target sequence, but it also sends the multi-cam edit sequence and the source sequence as well. But.... it ignores it all and will only show me the Acam footage. Bcam doesn't show up at all. Clearly this isn't working. But now I find that I can't even break the links. So I can't even start over. Sigh...
    Two questions: First, how does one export a multi-cam edit sequence via dynamic link from PPro to AE, and have it show up in AE looking like it does in PPro? In other words, what did I do wrong?
    Second, how can I recover from this? Do I really have to delete my target sequence in PPro and start over (and by extension, delete the AE project also)? Is there no way to sever a dynamic link once it's made?
    Bruce Watson

    Um.... didn't work. Seems that AE and PPro have different ideas of what "transparency" mean. The lower thirds composition in AE has a transparent (black) background which works fine in AE (I've used this lower thirds quite a bit in AE so I know it works pretty well), but when I import it into PPro it shows as white, and is completely opaque. Lettering doesn't show up either (but the letters are white so that's not such a surprise given the background), but the motion is still there. None-the-less, either way I tried it (copy and paste, or export from AE as a PPro project, then import it in PPro and drag the AE built sequence to the timeline) didn't work.
    Trying to export just the lower third comp from AE through dynamic link as a PPro project didn't work either. Failed weirdly. It popped up the right sequence creation box in PPro, so I could pick AVCHD 1080p30 as the sequence type (matching the other sequences in the project), and created the new sequence with the correct name. But the sequence was empty. It wouldn't let me drag the lower third sequence anywhere either, so I couldn't put it on a timeline.
    Sigh... this isn't supposed to be this difficult. But hey, if it was easy anyone could do it, yes?

  • Vision acquisition not reading avi file

    Hi-- I am currently running LabView 2010 (version 10.0f2) to run the Multi-Worm Tracker (http://sourceforge.net/projects/mwt/).I am currently using the Vision Acquisition Software evaluation version, though I do not have any image acquisition hardware or camera connected; I am only concerned with running AVI files. Everything seems to work perfectly except the program does not appear to "see" the file, even though I am able to select it upon opening without issue.
    It appeared to me to run and track images the very first time I ran MWT, though I was not able to see the video at the time. However, it has not worked since that first time. I am curious if anyone out there has thoughts on:
    1) Whether or not it is the vision acquisition software that is responsible for this problem
    2) If the evaluation version only works once (seems silly as it is good for 30 days... 28 now)
    3) What I might be able to do to troubleshoot this
    Thanks for your help,
    Kevin Burls
    University of Nevada, Reno

    -Sorry no info on how you are reading avi file?
    -It is just an exe. That too looks like it needs lot of other dependencies.(Or am i missing anything??)
    -If you need to clarify your doubt on Vision acquisition, just use one of the inbuilt examples in labview for reading avi files and then proceed.
    -No, i think evaluation version works untill evaluation time expires.
    -You need to provide the code not exe to troubleshoot on more.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Writing a Compressed AVI File in NI LabWindows/CVI with the IMAQ Vision Acquisition

    I'm still facing some problems when I try to save pictures from a GigE Vision camera into a compressed avi-file in a LabWindows/CVI application on Windows7.
    The task is to grab images from the camera with 30 fps to monitor a process, evaluate the grabbed pictures to find certain characteristics of the monitored process and save them in an avi-file to have the possibility to load and evaluate them once again Offline if necessary.
    My questions: which compression filters can I get with the NI-Imaq Vision Acquisition and Vision Development Runtime 2012 SP1? Is a mpeg4 codec available to compress quickly and effective? Can I use a third party codec or only the ones delivered with NI-Vision?
    I posted the problem two times already, but there is little response up to now. Thanks

    The encoding algorithm, or codec, that's used for compression needs to present on your system. When I had done some research on this sometime back, I found that if your custom codec could align with the DirectShow architecture, then your codec would work with IMAQ AVI functions.The codecs that are available may vary from system to system, depending on what software is currently installed. Be sure to check out this article:
    Writing a Compressed AVI File with the IMAQ Vision Acquisition Software
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Open cam VI in Main.exe and Vision Acquisition License

    Hi,
    I've an application which controls some devices...I've two questions:
    1. I'm building an exe of my main VI. When I run it as exe on other PCs, it doesn't open the subVI (cam_pos_test.vi) (on my PC is everything running ok). The cam subVI is added in the always included VIs, when I build the application. Part of the main level VI looks like this (control/producer loop):
    in the red circle is the subVI which opens the Ref to the cam_subVI. It looks like this:
    I think: I make some error in the defining the path of the subVI (cam_pos_test.vi). Do you have some idea, what could be wrong? Why the cam_pos_test does not pop-up as it should on the other machines? :-) I've tested the cam_pos_test.vi as exe is running on other PCs.
    2. I've Vision Acquisition License on my PC. Do I need Vision Acquisition License also for the PC where the executable is running (to use a cam)?
    Thanks!
    Angel

    Hi,
    I've LabVIEW 2010 Prof. + Vision Acquisition License on my PC (where I write the code). To check: is the problem in the source code or in the executable, I've used an evaluation version of LV2010 on another PC ... as a VI it runs without problems on the lab PC, but as an executable it runs but doesn't open the cam window :-( (everything else is ok)
    The code of the cam.VI is attached. I've used only IMAQdx VIs to obtain an image from the cam...
    Thank you for your time,
    Angel
    Attachments:
    cam_pos_test.vi ‏65 KB

  • Work flow? How to link multi-cam sequences for DVD output?

    Pr cs4 (very new)
    Still taking baby steps each day... please take my hand and help me!
    Final output will be 2 DVD's (each DL) each about 2 hrs. Content are chamber music student groups in two recitals.
    I have assets from two camera angles. I have successfully practiced on one of the groups performance (10 min.) following the steps illustrated in a multi-cam tutorial.  http://www.adobe.com/designcenter/video_workshop/?id=vid0234
    This leaves me with a great multi-cam sequence for that group located in the Project Panel, exactly what I want.
    Now, I want to know what is the best method (workflow?) to ultimately produce a DVD containing about 10 of these type performances (one after the other) with chapter markings for each group, titles etc.?
    I have yet to use Encore and I'm guessing that is where I'll send the finished edit for DVD production, though I don't know at what step I jump there?
    Do I try to create one very long multi cam sequence of all the content, then send to Encore? Or can I create seperate multi-cam sequences (each performance) then link them together, adding transitions and make the DVD? This would be my preference to keep things more manageable, especially with audio synching.
    With my practice multi-cam sequence on the timeline, I tried to drag the same sequence from the Project Panel to the end of the timeline to simulate how this would work, but it does not add to the timeline as a clip would.
    This is probably childs play for you pro's, but we were all baby's at one time...I just happen to still be one!
    Thanks for your patience and advice,
    Kenny

    Yes I did...now toss me a cookie please.
    I am trying to quickly get up to speed in Pr CS4 to get this project completed. In the process, I'm trying to learn and understand the interface and correct terminology so as to make my questions intelligible to a community that posses vastly greater understanding than myself.
    Is there anyone who can help with my main question at hand? Namely, how to go about creating a full length sequence (in the timeline) made via the nesting of synchronized multi-camera clips within a new "multi-cam sequence"?
    As I said, I have completed a small test sequence in this fashion, nesting clips in a new sequence then using multi-cam monitor to record cuts. Now I need to add about 10 more of these together in a completed sequence to then send to DVD production.
    Is this intelligible?
    Thanks, Kenny 
          __0
       _ \<,_
    Date: Wed, 4 Nov 2009 09:11:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: Work flow? How to link multi-cam sequences for DVD output?
    please take my hand and help me!
    Well, at least you had the gumption to admit that up front.
    >

  • Issue setting baud rate for IMAQ using Camera Link

    I have a PCIe-1433 camera link board, with a Basler camera. I found that I can set the gain and exposure times directly in the camera using the serial link and serial commands. This works very well. I'm doing this programmatically using the CLAllSerial.DLL.
    The serial commands take too long to send in my application due to the default baud rate of 9600, so I was able to send a command to the Basler camera to up its baud rate, then change the baud rate of the camera link serial com port to match it. The result is that I can talk very quickly to the camera. Sweet so far.
    However, with both the Basler camera and the camera link com port set to the higher baud rate, I can no longer acquire images using the IMAQ imgXXX commands. I get a timeout from the serial commands that IMAQ must be using to control the camera for image acquisition. Essentially the IMAQ driver doesn't know about the baud rate change. I cannot see how I can tell the IMAQ driver what baud rate to use either. NI MAX also becomes unusable in this situation.
    How can I, through the IMAQ driver, increase the baud rate of the serial commands to the camera over the camera link?
    Cheers,
    Wayne
    Solved!
    Go to Solution.

    David,
    I'll try to help if I can. Keep in mind that I'm using a stub into the DLL using Delphi as my development platform. That should not matter.
    The DLL I'm tapped into is the IMAQ.DLL for the camera calls to get/set exposure time, gain, etc. The best reference I found for this is the NI-IMAQ help files that get installed with the normal NI install. There are important string constants that you need, to talk to the interface. I can't recall how I found these, but below are mine, in Delphi:
    { These are Basler camera attribute names we care about. }
    BaslerCameraGainControlAttributeString = 'Gain'; { string result }
    BaslerCameraGainValueAttributeString = 'Gain Value'; { numeric result }
    BaslerCameraBitDepthAttributeString = 'Bit Depth'; { string result }
    BaslerCameraExposureControlAttributeString = 'Exposure Control'; { string result }
    BaslerCameraExposureModeAttributeString = 'Exposure Mode'; { string result }
    BaslerCameraExposureTimeAttributeString = 'Exposure Time'; { numeric result }
    BaslerCameraMaximumHeightAttributeString = 'Maximum Height'; { numeric result }
    BaslerCameraPowerOverCameraLinkAttributeString = 'Power Over CameraLink'; { string result }
    { These are Basler camera attribute values we care about. }
    BaslerCameraManualGainAttributeValue = 'Manual';
    BaslerCamera12BitDepthAttributeValue = '12-bits';
    BaslerCameraMaximumHeightAttributeValue = 2048;
    BaslerCameraExposureControlFreeRunAttributeValue = 'Free Run';
    BaslerCameraExposureControlTriggeredAttributeValue = 'Triggered';
    BaslerCameraExposureModeAttributeValue = 'Manual';
    BaslerCameraExposureTimeAttributeValue = 5;
    BaslerCameraPowerOverCameraLinkAttributeValue = 'On';
    BaslerCameraGainValueAttributeValueMinimum = 33;
    BaslerCameraGainValueAttributeValueMaximum = 512;
    MaxAttributeStringLength = 100;
    The following code snippets, get and set gain and exposure times (I called it shutter speed), in Delphi:
    function TNiVision.GetGain : double;
    var
      TheGain : double;
    begin
      if GetCameraAttributeNumeric( BaslerCameraGainValueAttributeString, TheGain ) then
        Result := TheGain
      else
        Result := BaslerCameraGainValueAttributeValueMinimum;
    end;
    procedure TNiVision.SetGain( TheGain : double );
    begin
      SetCameraAttributeNumeric( BaslerCameraGainValueAttributeString, TheGain );
    end;
    function TNiVision.GetShutterSpeed : double;
    var
      TheSpeed : double;
    begin
      if GetCameraAttributeNumeric( BaslerCameraExposureTimeAttributeString, TheSpeed ) then
        Result := TheSpeed
      else
        Result := 1;
    end;
    procedure TNiVision.SetShutterSpeed( TheSpeed : double );
    begin
      SetCameraAttributeNumeric( BaslerCameraExposureTimeAttributeString, TheSpeed );
    end;
    These then call into the DLL functions imgGetCameraAttributeNumeric and imgSetCameraAttributeNumeric. There is a formatting interface between the above and the actual DLL functions I didn't show that just reforms the Delphi strings attribute names into C null terminated char arrays.
    I hope this helps. I've now moved on to using Pylon with GigE cameras, which is a much cleaner interface, but very different code.
    Cheers,
    Wayne

  • Link to DL Linksys Multi Camera Viewer and Recorder Utility

    I read that the Multi Camera Viewer and Recorder Utility is backward compatible.  I have 2 WVC54G cameras and I would like to use it for them.  Can someone provide a link to download the Multi Camera Viewer and Recorder Utility?
    Thank you.

    Click here

  • Vision acquisition express stalls when i select a camera even if i click 'refresh'

    The vision acquisition express stalls when i select a camera even if i click 'refresh'. Using Labview 2010 (evaluation) on a Windows 7 laptop and tried on another computer running windows xp.

    Hi,
    A few questions:
    1) What kind of camera are you using?  (what model, are you using IMAQ, IMAQdx, what version, etc.)
    2) Are you able to acquire from your camera in MAX? 
    3) can you run a shipping example using the low level VI's or does this only happen in Vision Acquisition Express?
    Tejinder Gill
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • Multi-camera acq w/IMAQ-Vision processing; how to translate buffers?

    I have a multi-camera system using genlocked cameras and a PCI-1408. I'm developing my application using LabWindows/CVI. I can acquire from each camera in turn using NI-IMAQ low-level functions (ref.: scan 1408 channels.c), but I want to process the images using high-level IMAQ-Vision functions. How do I translate an image captured into a low-level buffer (imgCreateBuffer) into an Image buffer (imaqCreateImage)? Are the buffer structures from imgCreateBuffer the same as imaqCreateImage, so that I can simply cast the void* returned from imgCreateBuffer to an Image* parameter in an imaq_xxx function? If not, how do I move an image from one buffer type to the other?
    Thanks!
    Jesse

    Well, I'm answering my own question!
    Turns out that the image buffer from imgCreateBuffer is an integer array. To get this into an Image structure from imaqCreateImage, use imaqArrayToImage.
    Hope this helps the next person.
    Jesse

  • Get an image from USB cam without NI VIsion Acquisition

    HI
    I am looking for a way to capture images from USB cam without using a paid library ImaxDx for Labview.
    Have you any ideas?

    Hello MaxEngee
    Off hand, I suppose you could run the third party capture software in the background and have a LabVIEW scan the target directy for changes/new images and import the image as necessary.
    In the mean time, if you install the NI Vision Acquisition Software, you do have a 30-day trial period so perhaps you may consider exploring the environment to see if it is right for you.
    NI Vision Acquisition Software 2011.09 - Windows 7 x86/XP/Vista/7 64 bit
    http://joule.ni.com/nidu/cds/view/p/id/2625/lang/en
    Thank you for choosing National Instruments!
    Sincerely,
    Greg S.

  • NI PCIe-1433 Camera Link frame grabber programming using VC++

    Hello, I have a Basler Camera Link-compatible camera and they use the NI PCIe-1433 Camera Link frame grabber as the image acquisition device.
    Right now, I want to develop some applications on that camera and need to do programming on the NI PCIe-1433 by VC++.
    So I want to know where I can find the software development kit for the NI PCIe-1433. For example, I can control the camera to grab the image by using the different functions(such as imgGrab(), or somthing like that ) from that software development kit.If there are some sample code that would be better.  

    Hi Wrsbj,
    The IMAQ functions that you mentioned are contained in the IMAQ driver, which is used to acquire from Camera Link frame grabbers. I would also check the compatibility chart, to make sure that you get the version you need. As for example programs, you can take a look at this KnowledgeBase article concerning building and running the IMAQ examples in VC++.
    David S.

  • Multi cam shoot using  P2 cards. How to move clis to timecode positions

    multi cam shoot using P2 cards. How to move clis to timecode positions. We were using free TC. I want to a large # of clips from both cams. and have them move to the correct TC position on the timline. In Nuendo eith audio u hit apple a or ctrl a right click move to orgin. Avid will take care of it for u. FCP???

    If you read the "Apple Pro Training Sereis; Final Cut Pro 5" book, it's very easy. You can sync the clips manually by setting In or Out points, specifying TC, or using one of the two Aux TC fields. Since this is the first, and most basic step in doing Multiclip editing, I'd suggest you get the book, or read the appropriate section of the User Manual. I don't think anyone wants to post a full "how to" article in a forum.
    It can be done, you're clips have to all have been recorded with synced TC, or they simply won't sync up in any NLE. Read the book. Cause even if I did have the time to explain FCP's Multiclip editing in this forum, you'd still have questions that are in the book.
    If you actually walk through the first steps of building a Multiclip to edit, it's blatatnly obvious in the first step. I'd give it a try first.
    Problem is the DVCPRO-HD codec is going to require a higher end Mac with tons of RAM and either RAID, or internal drives to do a DVCPRO-HD Multiclip, as DVCPRO-HD (P2) is a pretty high bandwidth codec. I use it daily, I know, it takes horsepower to do.

Maybe you are looking for

  • Ipad recognized by windows but not in itunes

    When i connect my ipad to my windows 7 computer, only the computer recognizes the ipad. It does not show up in itunes. I have a different computer that does recognize it in itunes though.

  • The old win 7 x64 on a mac pro 1.1 issue - ISO file unreadable/corrupt

    Hi all, Trying to install win 7 x 64 on my mac pro 2,66 xeon 1.1. I knew beforehand there were issues, so I had prepared for them with the instructions given by flickguy here: http://discussions.apple.com/thread.jspa?threadID=2207855 thing is, the re

  • How do I get PSE13 to input image from iPhoto 11 when I choose "Edit"?

    I used to use PSE8 as my external editor in iPhoto 11. I had selected PSE8 as my external editor in iPhoto and when I clicked "Edit" it started PSE8 and the photo was there for editing. Now with PSE13 I have selected PSE13 as my external editor and w

  • ORA-31044: Top-level prefix length  exceeds maximum

    Hi, I am trying to migrate the cube and associated view created by view generator from one environment to another environment. The cube is migraed through XML and it is working. But when we compile the view created in one environment in the target en

  • Wat is the use of having a synchronized block

    instead of a synchronized????....Can anyone explain??...Is it because we can do the synchronization altogether for all the functions?// is this the only use of it?? pls explain........