08-27-2017 12:36 AM
I have a real-time VI and I want to import depth and camera stream from it to another VI so that I can use those streams for my research.
Regards,
Kashish Dhal
Solved! Go to Solution.
08-27-2017 04:11 AM
08-27-2017 03:59 PM
Kashish,
You need to supply a little more information. You mention "Real-time VI" and "LabVIEW compiled .exe" -- what are these? If you are talking about code that was originally coded in LabVIEW, but you only have access to the compiled "Application" (i.e. the .exe), then you may be out of luck, as the code for the depth and camera streams are already going where the coder sent them. Is your "Real-Time VI" running on a Real-Time Processor, such as a cRIO or a PXI chassis?
Can you describe a bit more what you mean by "depth" and "camera stream"? What are the data being generated, where is it currently going, and where would you like it to go? Are the "depth" and "camera" data synchronized by the hardware, or acquired from two asynchronous devices?
Bob Schor
08-27-2017 05:59 PM
Hi Gerd W & Bob_Schor,
I was talking about the code that was originally coded in LabVIEW, and I have access to the compiled "Application" (i.e. the .exe), I thought it is called Real-Time VI. I do not have "Real-Time VI" running on a Real-Time Processor, such as a cRIO or a PXI chassis.
Depth stream from camera give an array of size 640 x 480 pixel and each pixel is unsigned 16 bit integer. And camera stream is RGB of 640 x 480 where each pixel is unsigned 32 bit integer. However, these are arrays are converted into color images by the Application to be displayed on window. And they are not synchronized by the hardware, they are displayed in separate windows.
I want to acquire those streams to another LabVIEW VI if possible, so that I can extract information from them. And, Gerd please let me know how this network communication works.
Regards,
Kashish Dhal
08-27-2017 09:16 PM
Well, I'm not GerdW, but I have acquired data from multiple cameras at 640x480 RGB 30fps simultaneously over a TCP/IP network. If you have a GigE Camera (Axis and Basler make them), this is extremely simple.
I've also done data acquisition with LabVIEW RT and used Network Streams to stream analog data from the RT system to the PC over TCP/IP. Again, not so difficult (follow the examples that ship with LabVIEW).
If one of your routines is a compiled Application, then you will have a much easier time if you get your hands on the original LabVIEW code. This is particularly true if you want to add Network Streams to the "Real-Time" code.
Bob Schor
08-28-2017 01:07 AM
Bob,
Can you elaborate that how to send data over TCP/IP server or is there any source where I can get this information.
Regards,
Kashish Dhal
08-28-2017 01:09 AM - edited 08-28-2017 01:10 AM
08-28-2017 01:14 AM
OK, I will look at that example.
Thanks.
08-28-2017 08:10 AM
You can also search LabVIEW Help for "Network Streams", and find the "Concept" note "Streaming Data and Sending Commands between Applications".
Bob Schor