Forums › BB Series Discussions › BB60C matlab bbgetiq.m example code › Reply To: BB60C matlab bbgetiq.m example code
August 28, 2020 at 3:29 pm #237442
Participant
I’m getting there, but having problems with MATLAB.
I started with the bbgetiq.m in the SDK, and modified it by trying to redefine the array triggers and the size of it triggerCount as specified in the API manual for bbGetIQUnpacked.
I tried:
triggerCount = int32(70);
triggers = libpointer('int32', triggerCount);
calllib('bb_api','bbGetIQUnpacked',handle,iqarrayptr,iqcountint,...
triggers,triggerCount,purgearg,nullptr,nullptr,nullptr,nullptr);
but MATALAB complains:
Error using calllib
Array must be numeric or logical or a pointer to one
I can’t figure out how to properly define an array of integers ‘triggerCount’ long…