|
From: E.Boivin on 5 May 2008 05:40 Hi, In a project context developed in LabVIEW 7.1.1, I'm using the function "Replace Array Subset" to uddate the content of a 3D-Array. I have made some tests and I was pleasantly surprised to have very good performances to replace (in place) a part of my 3D-Array with the content of another 3D array with the single LabVIEW function"Replace Array Subset" and one parameter : the index of the 2nd dimension. Now, I'm upgrading the project in LabVIEW 8.5.0 and I have a broken arrow because the "Replace Array Subset" does not accept anymore to replace a 3D-Array part in my initial 3D-Array. So to manage the same array manipulation, I need to make the replacement row by row in 2 nested For Loops. This take a lot of time ! In my project environment this takes 145ms and nows with the new code in LabVIEW 8.5.0, this takes 3825ms !!!! Does anybody have an explanation of LabVIEW changes ? Does anybody have an optimized structure to manage 3D-Array in place modifications ? Is it the same in LabVIEW 8.5.1 and future versions ? I join 2 simple LabVIEW examples to show the changes: - Replace3DArray-LV711.vi - Replace3DArray-LV850.vi + xxx_Array_Replace3DArray-LV850.vi Thanks for your help, EmmanuelMessage Edit� par E.Boivin le 05-05-2008 04:25 AM xxx_Array_Replace3DArray-LV850.vi: http://forums.ni.com/attachments/ni/170/320956/1/xxx_Array_Replace3DArray-LV850.vi Replace3DArray-LV711.vi: http://forums.ni.com/attachments/ni/170/320956/2/Replace3DArray-LV711.vi Replace3DArray-LV850.vi: http://forums.ni.com/attachments/ni/170/320956/3/Replace3DArray-LV850.vi
From: altenbach on 5 May 2008 11:40 Your Replace3DArray-LV711.vi opens fine in LabVIEW 8.0 and 8.5.1, so everything should continue to work as before. You don't need to do any workarounds. There is a possibly related <a href="http://zone.ni.com/devzone/cda/tut/p/id/6927" target="_blank">fixed bug in 8.5.1</a>: 4CFADPDX Replace array subset broken for 4D (or higher) arrays But since you have only 3D arrays, you should be fine anyway. I no longer have access to 8.5.0. What is the exact error message if you click on the broken run button?
|
Pages: 1 Prev: error -20023 internal software error Next: comment attaquer une DLL sous labview |