Controllin​g two cameras using LabVIEW

Hi,
I am a research assistant and my task is to control two cameras using LabVIEW. Also I need to store the pics automatically in a file having the exact time for each pic when taken. I am still new to this kind of work but I am trying my best to learn. I am using some icon for saving pictures but they were stored as RSC format. You can take a look at what I've done so far.  I really appreciate if someone can help me with that. Thank you
Regards,
Abbas
Attachments:
Controling two camera.vi ‏85 KB

Hi try this VI... I have made very little modification in that... What type of camera you are using.. what is the interface?....
The best solution is the one you find it by yourself
Attachments:
Controling two camera.vi ‏84 KB

Similar Messages

  • How can I save images in usb connected to NI 1772C camera using labview?

    Hi, I am trying to save acquired images in usb connected to smart camera using labview.
    I want to know file path (address of usb connected to the camera)  for save images but I have no idea to find that.
    I will appriciate it for any advice about how to figure the file path or how to access the usb by max or anything.
    Thank you!
    Dana Choi

    An external USB key connected to that camera should be accessible as U:\.
    Eric

  • Triggering a camera using LabView

    Hey,
    I have a device that I'm moving using two servos. I'm controlling the motion using LabView. I want to capture the images of the device using MotionPro X3 high-speed camera (To track the position etc). So I need to synchronize the camera trigger and the motion using LabView. The software that comes with the camera (Motion Pro Studio) has the ability to allow the camera to be triggered using an external source. So I generated an analog signal using labview, and I connected a BNC cable from the analog output on the DAQ board to the camera. The camera needs at least 3V so it gets triggered, so I created a point-slider in labview, to increase the voltage from 0V to at least 3V.  I got this part to work.
    So now I'm trying to combine the camera control code with the motion control code. In the motion control VI, when I hit "Run" the device starts to move, but data (Position, forces etc) is only saved when I hit "Save Data". What I want to do is to trigger the camera when I hit "Save Data", and not when I run the program. Is there a way to increase the voltage from 0 to 3V when I hit the "Save Data" switch?
    Thanks in advance. I appreciate it if you could help me as soon as possible. This is driving me crazy.

    Hi FirasOSU
    If possible, please post what kind of software you have available to work with and the specific hardware. The information I am posting is assuming you are working with one of our data acquisition boards which work with our NI-DAQmx driver.
    There are several ways you can trigger the camera from a DAQ board depending on the model. I would recommend that you refer to the following knowledge base/white paper regarding tips and techniques for triggering with a data acquisition board and NI-DAQmx VIs
    http://www.ni.com/white-paper/4329/en/
    Here you will find information regarding options for triggering with our data acquisition boards using LabVIEW and sample code you can use to add triggering functionality to your code.
    Also depending on your camera ports and if you have access to our vision tools that can be added to LabVIEW (Vision Development Module), then you can use the following example code to trigger your camera acquisition.
    https://decibel.ni.com/content/docs/DOC-9112
    Best of luck with your project!
    Luis S
    Application Engineer
    National Instruments

  • Can i take photo from wireless camera using labview?

    my project is fire fighting robot it detect fire using camera so can i use wireless camera when using labview or not?and if yes, how can i do that?

    Hi khaledyr,
    yes it's possible, but the effort to realize it depends on the camera model. Do you already know the camera type you will use for it?
    Mike

  • 3D Shape Measurement using two cameras in labview

    Is it possible to take 3D Shape Measurement using two or more cameras .

    Tarar, 
    Here are some links with information regarding 3D measurements using stereo vision with LabVIEW. 
    [1] Does NI Vision Support Stereo Vision or Depth Perception?
    [2] 3D Imaging with LabVIEW 
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

  • Synchronization of multiple clips from two cameras using TIMECODE

    Hi there and greetings everyone,
    I'm new to the adobe forum, but I'm quite familiar with premiere pro and generally with filming and editing.
    My question is simple, yet complicated:
    I have 2x 5D mark III synched via timecode to the second and I have an event of about 30 minutes, where each camera recorded individual clips in an alternating way (so there are gaps between clips from the same camera, but almost 100% coverage with the 2 cameras together - we used this method for a more creative / interesting end result)
    HOW DO I import the clips from the 2 cameras in such a way that there will be two different video tracks (so for exemple track 1 for cam 1 and track 2 for cam 2) yet I will be able to sync them via timecode in my timeline ?
    Aditional info:
    - the only thing I managed was to select all the clips, create a multi-camera sequence and open that in a timeline format (everything is synced up, but each individual clip is on a different track, so I have 61 video layers basically instead of 2)
    I've asked lots of people, red tens of topics, watched lots of tutorial videos, none seemed to answare my question
    - I know there is the Multi Camera Monitor, but that option is designe for editing and synching clips when there is 1 long clip / camera, and where you actually watch the entire recording and do the editing real time, which is not my case.
    - Some sugested me to use plural eyes, but I don't see any point in using andio based synchronization if I have excelent timecode.
    - I also need it done the way I described because for me it;s more manageble that way, I can edit it faster, and I already know what to look for, so it;s again nonesence to use the multicam feature.
    The bottom line is that I am looking for something similar to pluraleyes (when you import everything in one timeline) and use the audio info to sync it, but in this case I would use the embeded timecode.
    I've red a post where someone mentioned that in other editors its just select all / sync / done, so I can't believe it;s that complicated in Premiere.

    There are currently better sync features in the works!
    I know your frustration. For a similar and more in-depth discussion, see another thread I posted in here: Batch syncing audio and video using timecode
    Unfortunately in CS6 (what I currently use)  it creates a separate track for each clip, which can be a mess if you have hundreds of clips. The best way I have found to make things easier is to create a separate TC synced multi-cam sequence for each individual cameras footage.  For example, I follow the same steps you did for each of my cameras footage independently so that I have a TC synced sequence for camera A, a TC sequence for camera B, etc. Then you can select all the footage of each sequence, nest it, and copy each nest into a master sequence to work with. What you end up with is a single clip for each camera. MUCH easier to work with!  To keep track of where clips start and/or end in the nested sequences you can go into your original sequence and place a marker (shortcut "M") at each clip. These markers then show up in your Mastertimeline clips for reference.
    I know things could be easier, but this is currently the best option I know of. I already put in a feature request and was told by the Engineering Manager of Premiere Pro that new sync features were in the works. (see thread link above)
    Hope that helps!
    ...and for the record, here is my TC sync process:
    SELECT ALL clips you wish to sync from your Project Tab/Window.
    RIGHT-CLICK and SELECT "Create Multi-camera Source Sequence..." In CS6 it is the next-to-last option in your popup window.
    A dialogue box will appear. For the Synchronize Point, SELECT the box that says "Timecode" and UN-CHECK "Ignore Hours"
    You will now see a new multi-cam sequence in your Project Tab/Window.
    RIGHT-CLICKyour new multi-cam sequence and SELECT "Open in Timeline"

  • Capturing two cameras using JMF

    Hi,
    I am trying to capture media from two Logitech USB cameras, but I am not able to do so. Detect Capture Devices lists only one camera.
    Please let me know how can I get around with this problem.
    - t_k_m

    This is a known bug.... JMF sometimes doesn't detect the 2nd / multiple cameras. No easy workarounds.... The bug has been open since 2003, but there's no development or bug fixing on JMF anymore.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4890873
    regards,
    Owen

  • How do we compare two images in labview?

    I have created a back end code which is comparing two images using LABVIEW.i have used a comparator and put a tolerance factor which will help me filter out almost same images.the problem i am facing is that on subtraction of the given two images i am getting a completely random output with noise surrounding the parts of the image which are being compared.Also the tolerance percentage i have given has not been working very effectively.Kindly let me know if there is an easier solution to my task or what needs to be done
    Thank you

    Can you post your code?
    Randall Pursley

  • How to get 3D coordinates of reflective markers using two cameras?

    Hi,
    I am very new to LabVIEW (in fact to any coding at all) and helping my adviser to get the 3D coordinates of a few reflective markers using two cameras. I am able to read the marker coordinates (x, y) from two cameras simultaneously by processing the data in real-time using codes generated from vision assistant. However, we want to get the depth position by triangulating the markers. I have seen stereo vision doing something similar to this, but I think the stereo vision may not work with our calibration frame (markers) and we don’t need the whole depth image, but only the maker’s z coordinates. I also want to use Region of Interest to mask out other regions that are creating reflections. However, I am not sure if triangulation would work if we select region of interest (as the origin of the camera coordinates would change after selecting ROI). I saw this link http://kwon3d.com/theory/dlt/dlt.html#3d where they used DLT (direct linear transformation) method, but it is too much to code from the beginning. Is there a subVI in LabVIEW or some sort of prewritten code that can be customized? Can anyone please give me some advice on how to solve this problem?

    Well in theory, if you know exactly where the cameras are pointed, how far apart they are, and how far the reflector images are above or below the horizon and to the right or left of center line, a little simple math should give you the answer. Concerning the ROI I would think all you needed to know was where the ROI was relative to horizon and centerline. You could then calculate an absolute position from there, which would also give you the angles you would need.
    Unfortunately, I don't know of any readily availble code. But I'm sure there is some! With the emphasis on FIRST robotics, I got to believe that judging distances in 3D space is something for which there is a lot of code.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Issues when using a Pixelink camera with LabView 9.0

    In my lab, we have a program for video acquisition using LabView and the low level camera functions for Pixelink cameras.  We run into some problems trying to run this program and other demo gui programs that came with the Pixelink SDK.  In our data acquisition program, we have problems with our image coming out all scrambled.  We use the low level functions to obtain a frame from the camera in the from of a vector.  We then reshape the vector into an array and then send the array to a vi that turns it into an image.  When we try to view this image using the standard Labview image viewer, the image comes out all scrambled if the zoom factor is not set to .5 on the image viewer.  The full resolution of the image is supposed to be a 1024x1280 image which when we use the Capture OEM software for the camera provided by Pixelink we can see.  The image that we can see through LabView when we have the correct zoom factor seems to be only the top left quarter of what the entire image is supposed to be.  We also encounter strange problems when we attempt to use the demo programs for labview 8.6 that are provided with the SDK.  When trying to run the simpleGUI.vi, for example, the program connects to the camera just fine.  After you hit play to view an image, the problems start.  The program will play the video for a few seconds until it just freezes up and quits responding.  Labview must be exited and restarted in order for the camera to connect again.  I am not sure if it makes a difference that we are running labview 9.0 on our computers or not.  Any help you have on these issues would be of great help.  Attached are pictures of the scrambled/unscrambled image and of the part of our block diagram for camera control.
    Attachments:
    Incorrectimage.jpg ‏126 KB
    Errorexplanation.jpg ‏543 KB
    correct image.jpg ‏22 KB

    IMAQdx is the driver that National Instruments provides to interface Firewire, GigE and USB cameras (Directshow compliant USB).  This is a licensed driver, so if you don't currently have it, then testing in MAX is not an option. 
    So if I understand correctly, you have the Pixelink software which works fine, but you have Pixelink VI's that are used in LabVIEW, but those do not work correctly?  That to me seems like a driver issue, which I'm not sure how much I can help with since it is not our driver. 
    Do you know what dll's the Pixel link VIs are calling into?  Are they Pixelink dlls?  If so, I would suggest speaking with the manufacturer or perhaps on of our other users has worked with Pixelink before.
    Sorry I can't be much more helpful.
    Tejinder Gill
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • Is it possible to use a Linksys By Cisco Wireless-G Internet Home Monitoring Camera with Labview

    I was wondering if it is possible to use a 'Linksys By Cisco Wireless-G Internet Home Monitoring Camera' with Labview
    http://www.dabs.com/productview.aspx?Quicklinx=53PX&SearchType=1&SearchTerms=network+cameras&PageMod...
    I wan't to be able to get the raw data from the camera and analyse it.
    Message Edited by Jam.hall on 03-25-2009 09:03 AM
    Solved!
    Go to Solution.

    Hi Jam.Hall
    I am somewhat hesitant to say you will be able to use this camera with LabVIEW.  It all depends on what functionality you are wanting to utilise on the camera, and how much video you want to analyze.
     - If you want to use the wireless functionality, I am concered that the on board web server will compress and embed the video stream.  I do not beleive this is something we can access in LabVIEW.
     - If you wish to use the ethernet connection, if it is Gigabit Ethernet, then you should be able to use our IMAQ for GigE driver to bring in the feed, but looking at the specs for the camera, I'm not sure that this is an option.
     - My other suggestion might be to utilise the record video stream function that the camera has.  Depending on the format of the video file, you may be able to read in the recorded file and analyse it in LabVIEW.
    If you could explain the purpose of your application, and what you would like to achieve with the system, there may be more suitable products that you can use.
    Kind regards,
    Sheela Sujeeun
    Applications Engineer
    National Instruments UK

  • How do I establish serial communicat​ion using LabView to two stepper motors using a motor controller​?

    I currently use an off the shelf motor controller to run my two stepper motors. It already has integrated a firmware software that sends commands to operate each motor. I would like to create an interface where I can send these commands using LabView. If someone can point me in the right direction I would appreciate it.

    Look at the examples for the serial VISA vi.  Something like Basic serial write and read.vi is a good starting point.
    Have you searched for a LabVIEW driver  at the NI LV driver network?   Asked the vendor?
    If you write your own driver with the serial VISA vis remember to open and configure the port only once at the beginning and close it at the end of your program. 
    Message Edited by Henrik Volkers on 07-13-2009 04:21 PM
    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 ǝɥʇ'

  • I need to record two camera interview shoots and turn the video around quickly. What is the best solution using a MacBook Pro and final cut pro?

    I need to record two camera interview shoots and turn the video around quickly. What is the best solution using a MacBook Pro and final cut pro?

    Try reimporting all your media: file>>import>>reimport>>continue

  • Use Labview to control two Picomotor actuators successively through Model 8753 iPico driver

    Hello All,
    I want to use Labview to control two Picomotor actuators(belong to channel A ,C) successively through Model 8753 iPico driver.Since the example VI's
    (Application.vi) from Newport's website just control one actuator at one time, so I copied the example code, thus there are two repetitive sections (see the attachment) in
    the while loop structure. The test result was that two Picomotor actuators moved to respective target position circularly. And I found the test was correct when two Picomotor actuators belonged to different address. Can anyone tell why ,what should I do? Any assistance with this matter is greatly appreciated.
    Best Regards,
    Attachments:
    control two picomotor actuators.vi ‏90 KB

    BRox,
    I had a look at the examples and obviously all it does is to communicate to the drive through RS232 with a proprietary protocol. With the documentation in the block diagram and the documentation of the protocol it shouldn't be too hard to understand what's going on, but on the other side NewFocus has obviously missed a chance to provide a high level and easy to use API for their product...
    I can't dive too deeply into the features of this drive, but before you spend too much time on understanding their command language, you should check with NewFocus, if it is possible at all to meet your requirements with their hardware. The main reason why I doubt that is the slow communication speed provided by RS232. The only way to reach a sinusoidal motion profile of 30 to 70 Hz with this type of communication is running the complete trajectory generation and interpolation onboard. If you have planned to generate the motion profile in LabVIEW and send setpoint commands to the drive this will probably not work.
    If the drive provides another command input (e. g. an analog +/- 10 V input for torque or velocity command signals), we can talk about alternative approaches.
    Regards,
    Jochen Klier
    National Instruments

  • Crosspost: Has anyone used a Redlake camera with LabView/Imaq?

    "I can't seem to find any drivers or utilities for the Redlake camera i'm using in my project.
    Only this: http://www.imagemill-tech.com/Redlake/ Fr_Redlake.htm
    But there's no info on how to get that VI (I've e-mailed them, of course).
    Any additional information on using the camera with LabView/Imaq would be much appereciated"

    "Kasper B. Dall" wrote in message news:<[email protected]>...
    > "I can't seem to find any drivers or utilities for the Redlake camera
    > i'm using in my project.
    >
    > Only this: http://www.imagemill-tech.com/Redlake/ Fr_Redlake.htm
    >
    >
    > But there's no info on how to get that VI (I've e-mailed them, of
    > course).
    >
    >
    > Any additional information on using the camera with LabView/Imaq would
    > be much appereciated"
    I just find the section out for you about remote control of your
    camera:
    1.7.1 Remote Control.
    Redlake Imaging also supplies the Serial1 program that enables a
    computer to control the
    MotionScope system from a remote location through the serial port.
    Refer to Manual Addendum
    9400-0014 for detai
    ls of the Serial1 program and how to control the
    MotionScope system from a
    remote computer using a standard communications program.
    So you need to find the serial command (for RS232) in manual addendum
    9400-0014. I couldn't find it in website maybe I did not search
    throughly, but you may have it if you own the camera. And these
    commands are just for controlling the camera system, not grabbing the
    image, so you may need a frame grabber to get the image into your
    computer and do the further processing.
    Irene
    [email protected]
    > http://www.geocities.com/irene_he/IVision.html

Maybe you are looking for

  • BAPI to insert a new row in the MCHA table

    Hi all, I am in search of a BAPI to insert a new row in the MCHA table... with the fields of the materail, plant and batch values. Any inputs on this..is highly appreciable... thanks in advance... regards.. prathima.

  • How do I run a script on a folder which is only set to run on an individual file?

    I want to use the layer to file script on an entire folder of about 40 files. I tried creating an action with "Insert menu item" but when I run the batch file it crashes illustrator. I am thinking I should combine the savedocsasPDF example script wit

  • Payment advice when a vendor is a customer (urgent)

    Hi I knw the settings to be made when a customer is a vendor. What will be the outcome if we run app of that vendor ? All the items will be shown or only the net figure will be shown? Can this be changed also? Please reply soon

  • CUPS won't allow printing in a Windows network

    I just spent five days trying to get printing working in my OSX 10.9.2 (iMac). Here's the thing: the printing network is a Windows smb network. Everything works fine on my MacBook OSX 10.9.2. I can manually install the smb://xxxx/yy printer and it wo

  • StarOffice 8 (Update 9) PDF Export problems

    I am using StarOffice 8 prupdate 9. I have been trying to export in PDF but I notived the following problems: 1) When an 'area' (eg a basic shape) is filled with a color that is the same as the outline color BUT at a transparency level (say 50%) PDF