LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filter data in tdms file

I am needing to look at select data of a TDMS file in an analyze portion of a stat machine. The VI is to test both AC and DC motors. I am getting 18 different reading from a power analyzer. I am writting these to a TDMS file for ease of passing through the rest of the states. In the "Analyze" state I am wanting to look at  13 of readings an compare them to see is they are within tollerence. I will then use this check to highlight the reading green or red.

 

My questions are:

 

Should I even have an 'Analyze' state or should I do the analysis in the state that the reading is taken?

If I do use the 'Analyze' state is pulling the data from the TDMS file the best way to do this?

 

Also, if you see any other possible errors in the vi, please let me know. This is my first experience with LabView and it is steep learing curve.

 

Thanks, 

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

Since you are using a State machine approach, I would suggest to keep that idea and add the Analyze state to keep the code organized. Plus, you can add a shift register to pass around the acquired data which will be more efficient than reading from the TDMS file.

 

For future reference, when using the state machine while you analyze, log, etc...you are forcing sequential execution and loosing time that can be used for hardware I/O. When this becomes a concern you can implement the following structure. Keep up the good work Smiley Wink

Alejandro C. | National Instruments
0 Kudos
Message 2 of 2
(2,150 Views)