Table of Contents >Quanser Rapid Control Prototyping Toolkit >VI and Function Reference >VIs - By Category >VI Categories >Hardware VIs and Functions >General VIs >Task >HIL Task Create Reader >
Parent Polymorphic VI: | HIL Task Create Reader |
Requirements: | Quanser Rapid Control Prototyping Toolkit, LabVIEW 2020 or newer |
Create a task for reading from an digital input channel.
board in is a reference to a HIL Board instance that represents the open HIL board. This input must be wired to a valid HIL Board signal, as generated by a HIL Initialize VI. |
sample in buffer indicates the number of samples in the task buffer. The created task cannot read more samples than this in a single call. If the task buffer overflows because HIL Task Read VI has not been called in time to remove the data from the task buffer then the next call to HIL Task Read VI will return an HIL_BUFFER_OVERFLOW error. |
digital channel is a channel number indicating the digital input channel to be read. The quantity read will appear at the digital state output of the HIL Task Read VI. |
error in describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the error in cluster in error out.
|
task out is a HIL Task instance that can be passed to other VIs that require a HIL Task instance. |
|||||||
error out contains error information. If the error in cluster indicated an error, the error out cluster contains the same information. Otherwise, error out describes the error status of this VI.
|
This VI creates a task for reading from one digital input. When reading from mixed signal types, it is more efficient to use the
All input/output pairs of this function have direct feedthrough behaviour.
There are currently no examples
HIL Task Read | Reads from analog, digital, encoder and/or other channels of a HIL Task. |
Target |
Supported |
Comments |
---|---|---|
Yes |
Fully supported. |
Copyright © Quanser Inc. This page was generated 2021-09-24. Submit feedback to Quanser about this page.
Link to this page.