Posted: 02 Mar 2016, 00:41
Hi,
in my last module, I use an array input that is supposed to take 0 to 255 integers in a table that has a size of 256.
I did this :
// frequency
else if (ParamIndex == 1) {
pParamInfo->ParamType = ptArray;
pParamInfo->Caption = "wave shape";
pParamInfo->MinValue = 0;
pParamInfo->MaxValue = 256;
pParamInfo->DefaultValue = 127;
pParamInfo->Format = DEFAULT_FORMAT_INTEGER;
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->CallBackType = ctImmediate;
}
as well as setting the size of the event in the initialisation :
sdkSetEvtSize(shape, 256);
But, when I pull a wire out of the array input, I get an array of size 16 with 0 to 1 integers...
thanx for your help
in my last module, I use an array input that is supposed to take 0 to 255 integers in a table that has a size of 256.
I did this :
// frequency
else if (ParamIndex == 1) {
pParamInfo->ParamType = ptArray;
pParamInfo->Caption = "wave shape";
pParamInfo->MinValue = 0;
pParamInfo->MaxValue = 256;
pParamInfo->DefaultValue = 127;
pParamInfo->Format = DEFAULT_FORMAT_INTEGER;
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->CallBackType = ctImmediate;
}
as well as setting the size of the event in the initialisation :
sdkSetEvtSize(shape, 256);
But, when I pull a wire out of the array input, I get an array of size 16 with 0 to 1 integers...
thanx for your help