03-10-2015 09:38 AM
I've been working on my Wavformgraph and I'm getting close to having it where I want it (although I still can't seem to be able to plot against time on the XAxis). I understand that HistoryCount is the number of samples that are in the history and that HistoryCapacity is the maximum allowable number of data points allowed in the history. I did a test last night where I was logging and appending data at the following settings (see screen shot). In my program, I was appending the data to the graph every 1ms. So my question, to verify with experts, is that according to the screenshot here, I am taking samples every 1ms which gets stored in the HistoryCount, and then according to my timer in my code, I am appending that to the Wavform plot every 1 ms? Is this correct? If I set the timer that appends the data in the program to 100 ms, does that affect the number of data points that get appended to the plot?
Also, I set up a temporary textbox where HistoryCount.value is getting written to on every append. It eventually maxed out at 100000, even with my HistoryCapacity set as high as I have it. Can someone help me to better understand what's going on here. If my HistoryCapacity is set this high (see screenshot), shouldn't HistoryCount at least reach that value? I want to record data points every 1ms (1 kHz). I don't really care so much as to how often the buffer of data gets appended to the plot on the graph. Thank you for any clarification.
03-11-2015 02:15 PM
Hi;
Have you seen this?
http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/4fc667f5/
According to the remarks History Capacity is not considered when plotting data.