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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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
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