07-25-2019 09:37 AM
I have two data sets being continuously streamed through an mqtt server, RX topic and RX message. I need my final output to be a 1x22 array the RX message and the corresponding RX topic (22 channels)
here is what i have no far. It works for checking if the topic name is the corresponding channel, then outputs the corresponding mesasage.
My question is there definitely has to be a better way to do this than pasting the same loop 22 times and then building the final array
Thanks
Solved! Go to Solution.
07-25-2019 10:04 AM
07-25-2019 10:08 AM
I'm guessing you are looking for something like this SubVI. Note that the input array has be initialized (i.e. have size 22), as well as the array with channel names.
07-25-2019 10:33 AM
yes perfect thanks