02-24-2021, 09:33 AM
I am testing a custom cam profile generator in a background C program but I cannot assign the values of CamTable[m].PosData[i] and CamTable[m].OutData[i] without crashing the program. As required, I first redefine the table with PScript Command("") calls defining Nx and PosData[0], then set up the rest of the parameters as shown in the attached snapshot. The first assignment statement in the for loop which assigns values to the PosData and OutData crashes in the debugger. The cam table has been initialized with its parameters. The User Manual suggests that after table memory allocation, the data can be entered in the C environment. What am I doing wrong?