11-28-2007 04:22 PM
11-29-2007 07:33 AM
04-22-2012 04:17 AM
I am also using same DAQ card and my card is working properly . but when i acquire the signal then some samples are lost suppose i acquirning the signal for 2 second with the sampling rate of 50KHz then it should have to give 100000 samples but it will give 80000 samples . so i am loosing the samples why this problem came sir?
04-23-2012 07:44 AM
It is not clear if you are using the now legacy (frozen) UL for LabVIEW, or the newer ULx for NI LabVIEW driver, but neither should lose data. The PCI-DAS1200 is a mature PCI board, which does not have driver support for Win-64. Though I'm sure you are not on a 64-bit O/S, since the card is recognized by InstaCal. If you are using the legacy driver, and you are performing background+continuous, then likely the data is being overwritten in the Windows buffer before you copy it out. Try instead the ULx driver, which is a higher level driver that will move the data for you. If you are truly losing data, the issue is likely PCI bus related. Either the board is bad, or there is an IRQ conflict with another device on the bus, or perhaps a threading issue with multiple CPUs. Try moving the board to a different slot to get a different IRQ level, or turning off all but one CPU/core in the BIOS.
04-23-2012 09:14 AM
Sir ,
I am using Window XP and Labview 7.1 .
For this there are universal library and using the Background operation i got the signal correctly but when i record the samples then there are loose of samples. my DAQ card working properly i think Problem is with my program i am also sending you my program. please see and made correction if you feel .
Thanks For relpy .
04-23-2012 10:06 AM
04-23-2012 11:59 AM
I have looked at your attached VI. It uses our legacy driver's foreground mode, not the background mode as you said. But perhaps that is good news, since Foreground is what I call "foolproof", since none of the data is available for graphing/disklogging until all data is collected.
Your VI does not specify default values for # of samples (count) or sample rate (Hz). But, I think I know what your problem is. You have a timeout in the loop which is probably stopping the loop too early, before all data is written to the file. The time it will take to collec the data (for a single channel) is (count/rate) plus some overhead. We don't specifiy the overhead, which will be PC dependent.
04-25-2012 12:37 AM
Sir what is the solution for this?
04-25-2012 07:37 AM
In my last posting, I gave you advice to get rid of the loop timeout. Have you tried that? In fact, get rid of the entire loop, andjust collect one arrany of data. If no data is lost, then the problem is solved. If you cannot find the solution, you should upgrade to LabVIEW 8.5 or later and use the newer ULx driver.
04-25-2012 09:05 AM
ok Sir,
But if i remove the while loop and loop time out then when i run the program it will run only one time. So how can i know that for how much time my program run means for 1 sec or 2 sec .... so on . and how i know that the samples i got are right. main thing is time.