Menu

ZMQ recv_pyobj in LabVIEW?

Chris Bue
2019-10-10
2019-10-10
  • Chris Bue

    Chris Bue - 2019-10-10

    Hi,
    I've installed the LabVIEW bindings just to get data from my python application to the LABVIEW environment.
    But sadly I've programmed by python app with using the ZMQ send_pyobj functionality.
    So I'm wondering, how and if it is possible to get the python object back to LabVIEW?!
    Perhaps somebody can give me a hint on that?

    Regards,
    Chris

     
  • Martijn Jasperse

    This sounds very challenging! You'll have to write your own version of "unpickle" to interpret the data. Unfortunately "The data format used by pickle is Python-specific [...] however it means that non-Python programs may not be able to reconstruct pickled Python objects."

    I think it would be more realistic to rewrite your python app to use a more portable serialisation convention for data on the wire. I expect that attempting to unpickle the binary data will be a rabbit-hole of complexity, even if you're only sending basic data types.

    Cheers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.