Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Read event in DAQmx with VB6

I don´t need to aquire data constantly, I only need one event. Each time I want to trigger an event I call the "acquiredata" routine.

You may try using infinite samples aquisition, or finite samples events it in a loop.

To be honest, i don´t really know why am i stopping the task, I don´t remember....

 

Thank you

0 Kudos
Message 11 of 14
(3,875 Views)
Hello Olivier,

Have you tried the example located here:
C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Events\Every N Samples\Cont Acq-Int Clk-Every N Samples Event

This examples shows how to continuously acquire data using the Every N Samples event.
Eric
DE For Life!
0 Kudos
Message 12 of 14
(3,867 Views)
thirst this example works in C but i am not able to do it working in VB6...
In a second time it doesn't do what i excpect. It produces the event but it reads the value in the event and i would like the event to return the result, the value of the  "n samples"
 
if you have an idea?!!
 
Thanx
0 Kudos
Message 13 of 14
(3,865 Views)
Hello Olivier,

If you post your VB6 code, we can take a look at it and see why it isn't producing the behavior you are expecting!
Eric
DE For Life!
0 Kudos
Message 14 of 14
(3,850 Views)