06-17-2009 06:19 PM
Solved! Go to Solution.
06-17-2009 11:00 PM - edited 06-17-2009 11:01 PM
Each time you write to the graph, you are sending new data and obviously there would be no scrolling since it would always display the same number of samples. That's just understanding the basics of how a graph works. If you want actual time on the x axis and you are using a waveform or dynamic data, the timestamps on the graph will change if you unchecked the Ignore Timestamps (right click on graph to see this option).
If you want to append new signals to old, then you should use the chart and set the history length to the number of samples you want to show at one time.
06-18-2009 06:06 PM
06-18-2009 06:40 PM
Please provide some more information. If you aren't using a chart, there is no history to set. If you are using a graph, it will only display the current acquisition.
Attach the VI you've written so somone can see what is going on.
06-20-2009 11:41 AM
Hi,
Thanks again for your reply. I wasing using a waveform graph instead of chart. I've noew used a chart and the timbase scrolls ALMOST as required. Would really like teach run to start at time 0.0. However, I've been through the various options, absolute time, relative , time, SI notation etc and it will only either display time as in attachment (absolute time) or relative time from some very large number i.e start at some number like 392356743 and then scroll from there. How do I get it to start at 0.0 on each run and scroll from there onwards.
I've attached vi in *.doc
06-20-2009 11:49 AM
06-20-2009 01:44 PM
Ok, 2 Vis attached. Please ignore all unattached elements ...they're intended for later use. THe output of my DAQ is attached to the Chart "Voltage: Wheel Pot 3" in the "elevator_vi"
I have an additional issue as well as the time base of this Chart. THe attached "gearing_vi" is the same as the elevator_vi but I now want to display a stacked multiple plot chart with 3 inputs using the bundle function but I cannot connect the output of the bundle to the chart. I get an error message telling me the two terminals have different data types.
06-20-2009 03:56 PM
I don't think you can ignore the timestamp that is part of dynamic data. I never use dynamic data and I hope I never am placed in a situation where I have to.
One possibly fix for the elevator VI is in the attachment. Since you have wired the data to some scalar indicators, it soes not seem like you care about 1000 samples so I used a Mean function to get a scalar with at least some meaninig. I thne converted to an actual scalar.
If you want to stick to dynamic data, then you cannot use the bundle function in the gearing VI. The correct function would be the Merge Signals function.
06-20-2009 04:37 PM
Hi thanks again for your reply. That seems to define the starting reference point. You have suggested that as Im using dynamic data I'm pretty much bound to the timestamp which is why I cant have an x-axis (time) that starts at a 0.0 and iterates relative to this. I guess I'll just have to accept that.
My input to my DAQ is a linear rod potentiometer ( with 200mm full scale defelection). So it will dynamically output a voltage 0 - 5v for 0 - 200mm of displacement of the rod potentiometer. To put this in context the pot swill be connected to (for example) the column/elevator on an aircraft. So it will output a voltage linearly proportional to the displacement of the column/surface. Is there any other way of doing this without "dynamic data" ? As you say you have never used dynamic data and being far more experienced than me in using LabVIEW was wondering if there was an alternative for the type of configuratiom I'm using ?
I've attached my data scalar constants in my block diagram to convert the output voltage from potentiometer (that is input into AI0 of the DAQ) into a potentiometer displacement (0 - 200mm) or wheel angle (-180 deg to 180deg), for example, as illustrated in my front panel. I dont know of any other way of doing this - Since the pot is linear (1v per 40mm of displacement) I just scaled the voltage to provide a representation of pot displacment. Is this a sensible thing to do ? The use of the scalars doesn't diminish my need for a high sample rate. I think I still need as high a sample rate as possible (1000hz the max for 6008 DAQ ?) as inceptor input could be quite rapid and I need to ensure I get as many samples as possible to measure the relative gearing between inceptor and surface.
06-20-2009 04:42 PM