03-04-2017 07:42 AM
I wrote a program which should acquire analog sigal from NI 6008. The labview version is 8.0, the operating system is windows xp, the peak of analog signal is 10 volt. The program worked normally initially, but when I tried to test it afternoon, it did not work without any warning. After I changed the computer, it worked again, but it did not worked later. I felt very confused. I cannot believe it is computer problem.
03-04-2017 07:55 AM
03-04-2017 11:50 AM
So you have code for a decade-old version of LabVIEW, running on a computer with an Operating System that has been out of support for several years (our place won't allow PCs with Windows XP to connect to the network), you are using "legacy" hardware on code which seems to "sometimes" run and then fail, and you "don't believe it is computer problem".
I respect your opinion. While problems of this sort are usually "hardware" or "software", they could also be "colossal Bad Luck" or "Too many obsolete systems interacting to help the entire enterprise fail". If I had to guess, however, I would start with the (unknown-to-us) LabVIEW code that you are trying to run.
If you want our opinions on this code, attach the VI (or VIs). Do not waste our time sending pictures of Block Diagrams, please. Note if you have many VIs to share, the easiest way to do that is to put them in a folder, compress the Folder into a Zip file, and attach that single file.
Bob Schor
03-04-2017 10:56 PM
I fixed the problem, but I still do not know why.The problem is device name. I set USB 6008 as Dev1 in auto&meas, the code identified the device as Dev1 initially, but later as Dev2. Finally I changed the device name as Dev2 in auto&meas and resolved the problem, but did not know how to change the device name in the code.
03-05-2017 06:48 AM
@Mike_Wu wrote:
but did not know how to change the device name in the code.
If you post your code, we might be able to help.