03-08-2013 04:22 PM
Sorry, my bad! it works.
03-12-2013 10:35 AM
Hi again,
I have another question. How could I adjust the x-axis timestamp programmically? I will need to adjust the range from say 12:40:00 AM, 05/07/2011 to 12:50:00 AM, 05/07/2011. My customer has requested a separate control cluster for this. I am looking at property nodes for doing this but I am not sure which one to use. Thank you for all your help! 🙂
03-12-2013 11:01 AM
03-12-2013 11:11 AM
How would this work? The x-axis is timestamped. A range min and max property node is a dbl precision number format! 😞
03-12-2013 11:35 AM
You can convert a timestamp to a double-precision value using the To Double Precision Float function in the Numeric->Conversion palette.
03-13-2013 11:04 AM
Hi again,
I will have to make some changes to my code. The format of the text/speadsheet files has changed. Instead of a timestamp followed by a single count value I will need to read in a timestamp followed by 4096 count values! I will need to total all the count values at once or from a selected range - say channels 30 - 73 for example. Please see attached. Any suggestions would help! Thank you. John
03-13-2013 11:13 AM
Hi Newton,
- Read in as 2D array of strings, when you need the timestamp. Convert rows/columns as needed to numbers or timestamps. Do your calculations as needed.
- When timestamps do not convern you can read in the file as 2D array of DBL. Do your calculations as needed...
03-22-2013 12:49 PM
Hi again,
The formating of the text file I am reading is inconsistent and must remain this way. See the attached example. What would be the best way to sort this data (in other words: delineate between timestamp and numeric data)? As you can see the timestamp data is in chronological order by row ,but with duplicate entries for some of the timestamps. I have tried transposing 2D array but it is not helping much.
03-22-2013 10:48 PM
A Word document is a poor choice of format for posting a screenshot. Consider using PNG (on Windows, run mspaint, paste the screenshot, save as PNG). Even better would be a to upload a section of the raw data file, since we don't know what you did to read the file before putting it in the array indicator.
Do you care about the rows duplicate timestamp rows? If not, you could write some code that goes through each row and attempts to interpret the first column as a timestamp. If that succeeds, check the next row for data, and if there's data, combine the timestamp and data and append it to a new array. At the end you'll have an array of just the useful data. If the array is huge, there might be a more memory-efficient approach depending on what you need to do with that data afterwards.