11-19-2019 02:54 PM
I have a camera that hosts an FTP site with images (.bmp) stored on it. I would like to display a real time image from the camera. I currently continually copy the file to my local computer and then display it afterwards, but I am concerned that the continual write to my solid state drive will cause issues long term. Is there a way to "stream" the image file directly to Labview and convert to image data type without saving locally?
I was looking at a datasocket read but I couldn't get any data out of the file and I get Error 42 occurred at DataSocket Read. If I could get the "string" from the file I could convert it to an image using the guts of the bitmap file open vi.
Any suggestions
Solved! Go to Solution.
11-19-2019 03:44 PM
I don't do much with FTP, but I'd try the function Data communication -> Protocols -> FTP -> FTP Get Buffer. It appears to grab a single file and put it in RAM.
You can also try the information in this document:
https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/using_datasocket_technology/
to use datasockets to access FTP files.
11-19-2019 06:45 PM
Is the FTP site seriously the only way possible to get live data from the camera? That's not usual for a camera. Are you sure there isn't another method to get a live image? Can you tell us what model camera it is?
11-27-2019 08:10 AM
The FTP get buffer worked and was the answer to my original post so I will mark it as the answer for anyone who follows, but I may have asked the wrong question as Kyle pointed out. I will look into other options they may have. Thank you both.
11-27-2019 12:00 PM
@Kyle97330 wrote:
Is the FTP site seriously the only way possible to get live data from the camera? That's not usual for a camera. Are you sure there isn't another method to get a live image? Can you tell us what model camera it is?
It may not be the best way, but I think most cameras support an image server for "live" broadcasting, so it might be the most "universal" way. Also, it might be the most convenient way to share a feed over the internet.
01-06-2025 01:13 PM
can you share your vi, please?
01-09-2025 11:05 AM - edited 01-09-2025 11:07 AM
Here you go. Sorry it took me a bit to hunt it down. The sub VIs are modified versions of the library items that operate on the data sting from the FTP instead of from opening a local file.