LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I generate an event trigger message (without use User Interface) that can be monitored immediately?

Let say I use a sub-sub-function that already have some return values and I do not want to add another one. When I use calloc/malloc which returns NULL pointer (no or not enough memory available) ... I would like to generate an event trigger message to report error!
 
I would like the top level notify immediately to stop or to continue that sub-sub-function (pop-up message or throw an exception is not enough in this case)
 
What can I do in this case since calloc/malloc does not generate an error report (or some other commands)?
 
0 Kudos
Message 1 of 3
(3,034 Views)
plit string,

It doesn't really sound like you need an event for this. If your options were to "stop" or "continue" you could just have other functions for these different cases and call those functions whenever you needed to. Once inside these functions, you can have a global boolean "flag" that you could set to true or false if you needed to get out of the function (or you could just quit). I don't see any reason that you would need to explicitly put an event rather than doing this line by line as the code portion is suppose to be.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 2 of 3
(3,017 Views)
That what I am doing, but in thi case Top level always monitor this global flag all time (non-trigger event) ... but when if some thing bad happen, we can not know where it came from because of sub-sub-... functions.
 
Anyways, thanks for trying help Smiley Wink
0 Kudos
Message 3 of 3
(3,011 Views)