ryanpoulos / labview-memory Goto Github PK
View Code? Open in Web Editor NEWA library that provides a set of VIs and classes for performing explicit memory operations, such as pointer allocation and deallocation, in LabVIEW.
License: MIT License
A library that provides a set of VIs and classes for performing explicit memory operations, such as pointer allocation and deallocation, in LabVIEW.
License: MIT License
check with R&D to see what name should be.
Currently there is nothing that prevents me from double disposing a memory block. We should add a pointer check to the (safe) API before disposing memory.
Currently, the Pointer class' Read and Write methods for 1D arrays only checks the Pointer to make sure it has a large enough size for the transfer. This is good, but LabVIEW can still crash if the provided buffer array doesn't have enough (count) elements. So it should check both conditions (Pointer size and array size).
Currently there is no synchronization that prevents me from reading/writing/disposing a buffer at the same time from multiple threads. This could lead to race conditions where we crash or get corrupt data based on timing of the system. We should add some synchronization primitives to have atomic read/write/dispose methods.
We need test coverage on all (public) methods. Use a testing framework, like VI tester, to write unit tests. I have forked your code and added a few basic tests for an example.
https://github.com/csjall/LabVIEW-Memory-Manager
All No Check 1D Write functions shouldn't be offset out calculated from value of offset in + count/size?
Then when you want daisy-chain more writes to one pointer then you don't have to calculate offsets for consecutive writes by yourself.
Memory Manager\Classes\Pointer\Public\Write (No Check)\Write (No Check 1D xxx).vi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.