librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Intel Realsense camera and labview

Open ghost opened this issue 8 years ago • 18 comments

Hello, I want to use Labview to develop Realsense d435 in Windows 10, I found a set of instances at https://github.com/IntelRealSense/librealsense/tree/development/wrappers/labview,but there is no way to use it after download, subVI is missing and the .dll file cannot be imported(missing corresponding header file). Who can give me some suggestions or tips? Thank you! 1 2 3

ghost avatar Apr 20 '18 15:04 ghost

Something appears to be blocking and cleansing your downloads of important files. I just retried and it is all there. We can try to look at password protecting it and posting a new version here. Maybe that will allow you to download.

agrunnet avatar Apr 20 '18 18:04 agrunnet

I think we can solve this by assuming the DLL's got removed, so you need to generate new DLL's.

In this document https://github.com/IntelRealSense/librealsense/tree/development/wrappers/labview it says "The realsense2.dll that is included in this package is 64bit for Windows 10. Other versions (ex: 32bit) could be compiled by following the instructions on GitHub. Just rename them realsense2.dll and replace the file in the location used by the LabVIEW demos."

Please make sure to compile the LibRS to the 32bit or 64bit version you have. Finally, if you still have an issue, drill down to the SUBVI and the "Call library function node" and check that the path points to the proper DLL. image

agrunnet avatar Apr 20 '18 18:04 agrunnet

@agrunnet However, I have problems importing .dll files into LabVIEW. There is no way to import them into labview correctly, so there may not be a way to check this. Can you tell me the detailed steps? I am new to this field

ghost avatar Apr 21 '18 02:04 ghost

@agrunnet My function pointer is normal. It may be because I didn't know which header file to use so I didn't import it correctly. How should this be solved?

ghost avatar Apr 21 '18 02:04 ghost

No header is needed. The dll can basically be anywhere. All the important subvi’s have the call function node at their core. This is how you wrap a dll with Labview. You just need to double click on it and point open the path and find the dll file.

Tell me more about your system and I can make sure we make this easier for you. Windows 10? 64bit? Labview 2017?

agrunnet avatar Apr 21 '18 05:04 agrunnet

Yes, I am using Windows10 64 bit and Labview 2017

ghost avatar Apr 21 '18 08:04 ghost

@agrunnet How to solve the loss of that SUBVI? there are missing a lot of VI in the Labview library, the problem described in my issue picture inside.

ghost avatar Apr 21 '18 08:04 ghost

I will post version that is zipped with password soon.

agrunnet avatar Apr 21 '18 16:04 agrunnet

Okay, try this one. RealSense SDK2.10.4 for LabVIEW.zip Use password "intel123"

This is for LabVIEW 2017-64Bit, Windows 10, 64bit.

agrunnet avatar Apr 21 '18 19:04 agrunnet

Here is newer version with an added example for pointcloud with post-processing RealSense SDK2.10.4 for LabVIEW.zip password:intel123

agrunnet avatar Apr 21 '18 22:04 agrunnet

@agrunnet Thank you very much, I try it.

ghost avatar Apr 22 '18 01:04 ghost

@agrunnet Sorry, I forgot that my labview is 32-bit. How does this need to be solved?

ghost avatar Apr 22 '18 10:04 ghost

Since Labview is just a wrapper on the librealsense DLL, you basically just compile librealsense as 32bit and then copy and replace the DLL in the Labview examples. So since this may take some time unless you are all set up to do it, I did it for you here. realsense2_32bit.zip password is intel123

agrunnet avatar Apr 22 '18 15:04 agrunnet

@agrunnet Where do you have realsense2ex.dll? RealSense_HelloWorld_PointCloud Plus2.vi cannot be opened for the 32-bit version of realsense2ex.dll missing. thank you!

ghost avatar Apr 23 '18 14:04 ghost

I don’t have that for 32bit yet.

agrunnet avatar Apr 23 '18 14:04 agrunnet

I am posting here a new version of the LabVIEW wrapper based on LibRS 2.11.0.

  • It includes dlls for both the 32bit and 64bit version (default) of the librealsense2.dll.
  • It includes the new post-processing that is in the new LibRS, so no need for the extra Librealsense2ex.dll. Look at the example called RealSense_HellowWorld_PointCloud Plus4.vi

RealSense SDK2.11.0 for LabVIEW.zip Password is intel123

agrunnet avatar May 14 '18 16:05 agrunnet

@agrunnet Thank you very much for your continuous help and support. I will debug it immediately.

ghost avatar May 15 '18 00:05 ghost

[Realsense Customer Engineering Team Comment] @lonely-users If the solution provided by Agrunnet solves your problem, please help to close the issue, thank you.