LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in calling C# DLL in LabVIEW

I have a problem in calling C# DLL in LabVIEW. The demo in C# can running correctly, can detect the connection of instrument, but it doesn't work in LabVIEW, I don't know what I missed. 

BTW, function StartAsync() was replaced by StartForManufacture() in LabVIEW.

0 Kudos
Message 1 of 4
(212 Views)

@五月雪 wrote:

 but it doesn't work in LabVIEW, I don't know what I missed. 


What doesn't work?

 

Nothing will work for us, we don't have the device...

 

I'd register the event before connecting, if you register after the event might be missed.

0 Kudos
Message 2 of 4
(181 Views)

I've tried register the event before connecting, it didn't work either.

 

My purpose of LabVIEW program is to check the status of the connection between PC and device. 

 

The function "StartAsync()" is an asynchronous function in the C# project. I don't know if LabVIEW can call an asynchronous function directly, I've tried, and it didn't work anyway.

0 Kudos
Message 3 of 4
(130 Views)

There's very little we can do without the device and\or a lot more details.

 

I'd put on retain wire values, run once and see where errors start (highlight execution would work too). And then tell us, because without the device we probably can't run the code like you do.

0 Kudos
Message 4 of 4
(110 Views)