LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application stalls

I have an application that takes in two analog signals (pressure and temperature, 4-20mA) along with 1 to 10 other analog signals (constant voltage signal from a switch)--switches under test.  The application records the pressure (and temperature) at witch a switch changes state (NO to NC and NC to NO), this work fine and I get nice txt files with all relevant data. 

 

Problem.  I have been experiencing a delay in the signal shown on the front panel.  For example, when the pressure is declining there will be a time when the display pressure dial reads the same pressure for a period of 1 - 3 seconds.  This would not be a problem except if this occurs when the switch under test is changing state I may (and do not) get a true reading of pressure.  In fact, I can get a recording of all switches changing state at the exact same pressure; which is not the true case.  I also noticed that this application takes a lot of CPU power to run.

 

LabVIEW 9, Windows 7

 

Any suggestions or thoughts would be appreciated.

 

Thanks,

Brian

Download All
0 Kudos
Message 1 of 3
(2,542 Views)

Your use of the Write to Measurement File is incredibly inefficient, and to top it off, you are using 10 of them. Switch to a producer/consumer architecture at least. Do you see any problems when you disable all of the file writes?

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

Yes, even if I test a couple of switches I observe the same behavior.

 

WOuld I use a producer/consumer loop for all 10, or is there a way to integrate all 10 into one?

 

Thanks,

Brian

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