01-22-2019 12:13 AM
I have a queued message handler with an event handler (producer) and a message handler (consumer). I want a certain series of events in the event loop to occur when the message handler completes its queue. I created a new queue with the completed output message, but when I access the dequeued message in my event loop using property nodes to access their values, the main event loop waits until this message arrives. I am new to labview and am sure I have done something incorrect. Any help would be appreciated. The message handling loop will eventually reside in a real time SB Rio and I am trying to simulate the interaction between the host and the real time machines.
01-22-2019 12:23 AM
couldn't open your code in LV17, Could you save it in earlier version and upload it.
01-22-2019 07:10 AM
@rohith2 wrote:
I want a certain series of events in the event loop to occur when the message handler completes its queue. I created a new queue with the completed output message, but when I access the dequeued message in my event loop using property nodes to access their values, the main event loop waits until this message arrives.
What I do to send messages back to the GUI (event) loop is use User Events. These work with the Event Structure.
@rohith2 wrote:
The message handling loop will eventually reside in a real time SB Rio and I am trying to simulate the interaction between the host and the real time machines.
Well, you are going to want a loop on the PC side that does nothing but try to talk with the sbRIO and then use the User Event that I mentioned before to get the updated data to the event loop. You will likely want to do something similar on the sbRIO side, but use a queue to get the data to the message handler.