Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I customize/configure my PCI-6024E DAQ Board to: take scans per second, stop, and change x-axis units (using Visual Basic 6)?

I am using Visual Basic 6 to write a program that controls my PCI-6024E. How do you trigger it to scan or acquire data at a certain interval. For example, I want to specify seconds per scan, not scans per second. Moreover, how can I get it to stop once it has made specified number of scans? Also, is there anyway of changing the X-axis from time to another unit or set of numbers? What is the significance of the AcquiredData event?
0 Kudos
Message 1 of 2
(3,392 Views)
Alok;

There is a VB example you might want to take a look at, which performs Analog Input for a specific number of Scans and stops after that. You can also use that example which will make data available at one array of points and use the indexes of that array to change the X-axis of your plot.
I don't know exactly what you mean by AcquireData event, but all the event messages are used to notify DAQ program about a particular event. So, probably that is the case for that function.
The name of the example is DAQsingleBufSync, and you can find it at C:\Program Files\National Instruments\Ni-daq\examples\VBasic\Ai.
Hope this helps.
Filipe Altoe
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,392 Views)