Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CWCounter AcquiredDataEvent in C++ passes an invalid VARIANT*

I am using a PXI6602 card and setting up for continuous buffered event counting. I am using Visual C++. I have everything working, and am receiving the OnAcquiredData event properly. Unfortunately, the first parameter (VARIANT* Measurement) points to invalid memory. The second parameter (VARIANT_BOOL Overflow) is a valid value. I can make it work with VB, so I'm wondering if there is anything special about sinking this event for CWCounters. I am successfully connecting and sinking OnAcquiredData events from CWAI's and CWDI's in Visual C++.
0 Kudos
Message 1 of 2
(3,049 Views)
Hello

You can download a bunch of examples from the ftp site that shows you how to use the various controls in VC++. You can download those from here

ftp://ftp.ni.com/support/compworks/samples/

The zip file is called CW3VC.zip

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,049 Views)