LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time response Program

Hi Guys,

 

I was wondering if you could help out? the issue is on the first step I am collecting data from the NI9219 from two channels. 0 and 1 at this moment. I then load all the data into an excel file and use index Array to calculate a Min and MAx value for future processing. My problem is the index array doesnt work the way it should, when ever i run the Unit under test I am getting the incorrect minimum value for the unit under test. it seems the array is not populating the data correctly anyone have any idea?

please see the code below 

thanks

 

-Chris 

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

Really hard to help when you give a password protected VI...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,985 Views)

Omg LOL, I forgot about the pw, sorry, I removed it here attached below.

0 Kudos
Message 3 of 4
(2,981 Views)

First, you have a lot of functions where you don't use the outputs.  (Such as Array Min/Max, a tunnel out of your while loop, a subtraction in your while loop)

 

What are you really trying to do?  Using insert into array seems odd in the while loop to put a 30 element array into a column of your array.  Seems like the Build Array function would be more approporate.

 

Also, when you finally exit that loop, only the array of the last iteration gets passed out of the tunnel, all along you've been appending copies of that array into your data file, but in the end, you only use the data from the last iteration.

 

I'd suggest running a block diagram cleanup on your code.  Then start tracking down all the unused outputs and determine whether you mean to use any of them or not.

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