06-27-2012 12:43 PM
Ok, let's go back to what the clfn returns. Is Y 1 data point for each channel?
06-27-2012 12:46 PM
And I will repeat what I have said. Take that 1D array and wire it to the Array to Spreadsheet. The decimate function is irrelevant to anything except your graph display. And, as I have also said, you could simply wire the index array function to get each channel and wire the result to your existing concantanate string function. You would of course convert the 1D array of dbl to a string array first.
06-27-2012 12:48 PM
06-27-2012 12:50 PM
You are simply not paying attention. If in fact your 1D array is a single sample from each channel, you need to process the 1D array you get from the clfn. Everything else is a waste of time and I will not say that again.
06-27-2012 12:56 PM - edited 06-27-2012 12:56 PM
Sorry but I don't understand you. My 1D array is NOT just single sample of each channel but it's array with 1s of all data from all channels. ( Please see first picture on first pagewhere I allocate memory for 1 seconds of data).
06-27-2012 12:58 PM
Wow, Dennis is getting mad.
hlod, you didn't really answer my question. I asked that to clearify. Based on the assumption that you have 1 data point per channel coming out of the clfn, then Dennis is right. You should be logging based only on that array, NOT the appended array. So in parallel with the charting logic, simply index out the channels you need to log them.
06-27-2012 01:02 PM
@hlod wrote:
Sorry but I don't understand you. My 1D array is NOT just single sample of each channel but it's array with 1s of all data from all channels. ( Please see first picture on first pagewhere I allocate memory for 1 seconds of data).
How many times did I ask if your 1D array was a single sample of each channel? NONE of your images explains anything different. Saying 1 second of data does not explain how many samples/second you are setup for. That is totally hidden.
You still need to be processing the 1D array from the clfn. Play with that.
06-27-2012 01:02 PM - edited 06-27-2012 01:05 PM
@hlod wrote:
Sorry but I don't understand you. My 1D array is NOT just single sample of each channel but it's array with 1s of all data from all channels. ( Please see first picture on first pagewhere I allocate memory for 1 seconds of data).
Ok, there's the answer I was looking for. If you only care about the last data point, my little trick is to use Delete From Array. Do NOT wire the index. By default, it will give you the last element.
06-27-2012 01:05 PM - edited 06-27-2012 01:07 PM
For example data from one of the Y:
Ok if I use "delate from array" :
http://zone.ni.com/reference/en-XX/help/371361E-01/glang/delete_from_array/
What I must set for length and index inputs ?
________________________________
Dennis_Knutson if I understand you now I must process data for saving direct from output of clfn ? And for showing them on graph I use what I already have and it's working OK?
06-27-2012 01:06 PM - edited 06-27-2012 01:08 PM
hlod wrote:
What I must set for length and index inputs ?
Nothing. Do not wire them. My edit from above was slightly late, but there's the example for you.