Giter Club home page Giter Club logo

msgpack_labview's People

Contributors

chschrader avatar mradziwo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

msgpack_labview's Issues

Decode bin 8 fail

the plus 2 is wrong. The number of bytes followed by bin8 byte is the number of len without +2

grafik

Array encoding

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:

  1. 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.

  2. 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

Decode error binary array

You forgot in some cases to wire the delete array index input. Per default this delets the last n elements! But you need to delete beginning at index 0.

delete from array last index than first

decoding of positive fixint mixed with int

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

encodeArray.vi repeats the first element

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

Restore dictionary

I was able to modify your decodeMap VI to restore dictionarys correctly.

Maybe you will update this to your code. With the JSONtext.lvlib:To JSON Text.vim (from VI package manager) this will result in a correct json syntax for dict dict :-)

decodeMap
Restore dict
y

Labview 2015 Version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.