I am guessing that you are using a USB device. What I would check
is that the Device is not named Dev2 or something different on the new
computer. You can check the name in MAX (Meaurement and
Automation Explorer) by click on Devices and Interaces, under which
should be a line that says NI-DAQmx devices (if you have the device
conencted to your computer). Under that, it will list any devices
that you have connected and/or devices that WERE connected at one
time. If you have connected one device, unplugged it, and now
connected a new device, you will have an entry that has Dev1 with and X
to it and Dev2 that is green (if it is connected).
If your program is looking for Dev1, and it named the new device Dev2,
then you would get that error. If this is the case, then I would
delte the Dev1, and rename the Dev2 to Dev1.
Let me know if this solves your problem.
Kenny
Kenny