DAQmx Switch Get Relay Count
Returns the number of times a relay has actuated on switches that support querying the relay count. You must wait for the switch to settle before this VI can determine an accurate relay count. Use this VI to track relay lifetime and usage. The instances of this polymorphic VI can query the count of a single relay or multiple relays.
Use the pull-down menu to select an instance of this VI.
Place on the block diagram. | Find on the Functions palette. |
Single
Returns the number of times a single relay has actuated.
relay is the relay to query. A DAQmx switch constant lists all relays on switch devices installed in the system. | |||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||
countis the number of times the relay has actuated. | |||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Multiple
Returns the number of times a set of relays have actuated.
relays is the set of relays to query. A DAQmx switch constant lists all relays available on devices installed in the system. Right-click the constant, and select Browse from the shortcut menu to select multiple relays. You also can supply a string that contains a comma-delimited list of relays. | |||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||
counts is number of times each relay has actuated. The order of this array corresponds to the order of relays. | |||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|