Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Double Buffering on Builder 4

I'm writing my own app with a PCI 6034-E and Borland C++ Builder 4.
I have implemented Single Buffer Acquisition with no problem. But when I try to implement Double Buffering from NI Example file I've encountered some problems...
When I try to print results on a VCL label (instead of printf calls) I receive a Violation Error. Why?
How can I print HalfBuffer contents?
0 Kudos
Message 1 of 2
(2,936 Views)
Sir,
The call I am assuming you are using on the double buffered example is the DAQ_DB_TRANSFER. The output or return value on this is an integer array of i16's. I'm not very familiar with Borland C++ Builer 4, but I'm thinking the VCL label is just a control that you are trying to send a value to. I'm not sure why this would give you an violation, other than that array of integers not having an data in there, or you are pointing to the data in an element incorrectly.

Daniel McChane
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,936 Views)