Status
⑦ CNT Sampling [cnt_status_samp.vi]

 

Select to check the status of counter sampling

 

 


IN/OUT Terminal layout

 


Output terminal

CntSamplingCount

Acquire the current sampling state in a three-element cluster

■ Element 1: status 

  Returns the notification status as to whether or not the number of data specified by "CntSamplingTimes" of sampling start VI has accumulated
  Once this Boolean value is True and this VI is executed once, it will be False until the specified number of data is accumulated again

  If "CntSamplingTimes" is not wired (0), notification will not be made, so it will always be False

■ Element 2: times

  Returns the total number of notifications

■ Element 3: SamplingCount

  Returns the number of unacquired data accumulated in the sampling data buffer

 

CntSamplingStop

Return sampling stop notification status
Once this Boolean value is True and this VI is executed once, it becomes False until it is stopped again

  

CntSamplingStatus

Get the current counter sampling status
It has the following meaning in hexadecimal notation bit unit

Value

Status

Meaning

01H

Start sampling

Indicates that counter sampling has started

When sampling stops, this status will be 0

02H

Sampling stopped

Indicates that sampling has ended

It becomes 0 at the start of the next sampling

04H

Trigger signal input

Indicates that the start signal was entered by external start

It becomes 0 at the start of the next sampling

08H

Overrun

Indicates that the start signal has entered more than once by the external start

Please ignore unless there is a problem in the specification of the external connection signal

It becomes 0 at the start of the next sampling

Example) When "CntSamplingStatus" is "5H", "sampling start" and "trigger signal input" are ON

  

CntSamplingError

Returns error status of counter sampling
It has the following meaning in hexadecimal notation bit unit

Value

Error status

Meaning

02H

Board memory Overflow

Indicates that the memory on the board has become full. The main cause is that the system load is high and the bus master transfer can not be made in time. Measures such as lowering the transfer rate and lowering the load of the system are necessary.

04H

Internal buffer Overflow

Indicates that the internal buffer overflowed. It is necessary to lower transfer rate.

08H

Buffer Overflow

Indicates that the buffer secured by DAQ-LV-WIN overflowed.

It is necessary to acquire data more frequently or to increase the CntSamplingBuffer of the sampling start VI.

10H

Trigger error

Indicates that the start signal and the stop signal were simultaneously input by an external start. If this status is set, no transfer will be made.

Please confirm how to enter external start signal and external stop signal.

20H

Clock error

Indicates that the next clock has entered while inputting with an external clock.

If this status is set, it can not be sampled with the specified external sampling clock. Consider lowering the cycle of the external clock.

Please be aware that sampling will be done once sampling starts.

This error also occurs when an external clock is input at this sampling.

40H

Sync Slave error

Indicates that the forced stop was caused by the stop cause from the slave.

Check the error on the slave side.

80H

Sync Master error

Indicates that the forced stop was caused by the stop factor from the master.

Check the error on the master side.