LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

leap sensor not working in .exe

I am interfacing leap sensor with labview. In VI, I am getting the leap data perfectly fine. But when I make the exe, I am not getting the sensor value (leap) other than that all indicators and controls are working fine in .exe.

 

looking forward for help.

 

 

Regards

kashif

0 Kudos
Message 1 of 13
(2,522 Views)

I'm afraid you may not get much help because your message is very scarce on information.

 

Let's start off simple.   What is a "leap sensor"?

 

Second, show some code or something so we can see how you are interfacing with this sensor.

 

0 Kudos
Message 2 of 13
(2,512 Views)

@RavensFan wrote:

Second, show some code or something so we can see how you are interfacing with this sensor.


Attach your VI.  If you are using third-party software, tell us about it.

 

Bob Schor

0 Kudos
Message 3 of 13
(2,473 Views)

please find the attach VI. the VI works fine, the problem I am facing is with .exe

0 Kudos
Message 4 of 13
(2,440 Views)

Hi kashif,

 

the problem I am facing is with .exe

Which "problem" are you facing? Which error do you get?

 

Why does your block diagram not look like this:

check.png

Why are there terminals without a label?

How is the communication channel defined to your sensor?

Why is there no error handling in the loop?

Again: which error do you get?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 13
(2,428 Views)

I am getting the error

" Error 1172 occurred at Constructor Node Error creating instance of Controller in assembly Leap.Controller, LeapCSharp.NET3.5, Version=0.0.0.0, Culture=neutral, PublicKeyToken=6e1b1368e71eba9b, (System.TypeInitializationException: The type initializer for 'Leap.LeapPINVOKE' threw an exception.
Inner Exception: System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Inner Exception: System.DllNotFoundException: Unable to load DLL 'LeapCSharp': The specified module could not be found. (Exception from HRESULT: 0x8007007E)) ".

 

you need to install the leap sensor library from the VIPM to find the missing items.

 

Looking forward for help.

 

Thanks and regards

kashif

0 Kudos
Message 6 of 13
(2,415 Views)

Hi Kashif,

 

you should have told that error description right in your first message!

 

So the EXE cannot access that .NET library in the right way.

What does the support for that LEAP sensor toolkit say about this problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(2,413 Views)

hello GerdW,

 

So the EXE cannot access that .NET library in the right way.

 

How do I resolve this?

 

I only find this online

https://www.labviewmakerhub.com/forums/viewtopic.php?f=4&t=309

 

 

Thanks and regards

kashif

 

 

 

0 Kudos
Message 8 of 13
(2,408 Views)

Hi Kashif,

 

do the discussion points in your linked thread apply to you?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(2,403 Views)

hello GerdW,

 

No, because my VI works fine and I am only getting the error in .exe.

 

 

 

 

thanks and regards

kashif

0 Kudos
Message 10 of 13
(2,400 Views)