The brand-new PN400 Phase Noise Test System is available for purchase! →

Reply To: BB60C matlab bbgetiq.m example code

Forums › BB Series Discussions › BB60C matlab bbgetiq.m example code › Reply To: BB60C matlab bbgetiq.m example code

#237442
jgauthier
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…