LabVIEW to C# Conversion
What are all the Softwares needed for LabVIEW to C# Conversion(Converting VIs into C# Code)Except LabV开发者_Python百科IEW and Microsoft Visual Studio.
If you're looking for automatic conversion of LabVIEW code to C#, no such tool exist, you have to rewrite it by hand.
LabVIEW VI's are binary and as far as I know there is no other tool, besides LabVIEW itself, that understands them.
I think that by using Measurement Studio you could interface with NI hardware in .NET, but I don't think you can access all the VI's built in to LabVIEW from dlls.
Not C# but may be useful in certain instances:
NI LabVIEW C Generator
No tool exists (that National Instruments knows of) that does what you're looking for. Sorry.
We have pylabview which converts VIs to XML (and back). Whether it will convert everything to XML or leave some binary chunks depends on LV version used to create te files though. If Block Diagram was converted to XML, then you could write a parser which reads that and transforms to any output.
As a general rule, if you want to call LabVIEW code from C#, it is better to convert your VIs into dll library, then import it from C# like any assembly.
Check this example.You may also watch this video for basic creation of LabVIEW dll library
Manually rewrite the code is the only way. Might not be as painful as you think. I just converted a few LabVIEW projects to Python scripts and the Python script was surprisingly easier and much smaller in comparison.
Good luck!
精彩评论