08-21-2018 10:11 AM
Hello,
I am trying build a waveform in order to save to a file. I don't believe I am building my waveform correctly because my values in my graph are only plotted by their index value not against time. I seem to save the timestamped data in my measurement file; however, it is repeating values and timestamps. Any help would be greatly appreciated!
Thanks
08-21-2018 01:32 PM
You didn't assign any dT value for your waveform, so it will default to 1. That is the delta time between samples.
But what is the time between samples? Your loop is running as fast as it can as whatever rate the modbus functions will respond with data. Suppose a response takes longer than usual to come back? There is no consistent dT in your data.
08-21-2018 01:56 PM
Are each of those data points read from the Modbus read supposed to be separate channels? Right now, you are writing all of the values into 5 different waveforms. I think what you really need to do is use Array To Spreadsheet String to format your data and use Format Date/Time String to format your timestamp. My recommendation is to use a tab as the delimiter between your channels and save your data to a simple text file. Excel can open up txt files just fine when formatted this way.