PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
#include "..\ps3000aApi.h"
Code: Select all
#include "ps3000aApi.h"
Code: Select all
// cuba.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "picoStatus.h"
#include "ps3000aApi.h"
#include "PS3000Acon.c"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
//-------------------------
Code: Select all
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(167): error C2664: 'ps3000aSetChannel' : cannot convert parameter 2 from 'int' to 'PS3000A_CHANNEL'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(219): error C2664: 'ps3000aSetDataBuffers' : cannot convert parameter 2 from 'short' to 'PS3000A_CHANNEL'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(355): error C2664: 'ps3000aSetDataBuffers' : cannot convert parameter 2 from 'long' to 'PS3000A_CHANNEL'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(552): error C2440: 'initializing' : cannot convert from 'enPS3000A_ThresholdMode' to 'PS3000A_CHANNEL'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(698): error C2664: 'ps3000aMemorySegments' : cannot convert parameter 3 from 'unsigned long *' to 'long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(731): error C2440: '=' : cannot convert from 'void *' to 'short ***'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(732): error C2440: '=' : cannot convert from 'void *' to 'short *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(736): error C2440: '=' : cannot convert from 'void *' to 'short **'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(745): error C2440: '=' : cannot convert from 'void *' to 'short *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(756): error C2664: 'ps3000aSetDataBuffer' : cannot convert parameter 2 from 'short' to 'PS3000A_CHANNEL'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(975): error C2664: 'ps3000aSetSigGenArbitrary' : cannot convert parameter 10 from 'int' to 'PS3000A_SWEEP_TYPE'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(981): error C2664: 'ps3000aSetSigGenBuiltIn' : cannot convert parameter 9 from 'int' to 'PS3000A_SWEEP_TYPE'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\users\hanafi\desktop\khairul\dropbox\phd\phd notes\project c++\cuba\ps3000acon.c(1025): error C2440: 'initializing' : cannot convert from 'enPS3000A_ThresholdMode' to 'PS3000A_CHANNEL'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)