07-02-2007 07:31 AM
07-02-2007 08:26 AM
07-02-2007 10:15 AM
Stradis,
Thanks for your reply.
I am also using LabVIEW 8.2.1
The reason that I am using Dynamic Data types is because this is what the Comparison VI require as input, and produce as output.
I am using one Comparison VI to compare some DMM readings against a spreadsheet of expected values, with it set to equal within tolerance and outputting one result per datapoint. This will put a 0 against any DMM reading that falls outside of range.
I am using a second Comparison VI in a similar way, but set to output one result for all channels to produce an overall pass or fail result (1 or 0) for each sweep of the DMM.
The DMM is set to measure resistance, 2 wire mode and the two wires are routed through two switching matrixes. I am connecting one of the DMM inputs to the first wire and measuring between it and the remainig wires in turn, via the second switching matrix. This is what I am calling one sweep. I am then moving the first DMM input to the second wire and repeating the sweep, etc.
Consequently I get a 1 D Array of dynamic data out of my For loop, and I want to search it to see if it contains any 0's, which would indicate an overall fail. I had hoped to use the 'Search 1 D Array' function to do this, and if it returned a -1, to use this as an indication that the equipment under test passed all sweeps of the DMM, but as I said earlier I also get -1 for what should be fail conditions.
I hope you will forgive the spralling mess that is my code, I know that I need to reduce it to a number of sub VI's etc, but I just wanted to see it work first. Hopefully it is attached,
Thanks
Lama
07-02-2007 10:42 AM
07-03-2007 02:50 AM
GerdW,
I take your points about using simpler functions, and not knowing what is inside a dynamic datastream, I will try replacing the Compair Express VI's with basic functions.
Thanks for the example,
Lama