Notifications on multiple interface instances

Non-technical related questions should go here.
Post Reply
ptip83
Junior Member
Posts: 5
Joined: Fri Nov 15, 2019 6:02 pm

Notifications on multiple interface instances

Post by ptip83 »

I have been scouring the xmos guide's to see if this is possible, all I can find is: interfaces allow notifications to be used, and multiple instances of an interface can be created. However I'm not sure if it's possible to do these together. My results so far have been successful using only one instance of an interface that sends a notification and clears it within the same select statement, and it can keep doing this and run continuously. However, my goal is to switch back and forth between instance A and instance B where A sends notification, clears, then does something, then B is called, sends notifications, clears, then does something. When I try to put the 2 together, A sends,clears, does something, then B sends... but never clears. So is this possible to do?


Gothmag
XCore Addict
Posts: 129
Joined: Wed May 11, 2016 3:50 pm

Post by Gothmag »

I reported a bug on notifications years ago. It was an issue of the order they are defined/implemented, can't remember which. I think it was order in the select so you basically need to mess around moving it up and down to get it to work, possible that there is no usable order. I stick to one notification per tile now and poll when I need more.
Alinavox
Junior Member
Posts: 6
Joined: Sun Feb 04, 2018 11:58 pm

Post by Alinavox »

If I understand what you are asking, it is transparent to you. Youll issue your MQCONN which will get you connected to the server. Youll then issue your MQOPENs against multiple queues and theyll all go through the channel. Is this what you are asking?
Post Reply