I keep getting the error -70006 when I use the following flex_wait_on_condition(1,NIMC_IO_PORT2,NIMC_WAIT,NIMC_CONDITION_IO_PORT_MATCH,0,8,NIMC_MATCH_ALL,150,0)

The wait on condition works well when I wait for NIMC_CONDITION_PROGRAM_COMPLETE but for the resouce NIMC_IO_PORT2, I can't seem to make it work and I really need to wait for an input on port 2.

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.

Similar Messages

Maybe you are looking for