03-22-2010 01:04 PM
I am monitoring 20 or 30 channels at any given time and storing all data to a TDMS file (LV 8.6). At any given time we are only displaying 3 channels on a waveform chart. The chart displays 5 minutes of data. say for the first minute I am viewing channels 1, 2, & 3. Then I switch over to 4 - 6 but in addition to the live data coming in I want to see what has happened since the test started a minute ago (or up to 5 minutes ago), as if I had been viewing these three channels all along.
What I have tried is to read the stored data from the TDMS file, copy the most recent data (up to 15K samples = 5 min at 50Hz). Then I take the live acquired waveforms, break out the array of Y values, concatonate with the Y values from file and rebuild the wavform. But it isn't workin. Seems like it should but I don't know what is wrong.
Any ideas?
03-22-2010 01:20 PM
03-22-2010 02:09 PM
03-22-2010 02:32 PM
lmd2 wrote:
okay, any suggestions would be appreciated, but I seem to have another issue: my time stamps seem to be 26 hours in the future. think there is some underlying problem here that I may need to resolve first.
1) Never analyze your data before you collect it.
2) The TDMS file viewer uses the "t0" times from when the data was collected. If you see this in your code, there are function on the Waveform data type palette that will let you paste new dat to the end of old.
3) "Ignore attribute" (chart property) will ignore the attributes of "t0" when plotting.
Ben
03-22-2010 02:52 PM
Thanks Ben
the issue with the future data was my fault (obviously) while deconstructing and reconstructing the waveform data type I mistakenly wired the freq (50) instead of dt (.02)
so my files are correct again ...
I don't see any function on the waveform palatte for concatonating recalled data with live.
btw I do see a function for indexing a waveform from an array of waveforms, should I not be using the normal index array function?
thanx
03-22-2010 02:53 PM
Thanks Ben
the issue with the future data was my fault (obviously) while deconstructing and reconstructing the waveform data type I mistakenly wired the freq (50) instead of dt (.02)
so my files are correct again ...
I don't see any function on the waveform palatte for concatonating recalled data with live.
btw I do see a function for indexing a waveform from an array of waveforms, should I not be using the normal index array function?
thanx
03-23-2010 07:03 AM
03-23-2010 08:19 AM
Still no luck, I noticed that on the Chart Properties Dialog box, on the scales tab is a check box "Ignore waveform time stamp on x-axis" but I am unable to check the check box (not sure that it would help, but it seemed like it would be worth a try). any ideas why that check box might be inactive? On the dispaly format tab I have selected absolute time (could be a factor) but if I select relative time I lose the timestamp on the x-axis and instead get some huge # - probably seconds since 1/1/1907 or whenever that date was. So if we need it to look like a time stamp, seems 'absolute time' must be selected?
I tried to coerce the timestamp on the left side of the x-axis, but the properties for both Range:minimum, and Range:start both accept dbl not time stamps. I also checked the Chart History Length buffer size = 45K I don't think that needs to be changed.
viewing the concatonated data seems like it should be doable, but I running out of things to try
03-23-2010 08:50 AM
I have just noticed that during the initialization, the waveform chart reference is being cast to a more specific class when some properties are being set. I am not sure why or whether this is a good thing or a bad thing, or how it may affect my current dilema. Please see the screen shot below.
Can anyone explain why this is being done and if it is related to what I am trying to do.
thanx
lmd2
03-23-2010 04:48 PM
Hi Lawrence,
You got a lot of questions here, so let me see if I can answer some of them.
1) If you look at the block diagram of the Waveform index VI, you'll see it's pretty much using the normal index array VI.
2) In regards to the "to more specific class", if you press ctrl-H and hover over the wire before and after the VI, you should see that the reference type is different. If it's not, then you don't need it and should be able to connect directly to the property node.
I hope this helps! Let me know if there are still some specific question left unanswered.