Each and every one of the DAQmx functions will have to be replaced with Advantech functions. It's unlikely that there would be a one to one relationship. You will have to study the Advantech functions in it's library.
Your VI is also setup to perform only a single acquisition unless you use the Run Continuous button. Do NOT use this special debug mode for operation. Put a while loop around your code.