LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Queue

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

0 Kudos
Message 1 of 5
(1,027 Views)

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

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 5
(994 Views)

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.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 5
(990 Views)

Thanks for your answer ,but I’m not sure to understand your hint.

Can you show me trough an example??

 

regards

David

 

 

 

 

 

 

0 Kudos
Message 4 of 5
(907 Views)

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.

0 Kudos
Message 5 of 5
(874 Views)