Do your VIs start running at all? How have you confirmed that no communications have occurred? Do you start with some sort of Initialize VI for your data generator? Does it get called? Or are you crashing while just trying to load your VIs? Do you see a front panel? Does the 3rd party DLL get called?
You can use the Task Manager in Windows to monitor your memory usage, but I would expect it to use about the same memory as in the development environment.
My application.exe ran, I can see the front panel. My application has an initialization and then start the DG2040, and when the DG2040 starts, a green button on the instrument should lit up. The green light didn't lit up when I ran my application. I saw the front panel, it ran for like 2 or 3 seconds and then crash. I didn't even get to the DLL part at all. But when I copied this part of the code onto another VI and made an execution, the DG2040 lit up, then the 3rd party DLL get called and everything is great.
No DLL In the exe folder. In the system folder I have visa32.DLL, and then I have some 3rd party DLL that the program uses, but I have already registered them.
did you check if you have different versions visa32.dll on the same system? It's possible the development system loads one version and the runtime loads another.
Thanks for trying to help. I have checked, and it's the same version. Do you have any other suggestion? Also I have put some indicator lights in there to see where it breaks, and it looks like it breaks where it tries to communicate with the DG2040 Data Generator. But then I open the DG2040.exe, and it communicates fine.