LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

question about time and graph

Hi,

I am using Labview 6.0 to draw a graph, and I hope to use time as x-axis and voltage as y-axis. I hope to get a value of voltage every 100 us. Then draw every point on the graph. I use the "Get Date/Time in seconds" to get an initial time value, and in every step of "while loop" I get a new time value, and then the difference of the two times is used as the interval. From the attached file, you can see what I did. My question is that I just can find the time in seconds and can not find the value in "us". So, can you help me out? Could you please modify the program based on my attached file? Thanks a lot.
0 Kudos
Message 1 of 2
(2,463 Views)
--- The GET DATE TIME in SECONDS vi only has resolution down to 16 mSec (on Windows).

There is a millisecond timer available - you might consider using that. TICK COUNT in the TIME and DIALOG palette.

If you have a hardware DAQ board available, you can use the hardware timers on that.

Otherwise, there's not a good way to get sub-millisecond timing.

If you do get values very 100 uSec, you don't need to record every time - just record the starting time of day, and the voltage values every 100 uSec. Tell the graph what the starting time is, and tell it the delta Time is 100 uSec. Set the X-axis to display time, and you're done.

If your data is irregular, though, that will not be accurate.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 2
(2,463 Views)