LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data recording

I have an event sequence and with in that event sequence is a stacked sequence that is within a for loop. I also have another while loop running programs that must run continuously and collecting data. I need to collect data from the event sequence as well. I would like to collect them together and not run 2 seperate write to measurement files, but when I run a wire out of the event sequence into the while loop the program doesn't run. Is there away around this. I have attached a pic of the wire diagram for a better idea of what i am working with

0 Kudos
Message 1 of 3
(2,290 Views)

I think the event structure is misused here : an event structure is intended to respond immediately to events, while in your vi, it will be busy rotating the filter wheel for a significant period of time. What you could do, apart rewriting your program as a state machine, is to move all your wheel stuff in a case structure in your first loop, controlled by a boolean, and trigger this boolean using a local variable in the event structure. However, the state machine would be a better, cleaner, easier to maintain solution...

 

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(2,279 Views)

Hi jastel,

  I think you might have create a time out event also..so put the time value as 0 for that time out event...This should work..

 

 

Thanks and regards,

srikrishnaNF

 

 

 

Regards,
Srikrishna


0 Kudos
Message 3 of 3
(2,250 Views)