Hi i have a big question I have a CVS and Iwould like grab images and transmit these images to host.Itried with Real time wizard but I can't transmit bidimensional array or image .How is it possible to trnsfer imanges to host .i have only a week to finish this work. Thank's
There are different ways to do this. The question is what you want to do on the host and what time. 1. Save images on host: In my opinion the best way is to use a 1394 harddrive at CVS and save images to that harddrive. Connect that harddrive later to host to get those images. 2. Display live images on host and set new control parameter values: Use your webbrowser and remote panel to see the frontpanel running on CVS at the host machine. With remote panel you are able to see and control the VI (frontpanel). 3. Send parameters to host and back to CVS: Use a client-server-application. Take a look into the "datasocket" or "tcp/ip" examples of labview. To transmit images it could be necessary to convert the image to 2D-Array on CVS and back from 2D-Array to image on host.
Gulm, probably you might also want to try and do the following in the RT VI
1) Acquire the image 2) open an application reference to LabVIEW on your Host PC and the open a reference to the Write JPEG File.VI on your Host PC passing the acquired image to this instance of the Write JPEG.VI on your host machine.
Hi Alessio before thank's for your reply. Yes I tried that solutions but I cannot save image. i don't have error but the jpeg or bmp file doesn't exist. How is it possible
Gulm, if you have already tried that solution and it does not produce any image file, can you just attach an example of the VI you have developed so that I can chek into it and see what's wrong? thanks
Hi, thank's I finded yesterday the solution for save images to host (it's all right I save image correctly)but I have the problem to create a FIFO with images is it possible? I would like create two subvi one which create FIFO with image, other which read from FIFO and send images on TCP-IP. Any idea? Thank's
Gulm, there is no way to push an entire 2D array through a FIFO. The tick you may want to use is to split up the 2D array in sets of 1D arrays (vectors) and push these through different FIFOs and then rebuild the 2D array on the other side. This trick is also suggested on this public knowledge base:
Hi we tried with reshape array and we tried to transmit 1-dimensional array. The cvs transmit an array with correctly dimension but incorrect values (all equals 0)maybe it's a good way (with adjustements). But is possible to create a FIFO directly of images without to use Image to array? If I want to read from serial port of CVS we can use normal subvis serial?
Gulm, the serial port on the CVS works pretty much like a serial port on a RT Target. You can address it using LabVIEW VIs and should refer to it as ASRL1::INSTR. The correct method for transferring images can be found in this document
Yes we would like to use a TimeCritical Loop to acquire and a normal priority to transmit data to host. I nedd acquire one snap every second (triggeed from GPS) and transmit to host images. Than's elisa