12-20-2021 01:10 PM
I am a graduate student and I have been tasked with getting a LabVIEW routine up and running. At some point, I know this routine has worked as students have written their thesis' using data from it. The original routine was created and run on the 2006 version of LabVIEW and the entire library (including this routine with it's sub VI's) has since been transferred to a computer with LabVIEW 2010. It runs into an error now in one of the sub VI's and will not run on either the original computer or the new computer.
What is going to be my best bet for getting this routine up and running again? Should I start with a blank VI and copy it step by step from the old version? Any advice is greatly appreciated!
12-20-2021 01:28 PM
Depends on the error...
Post the VI and the exact error you are receiving, then we can give you useful advice.
12-20-2021 02:08 PM
According to a pop-up window, it says the larger routine is stopped at "Insert into Array" on the block diagram of a sub-vi. I attached an image of the sub-vi in question.
I should also mention this routine is meant to tease out the screw displacement axis using a set of cameras.
12-20-2021 02:28 PM - edited 12-20-2021 02:29 PM
We can't troubleshoot a picture of your code.
Attach your code (the actual VI) and some sample data please.
12-23-2021 07:51 AM
Run it in Highlight execution mode and Retain values (the light bulbs) to see if you can pin it down.
I'd bet on some array dimension issue.
From Insert into array help:
"This function resizes the array along only one dimension. Therefore, you can wire only one index input. The index you wire determines the dimension along which you can insert. For example, to insert row(s), wire the row index, or to insert column(s), wire the column index.
The array you wire to n or n-1 dim array must be the same dimension or a dimension less than the one you wired to n-dim array. For example, you cannot insert a single element into a 2D array, and you cannot insert a single row (a 1D array) into a 3D array. You can, however, insert a 2D array that has a single row into a 3D array. LabVIEW pads the resulting array as necessary."