02-13-2013 02:19 AM
Hello,
I hope this question is posted in the appropriate forum, my apologies if not.
I'm building a C#, WPF application on Windows 7 Pro that aggregates data from multiple sources, one of them being a cRio 9025 + 9144.
I have a vi running on the same computer that displays data coming from the cRio and allows me to control and monitor my devices. This vi works with no problem. What I would like to do is to read and write the shared variables this vi is using to communicate with the cRio, but from the WPF application.
I have searched and investigated, but I can't find a really good solution. For instance, I could run a small vi that reads a shared variable and returns its content, but it sounds like a lot of unneeded code is being executed, and it's probably quite slow.
Also, during my investigations I have got messages that my license must be activated to access NI .NET components, but I have no clue which license to activate or buy. I have Labview 2012 and I have activated every license I could, to no end.
Could you kindly point me to a source explaining the best approach to take?
Thank you for your help.
02-14-2013 09:34 AM
Hi,
Could you post your VI just in order to see what you've done?
Thank you.
Regards,
Celine
National Instruments France
02-15-2013 01:50 AM
Sure. I have attached the project, with the vi running on the PC included. I think vi that run on the cRio or 9144 are irrelevant to the discussion, but let me know if you need more.
Thank you for your help.
DLB
02-15-2013 04:18 AM
@Proengin wrote:
[..]Also, during my investigations I have got messages that my license must be activated to access NI .NET components, but I have no clue which license to activate or buy. [..]
Those libraries are part of Measurement Studio (MStudio), an "add-on" to MS Visual Studio:
Maybe it is easier for you to buy MStudio (either as standalone or as part of the Developer Suite Core) rather than trying to create a LV wrapper and include this as unmanaged package in your C# application.....
Norbert
02-15-2013 06:23 AM
I have Measurement Studio Enterprise Edition installed and activated on my computer. However, I might have missed a step somewhere, and I will focus on running the examples and reading the doc (!) until my license issue is fixed.
Anyway, that's the pointer I was looking for, thank you. I'll come back here if I still can't make it to work.
DLB