Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cwai AquiredData event

What would keep my AcquiredData event from firing?
I have two objects configured.  One cwaipoint for singlepoint reads and one cwai for multiple channel scans.
 
after running cwai.start the AcquiredData event does not fire.
0 Kudos
Message 1 of 3
(2,950 Views)
DMas,

Thank you for posting to the NI Forums.  We would love to help you out but are going to need more information to be able to give a proper answer.  What board are you using for the acquisition?  How are the CWAI objects configured?  Are the tasks triggered?  Do any errors occur?  Does either the single point read or the multiple channel read successfully return any data?

I assume you are using Visual Basic 6 to program with the CWAI objects, am I correct?  Have you tried any examples?

Thanks for your patience.  I look forward to hearing back from you and being able to provide a useful answer.

Regards,

Neil S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,941 Views)
My problem seems to be VB related....
I started up the system and ran from the Form.Load section
 
Without allowing the form to completely load that had all of the CW objects located, the dataacquired event would not fire.
If the form is allowed to load and exit the form load code, everything worked fine after the cwai.start was invoked from another object. 
 
Most likely my knowledge(lack of) of VB versus something with ComponentWorks controls.
0 Kudos
Message 3 of 3
(2,939 Views)