LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why dose data can not be written into file instentaneously?

Hello all, I am using labview to creat a data aquisition system. I sample the data and then write it into a text file I created. However, I found that the data can not be written into file instentaneously, but after I click the red button to abort execution, the data would be stored in the file. I use the probe watch window to check the wire connect to text terminal of "write to text file", there are data coming in. Could I ask is there any reason for this to happen and how can I fix it?

 

Thank you so much for your help in advance.

0 Kudos
Message 1 of 4
(2,089 Views)

It is kind of hard to troubleshoot your question without seeing any kind of code to see what you are doing now.  Please attach your VI.

0 Kudos
Message 2 of 4
(2,072 Views)

We can't really help you out unless we can see what you are doing.

It sounds like you have a loop collecting your data, then your write to file function is after that loop.

Therefore, your data will not be written to the file until the data collection loop finishes.

 

Please look up a "producer-consumer architecture", that may be what you are looking for.

Cory K
0 Kudos
Message 3 of 4
(2,066 Views)

Moved to here..

 

(Next time, please reply into your original thread rather than starting a new one.)

0 Kudos
Message 4 of 4
(2,042 Views)