New library warning

Post your MATLAB discussions here
Post Reply
SE21733
Newbie
Posts: 0
Joined: Fri Oct 05, 2012 12:42 am

New library warning

Post by SE21733 » Mon Jun 17, 2013 2:36 am

Hello everybody (especially hitesh, since long time I haven't contact you)

I notice a new version of sdk files PL1000sdk_r10_5_0_19 in the Picotech website I decided to give it a try.
I copied all necessary file inside the sdk folder into my MATLAB directory (in simple, I just overwrite the old library files) and then run my program.

The program does work but not without warning below.

Code: Select all

In loadlibrary at 318
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: Warnings messages were produced while parsing.
Check the functions you intend to use for correctness.
Warning text can be viewed using:
 [notfound,warnings]=loadlibrary(...) 
> In loadlibrary at 344
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000OpenUnit does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000CloseUnit does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000GetUnitInfo does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000GetUnitInfo does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000SetDo does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000SetPulseWidth does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000Run does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000Ready does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000Stop does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000MaxValue does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000SetInterval does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000SetTrigger does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000GetValues does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000GetTriggerTimeOffsetNs does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000GetSingle does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000OpenUnitAsync does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6 
Warning: The data type 'error' used by function
pl1000OpenUnitProgress does not exist. 
> In loadlibrary at 403
  In PicoLogMatlabStreaming_2_Channels_Record_function at 6
Although it just a warning, somehow I feel uneasy about it. What actually cause it ?

Thanks and regards
Shapa

Hitesh
Site Admin
Site Admin
Posts: 2829
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: New library warning

Post by Hitesh » Mon Jun 17, 2013 9:24 am

Hello Shapa,

The 'error' data type warning is a result of MATLAB not picking up the picoStatus.h file when you call loadlibrary.

In the pl1000Api.h file, enter the following line after the #define __PL1000API_H__ line:

Code: Select all

#include "picoStatus.h"
That should resolve the warning messages :D

Regards,
Hitesh

Technical Support Engineer

SE21733
Newbie
Posts: 0
Joined: Fri Oct 05, 2012 12:42 am

Re: New library warning

Post by SE21733 » Mon Jun 17, 2013 11:24 pm

Oh silly me, I forgot about that :oops:

SE21733
Newbie
Posts: 0
Joined: Fri Oct 05, 2012 12:42 am

Re: New library warning

Post by SE21733 » Mon Jun 24, 2013 5:55 am

hello Hitesh, I saw inside the zip file of the new driver there is a x64 folder containing 2 library files. Is Picolog now support for Matlab 64bit version ?

Hitesh
Site Admin
Site Admin
Posts: 2829
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: New library warning

Post by Hitesh » Mon Jun 24, 2013 8:28 am

Hi,

It should be possible to use the 64-bit dll with MATLAB 64-bit although we have not been able to test it here.

Thanks,
Hitesh

Technical Support Engineer

SE21733
Newbie
Posts: 0
Joined: Fri Oct 05, 2012 12:42 am

Re: New library warning

Post by SE21733 » Tue Jul 02, 2013 7:10 am

ok, I'll try then

Post Reply