I'm working on programming ADC-216 on BBC Basic, but I have some problems to be solved.
The problem is about linking to .DLL file. Basically, in BBC Basic, when I call the function on DLL file (adc20032.dll), I have to send the pointer for what variables that I need the function to return the variables. It works well with adc200_set_timebase function which gaive me exact value of ns and is_slow. However, the problem is caused when I call the function adc200_get_values. The buffer_A and buffer_B give all strange values which are out range (much much over 32768 and much much lower than -32768). I'm unsure where the problem happens. It would be very appreciated if someone can bring me out of maze.