Test and Measurement Forum

Borland C++ Builder 6

Post your C and C++ discussions here

Borland C++ Builder 6

Postby sebastian.frei » Thu Nov 06, 2008 2:18 pm

I'm using Borland C++ Builder 6 with the PicoScope5204. I added the file ps5000bc.lib to the project and included the headerfile ps5000Api.h.

I declared:
short handle;

The following function is working correctly:
ps5000OpenUnit(&handle);
ps5000CloseUnit(handle);

If I'm using the following function I get an error:
ps5000SetSigGenBuiltIn
(
handle, //short handle
0, //long offsetVoltage,
4000000, //unsigned long pkToPk mikrovolts
PS5000_SQUARE, //short waveType
50.0, //float startFrequency,
50.0, //float stopFrequency,
0.0, //float increment,
0.0, //float dwellTime,
UP, //SWEEP_TYPE sweepType,
FALSE, //short whiteNoise,
0, //unsigned long shots,
0, //unsigned long sweeps
SIGGEN_RISING, //SIGGEN_TRIG_TYPE triggerType,
SIGGEN_NONE, //SIGGEN_TRIG_SOURCE triggerSource,
0 //short extInThreshold
);

The Pico Scope generates a square signal and the program throws the following excaption:
EAccessViolation

What can I do to solve this problem?

Thanks
sebastian.frei
Newbie
 
Posts: 1
Joined: Thu Nov 06, 2008 2:09 pm

Postby Robin » Mon Nov 10, 2008 2:40 pm

Hi

We have tried this and been unable to recreate the problem.

Has anyone else experienced this?

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests