LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with continuous acquisition and logging - Logging is not working correctly

I have a pretty complex Queued message handler VI. I press a 'Relay Power' button which triggers the following:

 

Relay turns on for a set time (duration), goes off for a certain time (Delay) and repeats.

 

Every time this happens, I log data to a text file during the 'delay' interval. 

 

For example, lets say I want to create 2 log files.

 

Duration: 1000ms

Delay: 1000ms

 

Files saved: File1, File2

 

File1 appears to be correct, ~1000 sample points (1 every ms)

File2 is ~2000 sample points, it logs what is acquired in the second 'duration' period.

 

I am not sure what I am doing wrong. The continuous acquisition examples in labview have a start/stop, where both acquisition and logging starts and stop at the same time. I don't think I want to do that?

0 Kudos
Message 1 of 2
(1,980 Views)

We can't be sure what you are doing wrong either.  It is kind of hard to help someone debug when we can't see their code.

0 Kudos
Message 2 of 2
(1,976 Views)