LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reviving an old VI

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!

0 Kudos
Message 1 of 5
(1,774 Views)

Depends on the error...

 

Post the VI and the exact error you are receiving, then we can give you useful advice.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 5
(1,770 Views)

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. 

0 Kudos
Message 3 of 5
(1,759 Views)

We can't troubleshoot a picture of your code.

 

Attach your code (the actual VI) and some sample data please.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 5
(1,754 Views)

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."

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 5
(1,680 Views)