LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C Structure to LV Cluster mapper

I am looking for a tool that will take an h file definition of a
structure in C and create an analogous typedef cluster in LabVIEW which
I can then use when interfacing to code (dlls typically) using this
structure. This would be particularly useful for maintaining
synchronization between changing code in the dlls (structures might get
new members for instance) and the code I write in LabVIEW to interface
to them. I am trying to use LabVIEW as a test harness for a data
acquisition system and I want to test the algorithms directly as
written in C. Please let me know if you know of any such tool. The only
alternative I know of is to carefully create clusters that match the
structures by hand and make sure that I keep them upda
ted in a manual
kind of way. Kind of error prone.

Thanks,
Larry


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 2
(3,986 Views)
> I am looking for a tool that will take an h file definition of a
> structure in C and create an analogous typedef cluster in LabVIEW which
> I can then use when interfacing to code (dlls typically) using this
> structure. This would be particularly useful for maintaining
> synchronization between changing code in the dlls (structures might get
> new members for instance) and the code I write in LabVIEW to interface
> to them. I am trying to use LabVIEW as a test harness for a data
> acquisition system and I want to test the algorithms directly as
> written in C. Please let me know if you know of any such tool. The only
> alternative I know of is to carefully create clusters that match the
> structures by hand and make sure that I keep them updated in a manual
> kind o
f way. Kind of error prone.
>

This isn't exactly what you are asking for, but if you use CVI to write
the C code and create function panels for them, then you can use a feature
in LV to import a CVI function panel and wrap it automatically with a VI.

This isn't available for normal .h files because they don't contain
as much information about data types and there are ambiguities.

Greg McKaskle
0 Kudos
Message 2 of 2
(3,986 Views)