We are sampling three phases of AC voltage (approx +/- 181 Volts each phase) on a generator running at 60Hz. Each of the phases goes through the Average DC/RMS VI in order to calculate the RMS values for the AC signal. This value is approximately 128 Vrms when we read each phase on a voltmeter.
The rprogram we are writing should read the voltage values being sampled by the DAQ, graph them on a waveform graph, and write the data to an excel file. We want our sampling rate to be 150 samples per second and we want each of those values written to the excel file. So basically, we are looking to sample the AC signal off of the generator set, convert those values to RMS, make a graph of RMS voltage versus time, and write the RMS voltage data to file.
When I run this portion of the application, we are able to sample a RMS voltage signal which is displayed on the graph, but the number of data points being written to file is not equal to 150 points/second. It is usually something much lower than that. If we run the test for 10 seconds, we would expect to find 1500 rows of data points being written to the file. The excel file has four columns. Column 1 is the voltage for phase 1, column 2 is the voltage for phase 2, column 3 is the voltage for phase 3, and column 4 should be the time (in seconds from the beginning of the sampling at t = 0 seconds) that correspond to each of the data points. In a side note, Column 4 is derived from the Get Waveform Time Array.vi and at low sampling rates generates a number that is written to the excel file that has around 15 digits. At higher sampling rates, the time data that is written to column 4 seems to be the correct (3.01 seconds, 3.02 seconds, etc). We have absolutely no explanation for this phenomena.
If you have the time, please let me know if you can find any reason why the number of data points being written to file is not equal to the sampling rate. Ideally, we would like the scan rate (set at 150) to be equal to the number of data points being written to the file per second so that the user knows that if they increase the sampling rate to 200, then they will have 200 points per second being written to the file. This problem is severely hindering our progression for this project and has been a burden for some time now.
We are using an SCXI 1000 chassis, 1120 module, and 1327 terminal block. Our DAQ card is a 6040E.