Jump to content

gmleeman

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by gmleeman

  1. Hi labviewbeginner, I hope this is not too late in reply. I think the problem is with Byte Alignment (or Data Alignment), particularly with structs in C See: http://digital.ni.com/public.nsf/allkb/F7E5C9169D09E98586256AF300717B33 Your C compiler is configured to use a different Data Alignment (1 byte, 2 byte, 4 bytes, 8 bytes, etc) than your LabVIEW version is set up to use. See: http://en.wikipedia.org/wiki/Data_structure_alignment although wikipedia is not that clear. It simply means that the compiler will pad your struct sizes to fit into a multiple of the byte alignment, hence a different size is reported when you try to copy memory. And the error when the size is too big (unexpectedly). Its a quick change in your C compiler....compile with the correct data alignment, or try them all to see whan you get the alignment the same as is generated by LabVIEW Hope this helps
×
×
  • Create New...

Important Information

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