11-18-2022 12:57 AM
Dear all,
I am quite new to LabVIEW. I was asked to modify the program created by a resigned staff.
I want to stop this [5] <Weakened> event under specific conditions.But I don't know what the trigger for this event is.Please see the attached image for more information.
Please give me some hints to find the trigger of this event.
I am sorry that I cannot post the whole program due to company policy.
I really appreciate any help you can provide.
Plu
11-18-2022 01:05 AM
11-18-2022 01:08 AM
Hi,
<Weakened> is a boolean dynamic event. You can search for the node 'Generate User Event'.
Or follow the wire. Left of the while loop there is a boolean constant labeld 'Weakened', the next node is 'Create User Event'. Follow the thick green wire comming from 'Create User Event', because this reference is used to generate the user event.
Hope this helps.
11-18-2022 01:14 AM
Hello GerdW,
Thank you for your quick reply.
I have another stupid question - What is the event reference wire? Is it the thick green line?
Sorry for the truncated image. I know this is not much better but I hope it can give you a little more information.
Big thanks
Plu
11-18-2022 01:59 AM
Hey UliB,
Thank you for your answer. It gives me a lot of ideas. I will try to solve this problem as you suggested.
Big thanks,
Plu
11-18-2022 04:06 AM - edited 11-18-2022 04:10 AM
It's probably somewhere to the right (see the arrow):
This is still only a picture. It would have been possible for someone to find it for you if you had attached the .vi code file itself.
11-18-2022 08:55 AM
I hope you realize this already, but that is very badly written LabVIEW code. I don't say that to put the developer down, I say that so hopefully you realize that LabVIEW code can be elegant, well constructed, scalable, and easy to understand. This is just an example of the opposite of all of that. I'm sorry you are tasked to make changes to it. If someone handed me that I would likely just re-write the whole thing, but I understand you probably aren't in the situation where you can.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-20-2022 06:27 PM
Thank you so much for your reply.
please see the attached image. Is this boolean a trigger for the event structure?
Many thanks for considering my request.
11-20-2022 06:32 PM
Dear
Thank you so much for your sincere advice. I agree with your idea that I should re-write it to make it well-constructed, scalable, and easy to understand. However, I am not so sure how should I start. Should I put each part of this program into subVI?
I am looking forward to hearing more advice from you. I really appreciate any help you can provide.
11-20-2022 06:47 PM
If you really want expert advice from some LabVIEW Experts, send us a LabVIEW file (i.e. a file with the extension .VI, the LabVIEW code) rather than a static, 2-D "picture" of part of the code, so small we can hardly see it, can't edit it, can't test it, can't understand it.
Attach your LabVIEW Code, please.
Bob Schor