Peter, Jon and I are building a Programmable Electronic Load. In this series of blogs I'm building a LabVIEW library of reusable components
In this third article: Close all instrument resources |
LabVIEW has a set of blocks to build flows with serial communication devices. Those blocks work well with our instrument.
However, inspired by what many instruments do, I'm creating more abstract blocks.
Close Block
This blog is easy. It closes all resources assigned to the instrument and makes it available for new projects. It also closes the error flow*.
For the Close block, the input parameters are
- VISA resource name eload
- delay before read (ms)
- error in (no error)
The output parameters are
- none
After running this block, the instrument is free to be used by other flows. All resources and claims are released.
Close
The block is simple to use. Append it as the very last step in the flow. The resources are released and any error is logged..