Hello,
Check the device number and ensure that it is the same as set by Measurement And Automation Explorer. Also check the AO channels and ensure that they are not out of range. If the AO channels are 0 and 1 and if you set the AO channel to 2, you will get such error.
I just ran the same VI and it worked fine.
Also, in MAX, check that the device is passing the tests.
Sincerely,
Sastry V.
Applications Engineer
National Instruments