Wifi video capture using TCP/IP protocol in LabView

i have designed a robot with a camera and i am trying to control it using LabView. I am using TCP/IP communication protocol (My robot has wifi card for communication, IP: 169.254.0.20)... i am able to control the motor and make my robot moves in any specified direction but i am not able to acquire video from the camera. i have installed NI vision drivers but still i am not able to aquire video. is there any IMAQ wifi driver available. if not, is there any other logic to aquire continious video from a camera using tcp/ip?
i am using LabView 8.6
wifi: private IP 169.254.0.20
Attachments:
robo.vi ‏9 KB

Without knowing the specifics of the camera you are working with it is impossible to give you advice on what your code needs to do. For instance, to obtain an image do you connect to the camera or does the camera expect to connect to a server? If you connect to the camera is there a specific protocol you need to use to request the image? Generally in networking there is some application layer protocol required for two devices to communicate with each other.
I don't have much expereince with IMAQ itself to answer your question as to whether there are VIs that already do this or not.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Capture video through TCP/IP protocol in labview

    Hi Friends, How to acquire video data using TCP/IP read? actually i am trying to control a robot using labview. This robot has WiFi card and has an ip 169.254.0.10. Robot control protocols are already burnt into blackfin processor, of the robot, example.... if i enter 8 in string control of front panel, robot will move forward, 2 is backward, 6 is right and 4 is left. Robot has camera and transmits images through tcp/ip protocols. well.... i am able to establish wifi connection between my PC nd robot and i am able to control it simply by entering corresponding numbers in string control of VI but i am not able to acquire video from the camera through TCP/IP read platelet. ( someone has created a java consol for this robot and i downloaded it from online forum. by running this consol i can control the robot and also accquire real time video) but i want to do the same using labview. please help.
    labview version: 8.6
    NI vision 8.6
    vision acquisition 2009
    robot reference
    robot control protocols: http://www.surveyor.com/SRV_protocol.html
    http://www.surveyor.com/SRV_info.html
    journal: http://www.surveyor.com/cgi-bin/robot_journal.cgi
    Forum: http://www.surveyor.com/cgi-bin/yabb2/YaBB.pl
    Attachments:
    roboimage.vi ‏39 KB

    You do realize that you are not actually reading any data, don't you? Your input to the TCP Read VI is the default which is a value of 0. So in essence you are saying read nothing. Also from reading through some of the information you pasted it appears that the video is streamed via a web browser. There simply reading from a TCP port will not accomplish what you want. Do you have the Interent Toolkit? That has an HTTP protocol implementation which may work for you though I don't think it will have what you want. It looks like you need to send an HTTP GET to retrieve the video image. You could also try using ActiveX or .Net to embed a browser window in your application.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Is it possible to use an IrDA protocol with LabVIEW 8.2.1 in DSP BlackFin?

    Dears,
         I'm building a project to communicate a DSP BlackFin 533 with a Palm E2 Tungsten between IrDA Protocol. The packaged LabVIEW installed in Palm allows to use IrDA protocol, but I don't know if the packaged for BlackFin DSP allows or not.
       Is it possible to use an IrDA protocol with LabVIEW 8.2.1 in DSP BlackFin?
    Regards,
    Renato - RPS

    OpPss ...
    Sorry !!!
    Attachments:
    IrSerial.zip ‏11 KB
    IrSerial1.zip ‏11 KB

  • Video Capture using VFWCapture

    Hi,
    I have been looking in the JMStudio source code for a solution to my problem, but no luck so far. Specifically, I have been concentrating on VFWManual, which uses the VFWCapture class and sets the desired format. However, I never can get any video capture when I run the VFWManual class.
    Anyway, here's my problem: I have a 4-Port USB hub to which I have attached three cameras. The hub itself is connected to one USB port on the computer. So, the computer only vfw://0 as the single source for all three cameras. Now, the first time I ran JMStudio, it gave me a neat little dialog box titled "Video Source" in which I was allowed to choose between the three cameras. The second time I ran it, it decided to use my previously selected camera but that's a different problem entirely.
    Here's my main question: Is there any way I can programatically switch between the cameras connected to the hub? I believe the answer lies in the VFWCapture class, but I don't quite know how to use it. From testing the VFWManual class, I could tell that the dialog which allowing me to choose between cameras was triggered by VFWCapture.capDriverDeviceConnect(). However, since I can't see the source code to VFWCapture, I don't know how those three cameras were found inside VFWCapture.
    I have been looking at the tutorials and sample code, and I finally got video capture to work using the DataSourceReader sample code from Sun's JMF website.
    Any ideas for programatically switching between those three cameras?
    Thanks.

    If your cameras do have a TWAIN driver, one
    possibility is to use the Java Twain packageI have tried the Java Twain package, but it has the same problem. It views the hub connected to three cameras as one source.
    I would prefer JMF because it has a media player, and my theory is that since I could use a JMF GUI to switch between cameras, I should be able to do it programatically. However, this requires inside knowledge about com.sun.media.vfw classes such as VFWCapture.
    One thing that really doesn't help is the fact that JMF source code is "temporarily" unavailable to the community. The other thing that doesn't help is that a USB API for Java is in its beginning stages of development.
    Any other ideas?
    [email protected]

  • Error 74 Unflatten from String in video streaming using TCP

    I am working on video streaming ( source: USB camera) using TCP. However, am constantly getting held up in "Unflatten from String" with Error 74 occuring stating "Memory corrupt". Kindly help me through in solving the issue.
    Attached is the VI having both the send/ recieve together and communicating using localhost. 
    Attachments:
    Image acquisition & transmit.vi ‏189 KB

    Shoaib Akhtar wrote:
    Thanks  for the reply!
    Restricting the TCP sent dta to two bytes was a mistake, that has been rectified.
    However, we are unable to resolve the "Unflatten from String". their just doesn't seem to be any sub-VI or function, that I can find which could convert the string to IMAQ image!
    Kindly help in the same!
    Best. 
    Actually at least in earlier versions of IMAQ the normal Unflatten from string should be able to createthe IMAQ image when you transmit the right data. You can try that by writing the string from IMAQ Flatten.. to a file and reading it back and unflattening. If that works, you know you are making some errors in the TCP communication.
    Message Edited by rolfk on 01-11-2010 08:37 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Fetching Idoc file from server through FTP using TCP/Ip protocol

    Hi All,
    My file which is stored in the directory of the SAP server.
    In this file Sales order data is stored in the IDOC format.
    I have to develop a interface which which communicate with Server (where IDOC file is stored) with FTP using TCP/IP.
    Is there any sample code is there.
    Thanks in advance .
    Point guranted .

    Hi,
    Check this links out
    Using of FTP_CONNECT
    FTP_CONNECT
    FTP_CONNECT
    Regards,
    Samson Rodrigues.

  • Fcp 4.5 video capture using tiger

    Hi-
    I have a 1.8 GHz dual G5 power mac. I recently upgraded to tiger. Now fcp 4.5 does not recognize the video signal from my external deck. The screen pops up at startup " can't find device". The system was working fine last week before I upgraded to tiger. I also tried iMovie and it captures fine, so it is fcp 4.5 specific. Is there some preference that was changed?
    thanks for your help.
    Ken Zaner

    any ideas ...
    Try the solution. If it doesn't work, start your own thread and tell us EXACTLY what you have done, when you did it and whom you did it with. (pictures optional)
    x

  • What's the quality of video capture using toast 11?

    I just purchased Toast 11 pro and I don't see any mention of controlling, previewing and capturing video from a video camera.
    The reason I would like this feature is that iMovie, while it controls the video camera, it doesn't play the sound when previewing the mini DV tape when capturing. I have to listen for sound through the camera.
    It does keep mentioning that it converts video to "DVD". I think that's a compressed version and not the best quicktime quality.
    I would like to capture video at the highest quality and later, step down the quality to the internet, etc.
    Thank you for any help  in advance-j

    I just purchased Toast 11 pro and I don't see any mention of controlling, previewing and capturing video from a video camera.
    The reason I would like this feature is that iMovie, while it controls the video camera, it doesn't play the sound when previewing the mini DV tape when capturing. I have to listen for sound through the camera.
    It does keep mentioning that it converts video to "DVD". I think that's a compressed version and not the best quicktime quality.
    I would like to capture video at the highest quality and later, step down the quality to the internet, etc.
    Thank you for any help  in advance-j

  • Changing Resolution of webcam video capture: The captfoss method.

    Hello,
    *'captfoss'* proposed a method to change the resolution of video captured using webcam in [this post|http://forums.sun.com/thread.jspa?messageID=10596731#10596731] . Then I posted a working example in the same thread which used the same method to change resolution to 640x480. Here in this post I just want to post the actual method which makes the resolution ( infact format) changing possible. This method takes the DataSource and the target Format as parameters and returns true/false on the success/failure of format change. The method is as follows:
    public boolean requestCaptureFormat(Format requested_format, DataSource ds) {
            if (ds instanceof CaptureDevice) {
                FormatControl[] fcs = ((CaptureDevice) ds).getFormatControls();
                for (FormatControl fc : fcs) {
                    Format[] formats = ((FormatControl) fc).getSupportedFormats();
                    for (Format format : formats) {
                        if (requested_format.matches(format)) {
                            ((FormatControl) fc).setFormat(format);
                            return true;
            return false;
        }To know the explanation of this method in depth, please click the link of the post. I believe it would not be difficult to understand once you have read that post. Here is the link of that post again:[http://forums.sun.com/thread.jspa?messageID=10596731#10596731].
    Using that method, I have made a small utility which allows you to capture in all the supported formats (of webcam). That is meant for demonstration only and I am going to post it in next post (maybe next 2 posts if it exceeds character limit).
    Any suggestions to improve the utility would be appreciated. I confess that it is not the best and requires improvements. But it serves its purpose, i.e. demonstration, successfully.
    Enjoy!! :-)
    Once again thanks to captfoss, I request him to post in this thread to take the 5 dukes I am going to assign to this topic ;)
    Thanks!

    Here is the code: (in two posts)
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.control.FormatControl;
    import javax.media.protocol.*;
    import javax.swing.*;
    * @author captfoss & TBM
    public class ChangeResolution extends JFrame implements ControllerListener {
        Player p;
        DataSource ds;
        JComboBox combo;
        JPanel vidPanel;
        public ChangeResolution() {
            super("Resolution Change, by captfoss and TBM");
            Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, true);
            try {
                ds = Manager.createDataSource(new MediaLocator("vfw://0"));
                p = Manager.createPlayer(ds);
            } catch (Exception ex) {
                ex.printStackTrace();
            p.addControllerListener(this);
            p.realize();
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            vidPanel = new JPanel(new BorderLayout());
            vidPanel.setBackground(new Color(250,230,250));
        private void populateCombo() {
            Vector<Format> allFormats = new Vector<Format>();
            if (ds instanceof CaptureDevice) {
                FormatControl[] fcs = ((CaptureDevice) ds).getFormatControls();
                for (FormatControl fc : fcs) {
                    Format[] formats = ((FormatControl) fc).getSupportedFormats();
                    for (Format format : formats) {
                        allFormats.add(format);
            combo = new JComboBox(allFormats);
            combo.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    new Thread(new Runnable() {
                        public void run() {
                            vidPanel.removeAll();
                            vidPanel.revalidate();
                            JLabel lab=new JLabel("<html><center><font color=\"red\">Wait for a while...</font><br/>" +
                                    "<b><font color=\"green\">Format Changing...</font></b><br/>" +
                                    "<i>You are using a free open source 'Webcam Resolution Change utility', <u>meant for " +
                                    "demonstration only</u>, by:</br>" +
                                    "<font color=\"blue\"> captfoss and T.B.M</i></font><br/>" +
                                    "<font size=+1 color=\"green\"><b>ENJOY!!</b></font></center></html>");
                            lab.setHorizontalAlignment(JLabel.CENTER);
                            vidPanel.add(lab,BorderLayout.CENTER);
                            vidPanel.validate();
                            p.stop();
                            p.close();
                            try {
                                ds = Manager.createDataSource(new MediaLocator("vfw://0"));
                            } catch (Exception ex) {
                                ex.printStackTrace();
                            requestCaptureFormat((Format) combo.getSelectedItem(), ds);
                            p = null;
                            try {
                                p = Manager.createPlayer(ds);
                            } catch (Exception ex) {
                                ex.printStackTrace();
                            p.addControllerListener(ChangeResolution.this);
                            p.realize();
                    }).start();
        }Continued in next post....

  • RecordControl for Video Capture

    Hi,
    I have encountered problem capturing video using J2ME toolkit, and need help on this area. Thanks!
    I have the following sample code from web:
    output= new ByteArrayOutputStream();
    rc = (RecordControl)player.getControl("RecordControl");
    rc.setRecordStream(output)
    rc.startRecord();
    the problem is nullexception at the setRecordStream line.
    Can we actually carry out video capture using J2ME toolkit or need other emulator?
    Pls advice, Thanks for helps !

    This is a bit strange with apple servers today. For some strange reason, there seems to be a 5-10 min. delay in my post on this one thread only ....very weird.
    Oh well, I'll post the info again in hope that it sticks ....
    You can capture to iMovie which is what I suggest or directly to iDVD6 (via 1 step or magic iDVD). Your choice.

  • Can you make a screen capture using PS?

    I wanted to know if I can make a screen capture using Photoshop cs5.5 or do I have to use software such as Snag It?
    Thanks
    Barbara

    Hello, Kar209. Photoshop is an image editing software, it cannot do screen or video screen captures.
    There are dedicated software for that purpose, here is a link I found on google: http://www.ezvid.com/top_5_free_video_capture_software_for_windows
    On a Macintosh, it is possible to do a video capture using the built-in quicktime. https://www.google.com/search?q=capture+video+quicktime

  • Ge4Ti4200 VTD8X 128 -video capture..audio pickup?

    I am setting up my Ge4Ti4200 card for video capture using my VCR as the video input. I want to put VCR video onto CDs. I need to know how to set it up so that the audio is captured along with the video. There is  nothing in the manual or that I can find in the forums about this. Does the card capture both sound and picture?

    Get an RCA to Mini plug adaptor and plug audio into your microphone jack.  

  • Continous streaming of video signal on to PDA using TCP/IP?

    Hardware :IMAQ PCI 1411
    Software :labview PDA module, labview 7.0,7.1.8.0, Labview pocket pc 2002
    can i have continous video image on my PDA , image Acquired by the host PC  using 802.11g wrelessTCP/IP protocol.( that is continous video streaming on to my PDA device.) I am developing an application to transfer video signals to my pda.I would define my application
    I am developing robot having camera on it. my idea is to tranmit video image acquired by camera on host ( i.e robot ) to my PDA using wifi TCP/IP Protocol. i am able to control robot motion from pda using Daq pci-6229 on host.
    Thanks in advance.
    murari.

    I think the only way this would be possible in LV was if you convert the images to the LV picture format, flatten that to a string, send the string over and unflatten it and write it to a picture indicator.
    There are several potential problems:
    1. 7.0 was the first version of the PDA module. I don't remember how much support it has for the picture control, although I believe it should have enough. The newest version is 8.0, which was just released.
    2. Depending on the size of the picture, this can be a lot of data. Since you have a g connection, that should be less of a problem, but it still may be an issue, depending on your frame rate. I once wrote a VI which recognized which parts of an image were changed and used a special (very primitive) protocol to send the data to the PDA (I was thinking of a cellular connection and wanted to minimize the amount of data), but I did that for the LV interface, which was mostly static, and I only detected that when it changed.
    3. PDAs have significantly less processor power than a PC. Depending on your frame rate, this may be hard for the PDA.
    4. The PDA module only supports 8 bit color, and that will require you to do additional computation to make the picture look normal. 8 introduced 16 bit support.
    The upside is that writing the code for converting, sending, receiving and displaying the data is very very simple (assuming you can get it into the picture control format, not IMAQ, which isn't supported as far as I know). Just have a loop run on the computer side which will "acquire" the frame, flatten and send it, and another on the PDA side which will receive, unflatten and display. I think on the PDA side you will have to update the picture pixel by pixel.
    Try to take over the world!

  • TCP / IP Protocol Driver - not installed (using Windows 7 Home Premium (64 bit) Service Pack 1

    I am using a ThinkPad T520 laptop.  Lenovo Solutions Center keeps referring me (with a yellow exclamation mark) to the Device Manager and alerting me to a "non-critical" error. The message is "TCP / IP Protocol Driver - not installed".
    I have found numerous pieces of advice for Windows XP and Vista - but very little for Windows 7. I have however tried the Microsoft "Fix it" solution and it had no effect.
    I am still able to connect to the internet via Ethernet cable and wifi. It is however worrying that the warning keeps being raised.
    Does anyone know how I can fix it?

    Hi Tripplec.
    Thanks for the reply. I am away from home at present without my ThinkPad, so will try it at the weekend. I am an experienced computer user but this is a brand new machine and I have never had a laptop that produced error messages without providing any suggested fixes. It seems that Lenovo is not suitable for ordinary home users, but only for computer engineers. Sadly that is not me... so before I plunge in, can I just check some details?
    1. You suggest removing the offending network adapters in device manager. Which are the offending adapters that cause a TCP/IP protocol driver error?  I am nervous of removing the wrong things and making it worse!
    2. You also suggest that I go to Network Connections via Control panel, properties of adapter, Install and select the desired Protocol(s) and install them.  Is that an alternative fix  to 1 above - or an essential follow-on after removing the offending adapters?  (Last week I searched the machine and the Lenovo support page of drivers - and never found a TCP/IP protocol driver. If you know where one can be found, I would prefer to instal a new driver, rather than delete other devices and hope that the machine reinstalls them later!).
    Much obliged for your assistance.
    Fillet

  • TV@ Plus, what video capture settings to use?

     I have a TV@ Plus and am unsure what video capture settings to use. I've had it for several months and solved my audio problems and need to know what Video Input Format, Capture Format (Profile), Capture - Size, Quality, Bit Rate and Audio Format settings to use. Should I use the same settings for all input sources or do I use different settings for CATV and S-video inputs? It seems to be OK with my current settings as far as capture and playback goes, I'm OK on the hardware part but with tech detatails I'm a bit  .
     I will be using it to capture from CATV, DVD and VCR input sources for later recording to DVD's. I use a GoDVD! CT-2 connected to the S-video input for recording Macrovision protected media to the HDD.
     My computer sound is monitor mounted stereo speakers.
     Thanks in advance for any helpful replies.

    Quote from: HenryW on 12-September-06, 04:25:48
    I have a TV@ Plus and am unsure what video capture settings to use. I've had it for several months and solved my audio problems and need to know what Video Input Format, Capture Format (Profile), Capture - Size, Quality, Bit Rate and Audio Format settings to use.
    I already had transferred and converted some of my old VHS and VCD movie collections into DVDs (using Composite Input).
    The higher the bit rate the better quality video output you will have - but bigger file size.
    To give you an example:
    A 2 hour video captured on MPEG set at 4000/bps will be translated it to 3.58GB. More than enough to be written on a 4.7 DVD.
    For audio bit rates, you can choose from 128/bps to 224/bps. As for me I set it to 224/bps. Again the bigger bit rates the better audio output. And don't forget to slide up the audio record level to 100%. That will give you a better and clearer recorded audio output.

Maybe you are looking for

  • Quicktime codec for DVDs?

    As well the apple DVD player stinks compared to quicktime, yet quicktime doesnt appear to have a DVD player codec? any suggestions?

  • Printing issue in safari browser

    I am using safari browser on my windows machine and when I give print command from browser , printed page have different alignment than pages printed in other browsers like mozilla firefox and also elements of page are not at correct position, beacus

  • Learning Burning ~ playlists in a folder ?

    __Hello gang, . . . ...I'm preparing my 1st data-burn to DVDr, researching w/ the 4th edition of iTunes/iPod Missing Manual, & perhaps boldly, i thought a folder of playlists would work for compiling a good amount for my 1st burn. _In experimenting w

  • Which Developer Tools for Oracle Express 10g?

    Hello, I'm new to the area of developing .NET apps with Oracle. Till now 'Ive downloaded the Oracle Express 10g Edition and installed it. Now I want to install the Developer tools for .NET and I am not sure which one to install. I've seen that curren

  • Aperture can't be installed on "Macintosh HD" because Mac OS X version 10.10 or later is required.

    Hi I have two MacBookPro, and Installed Yosemite to the other of them. Since my Mac stopped working well, I do not attend to install Yosemite to the other Mac, but I keep my old Mac OS X Lion 10.7.5 (11G63). So here is the problem: "Aperture can't be