Jump to content

Wolfcastle

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Austria
  • Interests
    Machine Vision, Calling external Code

LabVIEW Information

  • Version
    LabVIEW 2009
  • Since
    2006

Wolfcastle's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. In between I corrected this "little mistake" but it still did not work. I searched the forum and found this post: http://lavag.org/topic/10373-sending-an-array-of-clusters-to-a-c-dll/ So I used the pragma pack directive and it works! Thanks for your help, Wolfcastle
  2. Hello there, I just checked out your example passing in an array of clusters. What I tried but did not work is this example: I created an array of clusters of two elements. then I selected "adapt to type", handle through value The resulting c Code for the types is this one typedef struct { double x; double y; } TD2; typedef struct { int32_t dimSize; TD2 Cluster[1]; } TD1; typedef TD1 **TD1Hdl; So, how do I manage to acces e.g. the second cluster element? I tried this: int32_t funcName3(TD1Hdl arg1, int32_t size1, int32_t *value) { TD2 clusterElem = (*arg1)->TD2[1]; return clusterElem.x; } But this code always returns 0. Does anybody know why? Regards Wolfcastle
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.