Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI DAQ(NI USB-9215A)

It consists of a sensor<-> instrument<->ni module<->pc.
and i used microsoft visual studio C#
my equipment is The sensor measures the wafer as it moves through the motor.
but there is a some problems
Measurement will begin as soon as the motor moves.
Since the motor has acceleration, the speed reaches constant speed from zero.
Here is a Quesiton.
The sensor continues to transmit data to the ni module through the instrument.
Are these data stored in the buffer of the ni module?
I'd like to know how the data is stored.
And here is another question.
I uploaded the Screenshot file. It is real data from sensor-instrument-ni module-pc
but I want to know the time of each data.
i setting the Rate 300[Hz], Sample[100] (NI9215-A(Bunddle NI USB 9162)

0 Kudos
Message 1 of 4
(1,220 Views)

Assuming you are using shipping examples that use sample clock timing, see Accuracy of the Waveform Timestamp Returned by NI-DAQmx on the explanation of the timestamp for each data.

See Understanding and Avoiding NI-DAQmx Overwrite and Overflow Errors on how the data is stored in the onboard and PC buffers.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 4
(1,176 Views)

Can I ask you Something more?

Currently, the number of measurement data in my device is always 100 units. For example, the total number of data is 4,600, 4700, 4800, and so on.

I think it should come out to 1 digit if we get the data from the start to the end of the measurement. ex)4732, 4781, 4869 and so on.
However, it seems like the data is extracted by 100 units at the moment. Can I solve this problem?

For the time being NI Setting => Rate : 300, Sample : 100

20231213_083727.png

0 Kudos
Message 3 of 4
(1,164 Views)

Without looking at the source code, I guess the parameter DAQ Samples refers to the number of samples per channel in DAQmx Read. This API will return that number of sample points for each call. See Specifying Number of Samples When Continuously Acquiring with NI-DAQmx for LabVIEW. Although the KB is for LabVIEW, it applies to all APIs in different programming languages.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 4 of 4
(1,154 Views)