11-16-2017 04:27 PM
Instructions: "The servant loop uses the function “wait on notification from multiple” to retrieve the two notifications on a “first come first serve” basis and display them on a graph."
If I have two master loops, one producing a noisy sine wave and the other producing a noisy square wave that are sent by two Send Notifications and I want them to be displayed on a graph, my question is do I use two Obtain notifier functions? and then how do I feed the two notifiers into the Wait on Notification from multiple, do I have to build an array? When I try this and then attempt to unbundle by name to be able to get a waveform graph, it won't let me connect (different types of data). I have never used this function before so any help appreciated.
11-16-2017 04:38 PM
The notifications come off as an array, not a cluster.
11-16-2017 05:05 PM
How can I connect that array to a waveform graph?
11-16-2017 05:26 PM - edited 11-16-2017 05:27 PM
With a wire of course! 😄
11-16-2017 05:29 PM
You will need a shift register to keep track of each signal and append based on which notification you get.
Just remember that with a Notifier, you only get the latest value. So you will likely get weird signals. What you probably actually want is a Queue, which is a lossless communication method. You can use a single Queue to have both of your master loops send data to the consumer. I recommend having the data type of the queue be a cluster with a string or enum for saying who was sending the data and then a variant or common data type for the data itself.
11-17-2017 01:42 PM
In addition to recommending a Queue, I can also say User Events might help you here. These can create a publisher subscriber method where you register for N different user events, and then have some data type in them that identifies where the event came from, and then handle them one by one as they come in.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord