Ben is right. These top-level VIs are so high-level that they will commonly slow down an application which uses them often. Each time you use one, it must open up a new reference, access it, and then close it again. On the other hands, if you use the Advanced VIs, you only open a reference once and close it once. This is much more efficient.
The error you are getting is a different problem altogether. Here is the meaning of the error:
The specified device is not a National Instruments product, the driver does not support the device (for example, the driver was released before the device was supported), or the device has not been configured using the Measurement & Automation Explorer.
Does this error get generated while your code is running? You may be se
nding the wrong device number or something similar to cause this. Let us know what you find.
J.R. Allen