03-31-2023 10:55 AM
Hello,
Ineed to use quue to seve data in a produer consumer architecture and I relized teh vi attached,
but I realized that once the file is created, it is not available if I deselect the save tatsto, but only when I stop the program.
Basically I would need to be able to create several save files only by selecting or deselecting the save button without having to stop the process of generating the data to be saved.
regrads
David
03-31-2023 12:48 PM
I can open the TDMS file generated after selecting the Save To button.
Perhaps you can consider using the standard TDMS VI as well. The examples are located at <LabVIEW>\examples\File IO\TDMS\Standard Read and Write
03-31-2023 12:53 PM
Need Proper Producer Consumer Loop, Please go through Basics of Handling Loops and data transfer between loops.
Hint: Pass State,Data and Reset Option via Queue from producer Loop to Consumer Loop.
Even Stop also handled using state from Producer Loop Instead of Local Variable.
Reset Option will tell the Consumer Loop to start Pop window for New File when there is a Event Change in save Button.
04-02-2023 10:57 AM
Thanks for your answer ,but I’m not sure to understand your hint.
Can you show me trough an example??
regards
David
04-03-2023 10:30 AM - edited 04-03-2023 10:33 AM
What he is telling you is to create a simple message system with a MessageID and it's data, if there is any to pass. That way, your Producer Loop can communicate to the Consumer Loop.
Study the Cluster section of the Cluster, Class, and Variant portion of the Functions palate.