01-24-2011 08:21 AM
Solved! Go to Solution.
01-25-2011 03:13 AM
Ricky,
LabWindows/CVI is ANSI-C, so there is no native OOP.
I did not quite catch from your posting why you are not content with the "Create .NET Controller..." functionality, but this being said, you can do almost everything necessary (like instancing objects, ...) manually using the .NET library. There are quite a few sample applications for this shipped with CVI. One that I can recommend is the "SimpleTaskMonitor", which can be found in the C:\Users\Public\Documents\National Instruments\CVI2010\samples\dotnet\SimpleTaskMonitor directory. It uses a custom wrapper library called "SystemWrapper", which features all the necessary code for object management.
Additionally, there is a chapter in the CVI help with specific sample code for calling assemblies manually in the ".NET Library" topic (see attached screenshot):
Best regards,
Sebastian
01-25-2011 03:50 AM
Hi Sebastian,
thanks for replying.
Actually the problem is that the vendor does not supply and MyAssembly.h. Does it mean that I have to write a new assembly myself?
Regards
Ricky
01-26-2011 06:54 AM
Ricky,
yes, I believe that you will need the .h file.
Best regards,
Sebastian