11-07-2024 10:44 PM
then any suggestions , i want to check an alarm in middle of the resister write and read and come back to the stage of
write and read ,any time base suggestions .i dont want to exit the event or process i want that the process stop for some
time and run form same step of stop after the alarm check ,i am using Modbus to communicate with board
11-08-2024 01:15 AM
Note that events are not 'called', they are triggered.
The events handled by an event structure are processed serially; one cannot be processed in the middle of another.
However you can have the same sub VI called by multiple events.
I seems like you want to check the status of something while processing an event. Is that correct?
Checking the status of something should not require that an event be triggered.
11-08-2024 02:59 AM
You can use User-Events to trigger an event (or several ones) while being in another event. As Paul stated, they are executed sequentially.
If you want to execute the triggered event asynchonously, you can trigger an event in another, independent loop.
11-08-2024 09:23 AM
akhairnar609@gmail.com wrote:
then any suggestions , i want to check an alarm in middle of the resister write and read and come back to the stage of
write and read ,any time base suggestions .i dont want to exit the event or process i want that the process stop for some
time and run form same step of stop after the alarm check ,i am using Modbus to communicate with board
Sound to me that "check an alarm" should be a VI.
If it was, you could call it when there's a "check the alarm" event, and in the middle of "the resister write and read".
It also sound like "the resister write and read" should not be handled in an event. If you do this, you typically lock event handling for that event. The consequence is the event structure is locked and (user) events are not handled until the current event is done. That can be OK or even desirable, but for long processes it usually is not OK.
If there's an event that should start the "the resister write and read", you usually that that process in a parallel loop. There are many ways to synchronize the two loops...
Without seeing any code, it seems you probably want to dive into some popular architectures.
11-08-2024 09:24 AM
11-08-2024 11:29 AM - edited 11-08-2024 11:32 AM
akhairnar609@gmail.com wrote:
then any suggestions , i want to check an alarm in middle of the resister write and read and come back to the stage of
write and read ,any time base suggestions .i dont want to exit the event or process i want that the process stop for some
time and run form same step of stop after the alarm check ,i am using Modbus to communicate with board
It is impossible to answer your question until you give more detail. For example the term "event" can mean an event structure, or generically something happening somewhere. There are way too many different ways to understand your vague question.
Please exactly define all terms used: "event", "process", "stage", "resister" (register? Resistor?), "any time", "time base", "some time", "same step" (same as what?), "alarm check", etc.
It would be easiest to attach a simplified VI that shows the overall code architecture. LabVIEW allow for highly parallel code where many independent things can happen concurrently.