I am currently having issues with synchronizing my data saving for my labview code. Attached is an image of the block diagram of my code. What I am trying to do is to collect high speed and slow speed data and to continuously display the data on the front panel. Then when I trigger the injection event (as seen as the slow event) I want to save the data that is being read for three seconds following a digital TTL trigger. My current design is to always be polling for a write to measurement file in the while loops for the high speed and slow speed data collection and have them initially set to false. Then, when I trigger the system in the slow event I also set the boolean to true for the write to measurement file to start saving data. I then have two more while loops that will delay switching the the save data booleans to low for 3 seconds. This is my first time using labview and so it was the best design I could come up with but it is clearly lacking. I am unsure if the data is truly synchronized with each other, and synchronized with the initial pulse output in the slow event. I have done some research into a better strategy but I have not been able to find a solution that allows for me to continuously collect high and slow speed data, and then to synchronize the data collection with a given ttl trigger. I was hoping someone might be able to provide me with a little guidance on a better direction to take to accomplish the continuous data collection and the synchronized data saving. Also, the slow speed daq is NI cDaq-9174 (with modules three of 9214 and one 9202) and the high speed daq is NI USB-6356. The high speed daq is also what I am looking to use to create the trigger for the data synchronization (it is also being used to start our experiment). Thanks.
↧