Great series !! Wonder if the DQMH would be a good way to go for a data-aqcuisition system.. (reading sensors, sending commands to actuators etc..) Will dive in more ! Thanks!
Great videos. I do have a question at 4:17. For the event registration in the EHL, why does position matter when you linked up the START MOD? why does it have to match the broadcast?
Are you referring to the order we wire the event references in the "Register for Events" function? If so, the order must match what we initially declared when the event registration wire was first created (before the EHL started). When we declared the event type at the start, we were telling the event structure what sort of events to expect, then when we launched the nested DQMH module, we updated the same definition with active event references. If however, your question was about why we launch the module, register for events, then sync the module: we do it in that order so we can guarantee no events are missed. In other words, we register for events before the first event is generated. I hope this helps
Thanks again for the tutorials! Ich have one question: I would like to call the Public API of each module "from a text file". i mean I would like to develop a module that is simply reading the text-file and iteratively calls every "row" in the file. f.ex. row 1: ModuleChatClient1.GetUserName() row 2: ModuleChatClient1.ChangeUserName(newName) row 3: ModuleChatServer.BanUser(username, durationInHours) How would one do this? dynamically call every VI? And typecast each input-value into the correct datatype?
Hi gokufjison, That defiantly doable, and there are two ways that come to mind straightaway: 1) In your launcher VI, load the module and read the file. Then in an autoindexing for-loop send the messages (case structure, one case for every value) 2) If you want it to be more dynamic (so you never have to update the launcher), you could use the Call By Reference VI (load the VI ref from the file path). However, you would need each message-send VI to have the same connector pane (perhaps use a variant as the data in). Let me know how you get on. Cheers, Tom
Hello Tom, great videos! I have a question, can you give me an idea of how can I read the status of a variable located in 3 clones and send them at the *same time* to another module? is that possible? Thanks in advance
I would recommend having your clones broadcast an update whenever the status changes, that way you always know what the clones are doing. Alternatively, you could use a Send and Wait for Reply message. But always use reply messages with caution, there are usually better solutions
Quick question: could you please save project for this episode in the earlier format of LabVIEW? I have only 2018f2 and can't open an example. If it is not possible by some reason, I can re-create everything from the video, but looking into the code is more interesting. :)