02-13-2013 05:47 PM
Hello everyone, I'm a graduate student and I'm new to LabView.
I'm making an app that is ploting a rectified sin with the plato using a signal simulate and also acquires the data and plots it at the same time on the same plot area.
My plot has to start from 0 time so that's why I don't use DAQ assistant.
If I use a sample rate of 100 and 8000 the plot is continious and for any other it's discrit. It looks like it collects the data and only then plots it.
My question is if it's possible to use any other sample rate for the plot that it will be a real time.
Thanks for any help!
02-13-2013 07:44 PM
02-13-2013 08:01 PM
Thanks for reply Dennis,
I'm sorry for my not clear desription, maybe I can explain it differently:
Sample rate gives a number of measurments per second (as I understand). In my app I'm ussing a continious sampling with the sample rate of 100 measurments per second. With this sample rate each point of the graph is plotted as soon as its data was acquired. The same for the sample rate of 8000 measurments per sec. But when I'm trying to change sample rate to 200 or anything else the data is plotted with the delay. What sample rates I can use in order to plot the data as soon as it was acquired?
02-13-2013 09:19 PM
02-15-2013 05:13 PM - edited 02-15-2013 05:14 PM
Thanks Dennis.
I specified the number of samples (20) in a DAQmx read and a sample rate (200) in DAQmx timing. But the problem remains. My graph chart starts from 0 relative time but the acquired data plot doesn't start from 0 it starts from 3 seconds instead.While the rectifed sine graph starts from 0.
02-15-2013 06:11 PM
Attach your VI. I don't understand what you mean.
02-22-2013 02:09 PM
Thanks for your help Dennis, I've attached the vi
02-22-2013 02:52 PM
I think I misunderstood what you meant by real time. You want the chart to show actual elapsed time in seconds? When I run your VI, that is what I see. There is a single chart that starts at 00:00 and seems to be keeping correct time.
02-22-2013 03:49 PM
Yes, I want the chart to show actual time. It's works fine with sample rate of 100 and 10 samples but if I change rate to 200 and 20 samples for example the plot is delayed (blue line coming from daq). It plots the graph by part not point by point. When I go with 10000 sample rate and 1000 sample it's fine again as with 100 and 10.