Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-CAN .Net C# Wrapper?

Does anyone have an example C# wrapper class for the NI-CAN they could share for use with the Measurement Studio libarary? We are converting our C++ code over to c# and was wondering if anyone had done this and would be willing to share it.

 

Tnx..

0 Kudos
Message 1 of 6
(6,702 Views)

Hi, I found a similar thread here. I hope this helps

Alejandro C. | National Instruments
0 Kudos
Message 2 of 6
(6,679 Views)

Tnx, but that didn't help much. I guess it's not possible to control the NI-CAN via C#.

0 Kudos
Message 3 of 6
(6,676 Views)

Sorry, NI-CAN is fairly old so it comes with a couple limitations. I also found this but I'm not sure if it applies to your case (it depends on the hardware). The key point here is the Compatibility Layer. Perhaps GURO can provide more details.

Alejandro C. | National Instruments
Message 4 of 6
(6,672 Views)

Hi,

 

It's doable. I have a bunch of C# applications running NI-CAN.

 

Unfortunatly I'm not allowed to share any code though.

 

What I did was created a C++ DLL wrapper and used that in the C# application.

Message 5 of 6
(6,595 Views)

Thanks, that's a good start. I wished you could share the dll code, but understand.

 

Thanks again.

0 Kudos
Message 6 of 6
(6,529 Views)