LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import einer dll mit unbekanntem Datentyp UWORD und UBYTE --> unsigned int 8/32

Hallo,

 

ich möchte eine dll importieren (LV 2012 SP1), in der die Datentypen UWORD und UBYTE verwendet werden.

Resultat sind vis mit Clustern aus unbekannten Datentypen am Eingang. Smiley Frustrated

 

Wie kann ich (z.B. durch eine geeignete Präprozessorangabe etc.?) direkt beim Import die jeweiligen Datentypen umwandeln?

UWORD --> UINT32

UBYTE --> UINT8

?

0 Kudos
Message 1 of 3
(2,749 Views)

Bitte entschuldigen Sie meine schlechte Deutsch.  Ich bin Amerikaner.

 

Sie koennen das Call Libarary Function Node betnuzen. 

 

Es laesst Ihr die Parameters waehlen.  Es hat alle Datentypen.

 

Call Library Function.JPG

 

Wenn Sie Englisch sprechen koennen, dann lesen Sie diesen Artikel fuer mehr Informationenhttp://www.ni.com/white-paper/3009/en/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 Kudos
Message 2 of 3
(2,706 Views)

As far as i know, UWORD and UBYTE are no ANSI C defined basic data types. That explains why you receive "Unknown data type" messages.

As MrHappyAsthma correctly points out, you have to build compatible clusters in LV which you connect to the parameter and fiddle out the correct settings for the parameter in the CLFN.

If you do not find any suitable (read: error-free) settings, the best solution would be to create a wrapper DLL which simple routes that custom data type to ANSI C data types....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 3
(2,683 Views)