From: ChristianEC on
Hello, I am using a cRIO 9012 running VxWorks.I have a Call library function VI in my application and I want to pass arrays of doubles to this function.The problem is that I can not access the values in the array.Here is the source code of my function:/****/#include "D:\\Programme\\National Instruments\\LabVIEW 8.5\\cintools\\extcode.h"double avg_num(double *in1, double *out1){ &nbsp;&nbsp;&nbsp; double ret;&nbsp;&nbsp;&nbsp; ret = in1[0] + out1[0];&nbsp;&nbsp;&nbsp; return ret;} /****/The value of in1[0] and out1[0] is always.When passing no arrays but single values, all is fine. But since my application is more complex than this example, I need to pass arrays.<img src="file:///C:/DOKUME%7E1/cvetter/LOKALE%7E1/Temp/moz-screenshot.jpg" alt="">The block diagram and parameter specification is as shown in the attached screenshots. I am compiling the source code with the Gcc 6.3 which is available here:<a title="blocked::http://zone.ni.com/devzone/cda/tut/p/id/5694" href="http://zone.ni.com/devzone/cda/tut/p/id/5694" target="_blank"> http://zone.ni.com/devzone/cda/tut/p/id/5694</a> What am I doing wrong?Or is passing arrays not supported on cRIO?Maybe the makefile needs to be modified?Thank you.Best regards,Christian


vi.JPG:
http://forums.ni.com/attachments/ni/170/321310/1/vi.JPG


parameter.JPG:
http://forums.ni.com/attachments/ni/170/321310/2/parameter.JPG