Delta Tau Forums
Unable to use variable reference syntax - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2)
+--- Thread: Unable to use variable reference syntax (/showthread.php?tid=2788)



Unable to use variable reference syntax - maxvoxel8 - 11-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.


RE: Unable to use variable reference syntax - curtwilson - 11-20-2018

Your syntax is slightly off. It should be:

MyTotalDist = sum(&IncrementDist(0), 512, 1)


RE: Unable to use variable reference syntax - maxvoxel8 - 11-20-2018

Ah thanks, a mistake in the manual then.


RE: Unable to use variable reference syntax - curtwilson - 11-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.


RE: Unable to use variable reference syntax - maxvoxel8 - 11-28-2018

The Power PMAC Users Manual, May 14 2018, p.523