From: Sena_Scott on 20 Sep 2007 04:40 hi.. I was wondering how is it possible to send the images i capture using my USB camera wirelessly using TCP/IP to another computer (COM2) enabling it to show the same continous image on both computers. Below is my program so far.. For the file ( USB + Joystick Integration 2) Images can be seen in the VI file in (COM1) however unable to show on the (COM2) which is already connected togther using TCP/IP.. The file (faffafafaf) is the VI i use on the (COM2).. COM1 is the computer with the USB camera** Btw, one more question, Lets say i got a joystick connected to a computer(COMA) does it means COMA have to be the server of the program is i were to transfer the data to another computer(COMB) .. Can it be the Client also?? USB + Joystick integration 2.vi: http://forums.ni.com/attachments/ni/170/273046/1/USB + Joystick integration 2.vi fafafafafafafafaf.vi: http://forums.ni.com/attachments/ni/170/273046/2/fafafafafafafafaf.vi
From: Sena_Scott on 24 Sep 2007 06:10 Hi, Thanks for the help.. and i will take note of the side-note... I understand a computer can be both a client or a server, actually what i mean is cause my joystick is connected to a labtop, data will be obtained from the labtop then send out to the desktop... so i wondering if i make my labtop as the client, can it still perform the same operation like sending data over to the desktop>? Yup, My computers is connected together a wireless network together.. Below are the attached VIs.. i Began to get errors like ( Invalid Image) and the image i can view in the computer my USB camera connected to is no longer viewable.. In the file( Testing Camera 1) i convert the image into 2D Array as instructed then i flatten it into string and send it over wirelssly.. Did i make any mistake? At the labtop side ( Testing Camera1-Client) , I Unflatten the data i obtained from (Testing Camera1) and convert the 2D Array back into an image however no image is being processed still.. Please help.. Thanks.. Testing Camera 1.vi: http://forums.ni.com/attachments/ni/170/273665/1/Testing Camera 1.vi Testing Camera1-CLient.vi: http://forums.ni.com/attachments/ni/170/273665/2/Testing Camera1-CLient.vi
From: Sena_Scott on 25 Sep 2007 03:10 I found the mistake regarding the invalid image type.. I started to change the ArraytoImage to ArraytoColorImage.Vi and ColortoArrayImage.VI.. It began to work.. I'm able to view the images from the computer with the usb camera, however it still does not appears on the laptop.. But Before i'm able to get the images, the VI on the laptop have to be running before the image will start to appear, so i presume somehow there is some TCP/IP connection.. Below are my latest Vis.. Thanks.. Regarding the second question, if i keep it as separate VIs, its able to work definitely however i'm instructed to integrate them together so i can view the result in just in a VI.. So is there any helps you can provide me? Thanks.. Testing Camera 1.vi: http://forums.ni.com/attachments/ni/170/273932/1/Testing Camera 1.vi Testing Camera1-CLient.vi: http://forums.ni.com/attachments/ni/170/273932/2/Testing Camera1-CLient.vi
From: Sena_Scott on 26 Sep 2007 01:40 (((On the client machine that is receiving the image, are you getting any data from the TCP Read? It appears as though your logic for encoding and then decoding the image is correct. Are you getting no image, or a garbled image? If it's no image, can you verify for me that you are actually receiving data?))) I'm getting no image and unable to verify that i'm getting data from it.. how can i verify that i'm getting data from it?
From: Sena_Scott on 27 Sep 2007 02:40 As you can see in the example VI that I have attached, your algorithm for encoding and decoding the image works perfectly fine. I don't believe that is where your issue lies. Can you verify that the 2D data array being generated from your host, is the same 2D data array that you client is reading from the TCP Read (similar to the example VI I attached)? Also, you also might try ensuring that you set the "Image Type" on your "IMAQ Create.VI" to the correct value, depending on the type of image you are receiving from the camera. <a href="http://forums.ni.com/attachments/ni/170/274322/1/TransmitImage.vi" target="_blank"><img height="22 alt=Attachment hspace=5 src= http://forums.ni.com/i/global/icon_attachment.gif" width="22" border="0"></a> <a href="http://forums.ni.com/attachments/ni/170/274322/1/TransmitImage.vi" target="_blank"> TransmitImage.vi</a> (84 kb) Hi, Thanks for the VI.. I tried le.. And I can ensure that the 2D data array at both the server and client side is the same.. Just dunno why the image still does not comes out.. I also included setting " Image Type" on the "IMAQ Create.VI" the same for both Client and Server.. Any Help?
|
Next
|
Last
Pages: 1 2 Prev: Labview installation error missing DLLs Next: clear graph programatically |