Well, I can see you're on the right track in general but to be honest, I don't ever use DAQ Assistants, Dynamic Data or Express VIs so I don't really know how to work with them the way you're doing. Perhaps an NI Guy or someone who knows the Express stuff will check it out. If not, I can help you after converting it to real LabVIEW code. In the mean time, if you want to stick with the Express VIs, read up on them and see if they have the capabilities that you need.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{