10-13-2011 08:48 AM
Hi all.
Anyone who can tell me how to make a start time into a waveform graph. I am familiar with the waveforms porperties where you can make it absolute time or relative time. But that's not my problem.
When I read in a file, I would like to write the time e.g. 12:34:56 at the x-axis instead of the value 00:00:00 before I run the program. In other words I would like to change t0. I am not quite sure t0 is the same as the offset. Maybe someone can tell me. I'm not quite familiar with LabVIEW generally.
So far I think I have worked really hard to find the answer myself, but now I just have to ask someone to help me.
Thanks.
- Clausny
10-13-2011 08:56 AM
t0 is the same as the offset.
Why does it have to be "before I run the program"?" You can also set it with a property node, or you can bundle [x0, dx, Y] and feed it to the graph.
10-14-2011 03:13 AM
I think that I have tried almost any posible solution but I just can't figure it out. I have tried the property node and build waveform but it won't work.
Maybe you can tell me what to do be seeing my program. I have attached it.
Thanks!
10-14-2011 08:23 AM
Getting intial times to show up on a waveform graph is a three step process:
10-14-2011 09:08 AM
Hi DFGray.
Thanks for your post.
If you look at the attached file, how do I make the changes that you describes. Maybe you could make the changes in the vi and post it to me?
I just think that I have be done all the things that you suggests but still I can't make it work.
- Clausny
10-14-2011 09:27 AM
There are two things which could be going wrong:
10-20-2011 06:17 AM
I have now tried to autoscale the X-axes but it still won't work.
Do you have an example you could send me?
Thanks!
10-20-2011 09:15 AM
Here you go.
10-21-2011 02:56 AM
Thanks!
I can see that it is very simple and I think that what you have done is what I have done, exept that I don't want the current time but instead a time that I decide just before running the program. So, it have to be the way I read in the data. I am reading in a EDF file with a DataPlugin which by the way works fine.
But when I read the file the graph automatically changes Display Format in properties from absolute time to automatic formatting. How can that be and do you have a solution for this?
- Clausny
10-21-2011 09:07 AM
I cannot duplicate your problem here. If you have changed your code, please post your current efforts. It would also help if you could post a section of your current code which mimics the data you actually have (use block diagram constants). Alternately, use probes to find out exactly what is being passed to the waveform graph and let us know. We should be able to figure out what is wrong.