Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

want to make reference to FlexMotion32.dll in C#

we plan to integrate PCI-7358 motion card into our app using C#. Is there any way we can directly using FlexMotion32.dll in C#? It's normal DLL not COM. File Version:5.2.0.3001

Thanks.
0 Kudos
Message 1 of 2
(3,748 Views)

In Response To: "we plan to integrate PCI-7358 motion card into our app using C#. Is there any way we can directly using FlexMotion32.dll in C#? It's normal DLL not COM. File Version:5.2.0.3001. Thanks."

Hey Zhijun,

First of all, the driver version that you have currently, version 5.2.0, is not the most recent version that is available on the National Instruments website. You can find a list of all the current and old NI Motion Control Drivers at the following link Motion Control Drivers. If you have Windows 2000 or XP then you will want the most up to date driver which can be found at NI-Motion.

Now to answer your question, you can directly call the FlexMotion32.dll from your C# program. You will have access to all of the functions that are in the FlexMotion DLL. This DLL is just like calling any other DLL in C#, and it is not COM, just a normal DLL. Someone else has also performed this FlexMotion32.dll call in their code and they discussed it in the following Discussion Forum: How to call the National Instruments flexmotion32.dll from C.

I hope this answers your questions and points you in the right direction to get you started. Please let me know if you have any further questions regarding this DLL or the C# call to it. Thanks, and have a great day.

Regards,
DJ
Applications Engineer
National Instruments

Message 2 of 2
(3,735 Views)