05-25-2018 05:20 AM
Hi,
I am trying to save the 100 samples worth of data after each trigger event in a pulse train. I am using a VI inside another VI to control the data being saved. I am able to save the first pulse of of data by writing it to a measurement file (excel) but the data points after the first pulse reads zeros. Can anyone suggest how to solve this problem?
The 100 samples are created every 200ms.
Could this be a problem due to the data being unable to be saved at the speed?
Is there any method of solving this using a buffer?
05-25-2018 06:13 AM
Without knowing anything about the code you have developed so far, you may want to look into a Producer/ Consumer architecture as a way to use queues to effectively run multiple loops. Saving data to a file will involve some delay, so this is the sort of operation that should be decoupled from the sampling loop.
Again, without knowing anything about the hardware you are using, I wouldn't have thought a sampling frequency of 500Hz should be too difficult to achieve with the right architecture.