Your flex_wait_on_condition seems to be written correctly and it works on my machine just fine. Please try the example program modification I emailed you and if it doesn't lead to a resolution, please email our technical support engineers from www.ni.com/ask.