09-11-2018 08:01 AM
I've got little programs running each on a different while loop in a different Event structure. How can I save their data in the same file
09-11-2018 08:54 AM
Can you post your code?
09-11-2018 08:56 AM
09-11-2018 09:21 AM
From what I am seeing, I would only have 1 look with an Event Structure. It can handle the writing to both of your instruments since it only happens when you push a button.
Now for the reading, I would have a loop for each of those. You can just use the global variables to hold the latest values. Then your logging loop can just grab the latest values (ie read the globals) every X amount of time (whatever you want your logging rate to be).
So I am counting 4 loops: User Interface, Read Instrument 1, Read Instrument 2, Logger.
09-11-2018 09:23 AM
Thanks I'll give it a try
09-12-2018 03:54 AM
Actually I forgot there is another detail there is actually another loop meant to take the Voltage mesurement (and the other 2 as well ) tried some stuff sadly didn't work any idea how to fix it ?