12-04-2019 01:35 PM
Hello!
I am trying to read data from a mass flow meter (Omega FMA-1600A), timestamp the data and record it in a txt file. What I did was to read the data through a VISA serial port, limit the bytes of reading per cycle and via string combination to put everything together in a new row of data which includes the timestamp. However, the timestamp is still inserted at random locations, so it splits numbers (e.g. 0.0.36 565) and I can't seem to put it in the beginning. Do you know what I could do to avoid this?
Thank you!
12-04-2019 01:42 PM
With the information you have provided (not) I can say with confidence, the answer to your question
"
Do you know what I could do to avoid this?
"
Is
Fix your code.
Id you want a more useful answer please share the code you have trouble with and somebody should be able to help you.
Ben
12-04-2019 01:45 PM
@ttoshkov wrote:
Hello!
I am trying to read data from a mass flow meter (Omega FMA-1600A), timestamp the data and record it in a txt file. What I did was to read the data through a VISA serial port, limit the bytes of reading per cycle and via string combination to put everything together in a new row of data which includes the timestamp. However, the timestamp is still inserted at random locations, so it splits numbers (e.g. 0.0.36 565) and I can't seem to put it in the beginning. Do you know what I could do to avoid this?
Thank you!
They're not "random" locations. It just seems that way because you haven't fully understood the way to communicate with the instrument. Carefully read the manual where it shows how to communicate with the instrument. Feel free to upload the manual so we can prepare for your questions.