Module: Adept::LowLevel::Library
- Includes:
- FFI::Library
- Included in:
- DeviceManager, EnhancedParallel, JTAG
- Defined in:
- lib/adept/low_level/library.rb
Overview
“Base” module, which provides functionality for interfacing with Digilent Adept low-level libraries.
Instance Method Summary collapse
-
#runtime_version ⇒ Object
Returns the version of the wrapped runtime, as a string.
Instance Method Details
#runtime_version ⇒ Object
Returns the version of the wrapped runtime, as a string.
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/adept/low_level/library.rb', line 79 def runtime_version #create a new buffer which will hold the runtime's version version_buffer = FFI::MemoryPointer.new(VersionMaxLength) #get the system's version GetVersion(version_buffer) #and return the retrieved version version_buffer.read_string end |