Borland C++ Builder 6

Post your C and C++ discussions here
Post Reply
sebastian.frei
Newbie
Posts: 1
Joined: Thu Nov 06, 2008 2:09 pm

Borland C++ Builder 6

Post by sebastian.frei »

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

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Post by Robin »

Hi

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

Has anyone else experienced this?

Robin

Post Reply