06-05-2012 10:47 AM
This is a trivial problem. Right click on the History property and select 'Create>Constant'.
It is also not recomended to do your DAQmx configuration and closing each and every iteration of the while loop. Move them outside.
You can also skip all of that stuff with the property nodes to set offset and multiplier since the waveform data type you are getting has all of that information for correct plotting on the chart.
06-05-2012 11:09 AM
You also want to move your Simple Error handler outside of your while loop and or the error cluster with your stop button to break out in case of error.
06-05-2012 11:16 AM
Again, I dont have a clue as to what your talking about. I still cant get the correct time and date. Here is where I am now.
06-05-2012 11:46 AM
Pay attention. ELIMINATE the Xscale.Offset and XScale.Multiplier properties. Then right click on the chart and select properties. Make sure the default offset and multiplier are 0 and 1 on the Scales tab.
06-05-2012 12:01 PM
That worked, thank you. But now how do I adjust my sample time?
06-05-2012 12:14 PM
You enter values into the rate control and number of samples and run the VI. Obviously, you cannot change the rate while the VI is running. The time between iterations is simple arithmetic as is the time between samples.
p.s. The Wait Until Next ms Multiple does nothing and should be deleted. It also seems silly to take multiple samples and then pass a single one of them to your tank and numeric indicators.
06-05-2012 12:15 PM
That control you have that's labeled "Rate". That sets your sampling rate. The time between samples is the reciprocal of that number.