I want to create a VI similar to one of LabVIEW's examples: Graph Temperature VI.
Instead of temperature, I want to plot data (angle of rotation) that I have acquired from my DAQ device vs. time. However, currently...it is not plotting as I want it to. It always appears as a straight horizontal line. Perhaps I am setting the time delay/number of measurements too high or low, I'm not sure. The time delay is 0.0001s and 10,000 measurements. Can someone take a look at my VI and see what I'm doing wrong? Don't worry about the bottom part, just the top part of the VI.
Thanks in advance.
The for loop seems sensless. why don't you just wire the DAQ data (after the multiply by 360) directly to a waveform graph?
p.s. attaching an image with a DAQ Assistant and dynamic data is also pretty worthless. they both do a very effective job of hiding what is actually being done (i.e. sample rate, number of samples, number of channels, everything else).
Ok, I've wired it directly to a waveform graph.
I don't know what to set my samples to read or rate. I know my channels are correct because I can send and recieve information from my DAQ device. Currently my samples to read is set at 10 and rate is
100 Hz. But this causes the motor that my DAQ device is attached to go crazy and won't stop turning.
Thanks in advance.
I think I figured out a good sampling rate/ number of samples.
I have another question though. I am able to display the angle of rotation of the motor numerically in a table but it only shows the angle of rotation...not the time at which it occured. Is there a way to set the table up so it shows the time the sample was taken as well?
Thanks for the help.
Oops...sorry, I did not update my picture after I made the changes.
Now I want a column in my table showing the time as the data is acquired. So if at 1 second the position is 60 degrees it'll display one second in one column and 60 degrees in the other one.
Sorry if I'm not very clear, I'm kind of new to LabVIEW.
Any help would be appreciated.
Hmm...I tried that but it gives me the actual time the VI is run. For example, 14:30 06/18/2009.
I don't want that...I just want the time as the data is being acquired. For example, data point one was acquired at 1 second, second data point was acquired at 1.2 second,etc.
Any help would be greatly appreciated.
Not sure if you can set the precision of the time stamps. It is displaying the time that the data is acquired.
You might just have to use a real table instead of the Express VI. All of the mecessary time information is embedded in the dynamic data type you are using - dt and t0.
How I would be able to obtain the time using a real table? Can you show me? (Sorry, I'm quite new to LabVIEW)