Skip to content

LabView API Data

ziSubscribe

block diagram
Figure 1: block diagram

Subscribes to nodes so that whenever the value of the node changes the new value can be polled using ziPollDataEx.vi. By using wildcards or by using a Path that is not a leaf node but contains sub nodes, more than one node can be subscribed to with one function call.

Input

Name Type Description
error in block diagram error in Error In can accept error information wired from VIs previously called.
Path block diagram string LabOne node path.
Handle In block diagram LabOne handle in LabOne handle in.

Output

Name Type Description
error out block diagram error out Contains the Error information, if there are any.
Handle Out block diagram LabOne handle out LabOne handle out.

ziUnSubscribe

block diagram
Figure 2: block diagram

This vi is the complement to ziSubscribe.vi. By using wildcards or by using a Path that is not a leaf node but contains sub nodes, more than one node can be unsubscribed with one vi call.

Input

Name Type Description
error in block diagram error in Error In can accept error information wired from VIs previously called.
Path block diagram string LabOne node path. (default = "/")
Handle in block diagram LabOne handle in LabOne handle in.

Output

Name Type Description
error out block diagram error out Contains the Error information, if there are any.
Handle out block diagram LabOne handle out LabOne handle out.

ziGetValueAsPoll

block diagram
Figure 3: block diagram

Use this vi to receive the value of one or more nodes as events using ziPollDataEx, even when the node is not subscribed or no value change has occurred.

Input

Name Type Description
Handle in block diagram LabOne handle in LabOne handle in.
error in block diagram error in Error In can accept error information wired from VIs previously called.
Path block diagram string LabOne node path.

Output

Name Type Description
Handle out block diagram LabOne handle out LabOne handle out.
error out block diagram error out Contains the Error information, if there are any.

ziPollDataEx

block diagram
Figure 4: block diagram

Use this vi to receive all value changes that occur in nodes that have been subscribed to, or in children of nodes that have been subscribed to. This vi returns immediately if data is pending. Otherwise it waits for data for up to Timeout milliseconds before it returns with Timed Out true. When no data event was received within TimeOut milliseconds, ziValueType will be NONE and the Timed Out will be true.

Input

Name Type Description
error in block diagram error in Error In can accept error information wired from VIs previously called.
Timeout ms block diagram integer (32 bit) Timeout if no data updates are received. (default = 50)
Handle In block diagram LabOne handle in LabOne handle in.

Output

Name Type Description
error out block diagram error out Contains the Error information, if there are any.
ziValueType block diagram integer (enumerated) Value Type
Timed Out block diagram bool Flag if the command timed out.
Handle Out block diagram LabOne handle out LabOne handle out.
PathArray block diagram string array Array of the paths for the received value updates
Value Double block diagram double
Value Int block diagram integer (32 bit)
Timestamp block diagram unsigned integer (64 bit) Timestamp of the event.

ziPollDataExDemodTime

block diagram
Figure 5: block diagram

This vi polls Demod data from a previously subscriped demod path for a given recording time.

Input

Name Type Description
Handle In block diagram LabOne handle in LabOne handle in.
error in block diagram error in Error In can accept error information wired from VIs previously called.
recording time block diagram double Defines the recording time of the poll. (default = 1) [s)
SubscribepathArray block diagram string array Subscribed demod paths.

Output

Name Type Description
Handle Out block diagram LabOne handle out LabOne handle out.
error out block diagram error out Contains the Error information, if there are any.
Demod Sample Out block diagram string array Received demodulator sample.

ziGetEvent

block diagram
Figure 6: block diagram

This vi retrieves data from a previous ziPollDataEx.vi call. Use the Path and ziValueType returned by ziPollDataEx.vi to determine, which polymorphic version of ziGetEvent.vi is appropriate.

Input

Name Type Description
Handle In block diagram LabOne handle in LabOne handle in.
Sample In block diagram sample input
error in block diagram error in Error In can accept error information wired from VIs previously called.

Output

Name Type Description
Handle Out block diagram LabOne handle out LabOne handle out.
Sample Out block diagram sample input
error out block diagram error out Contains the Error information, if there are any.

ziSync

block diagram
Figure 7: block diagram

Syncs all the settings on the device and flushes all buffers.

Input

Name Type Description
Error In block diagram error in Error In can accept error information wired from VIs previously called.
Handle In block diagram LabOne handle in LabOne handle in.

Output

Name Type Description
Error Out block diagram error out Contains the Error information, if there are any.
Handle Out block diagram LabOne handle out LabOne handle out.

ziFlush

block diagram
Figure 8: block diagram

Flush all data that currently is either in the server fifos or API fifos.

Input

Name Type Description
Handle In block diagram LabOne handle in LabOne handle in.
error in block diagram error in Error In can accept error information wired from VIs previously called.

Output

Name Type Description
Handle Out block diagram LabOne handle out LabOne handle out.
error out block diagram error out Contains the Error information, if there are any.