Menu

Extending msg API in LabVIEW

Shunta Roy
2022-04-07
2022-06-10
  • Shunta Roy

    Shunta Roy - 2022-04-07

    I would like to access the msg API over LabVIEW (reference: Working with Messages section in Chapter2: Sockets and Patterns) and have found that the wrapper code 'zmq_labview.c' does not comprise of the relevant functions present in the 'libzmq64.dll'. Is there a way to extend the code or can be incorporated in the upcoming releases?

     
  • Martijn Jasperse

    Hi,
    ZMQ functions have to be exposed via the wrapper DLL to ensure that they are invoked via the same library instance, and avoid segfaults. I prefer using wrapper functions to ensure pointer validation and error handling are done correctly. It's easy enough to add wrapper functions to zmq_labview.c if you let me know which functions you think should be exposed.

    Cheers,
    Martijn

     
  • Shunta Roy

    Shunta Roy - 2022-06-10

    Hi Martin,

    Thanks for your reply. I would like to access the information on the total number of messages without removing them from the socket itself, something similar to 'Preview Queue Element and Get Queue Status' from the Queue palette in LabVIEW. I guess the functions in the zmq_msg family would be the ones which I would like access to via the LabVIEW library. If there is another way to achieve it, can you also share more regarding this!

    Thanks,
    Shunta

     

Log in to post a comment.