LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET-Error when invoke "tiepie_hw_init" from TIEPIE_HW_API

Hi,

 

I'm using the follow software products:

When I try to initialize the API with invoke node "tiepie_hw_init", I receive the follow .NET error:

 

"Invoke Node
Exception has been thrown by the target of an invocation.
The type initializer for 'TiePie.Hardware.API' threw an exception.
Stack Trace:
at TiePie.Hardware.API.tiepie_hw_init()
at InvokeStub_API.tiepie_hw_init(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
in TiePie.Hardware_DotNet_Init&Close.vi"

 

Details are shown in the attachment. Has anybody a tip, what's the reason of this? Thank you in advance

 

Christian

0 Kudos
Message 1 of 7
(158 Views)

since tiepie_hw_init is black you should click on it. Then choose from the method list appropriately.

Actor Framework
0 Kudos
Message 2 of 7
(105 Views)

The method was selected correctly (see attachment). The method in the Invoke node was also executed, but returned the described error.

Download All
0 Kudos
Message 3 of 7
(68 Views)

The comment in your code does mention .net framework, not code. Are you sure your dll is .net core?

 

If both are available choose freamwork, since core support is not good.

Actor Framework
0 Kudos
Message 4 of 7
(59 Views)

Thank you for response. "Select Class >> .NET Core" is the only way to load the "TiePie.Hardware" assembly.

 

I tried to load the "TiePie.Hardware" assembly via "Select Class >> .NET Framework", but it returnes an unspecified error (see attachment).

0 Kudos
Message 5 of 7
(51 Views)

according to

https://www.nuget.org/packages/TiePie.Hardware#readme-body-tab

there is a .net 5 framework version of the lib. Either download it from nuget via e.g. visual studio and locate where nuget has put those or ask the manufacturer to send you appropriate files.

 

 

Actor Framework
0 Kudos
Message 6 of 7
(37 Views)

I realized .NET version naming is not easy to understand. I am not sure if a tiepie .Net Framework version exists. If not you have to wait for proper core support in labview. I guess this takes at least 2 more years from now.

Actor Framework
0 Kudos
Message 7 of 7
(20 Views)