maxvoxel8 Posted November 20, 2018 Share Posted November 20, 2018 In the users manual an example is given of defining an array: global IncrementDist(512); and then doing MyTotalDist = sum(&IncrementDist, 512, 1) to get the sum. I'm trying to do this but getting the error: Error : ( error #31) data error in equation : Q1045 = sum(&IncrementDist, 512, 1) This seems to happen regardless of where I place the line or what variable it's assigning to. I am using IDE version 4.1.0.24 and firmware version 2.4.0.180. Link to comment Share on other sites More sharing options...
curtwilson Posted November 20, 2018 Share Posted November 20, 2018 Your syntax is slightly off. It should be: MyTotalDist = sum(&IncrementDist(0), 512, 1) Link to comment Share on other sites More sharing options...
maxvoxel8 Posted November 20, 2018 Author Share Posted November 20, 2018 Ah thanks, a mistake in the manual then. Link to comment Share on other sites More sharing options...
curtwilson Posted November 26, 2018 Share Posted November 26, 2018 Please provide us with manual name, date, and page where you found the error so we can correct it. In some places it is described correctly. Link to comment Share on other sites More sharing options...
maxvoxel8 Posted November 28, 2018 Author Share Posted November 28, 2018 The Power PMAC Users Manual, May 14 2018, p.523 Link to comment Share on other sites More sharing options...
Recommended Posts