mradziwo / msgpack_labview Goto Github PK
View Code? Open in Web Editor NEWIt's like JSON, but fast and small…and LabVIEW! – msgpack.org[LabVIEW]
Home Page: http://msgpack.org
License: MIT License
It's like JSON, but fast and small…and LabVIEW! – msgpack.org[LabVIEW]
Home Page: http://msgpack.org
License: MIT License
Hi mradziwo,
I just found the time to push some changes to my repo that I made last year. They are not good enough to open a pull request but there may be some points you might want to have an eye on it. PronovaPaul recently pushed some really nice changes (features, no openG-dependency). Among other things he worked on the same problem like me:
array encoding:
We both use the static type information and for fixed-size types the encoded data can be build by interleaving header and data. And at this point our solutions differ. Here I cast the array to a byte-array, reshape it according the elements size, add a header column and reshape it again (see enc_a_*.vi). In my short test this is about six times faster than Pauls solution with element-wise encoding, so it might be an interesting version to consider. But I'm not sure about all implications, esp. for multidimensional arrays. In this case additional array headers have to be added... But generally, array reshaping should be a quite fast operation because the the array's content is not accessed.
enum-encoding:
I added an option to to switch between encoding as integer or the enum string. This sometimes can be helpful.
And because of the increasing number of options it might be a good time to change to a single config cluster input instead of lots of boolean/enum inputs.
Well, just some thoughts....
regards,
Zoyo
Hi,
I just see that decodeObject.vi calls for values of 0..127 decodeInt.vi. This has a case for these values, which are positive fixint, but convert it to i8. I would expect that decodeObject.vi should call decodeUInt.vi which implements this case and converts it to the correct u8. Maybe I missed something but this looks odd.
kind regards,
Christian
Hi,
arrays are encoded wrong. Only the first element of the input-array gets encoded to msgpack and repeated for all elements in the output-array. In the first loop of encodeArray.vi the Index(1D)-input should eventually be connected to the i-terminal of the loop.
regards,
Zoyo
Hey Mike,
Is there a way that you could save this project as a Labview 2015 VIs? I can't currently open any of the items.
Thanks,
-Paul
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.