07-25-2007 02:38 PM
07-25-2007 04:30 PM
I really can't tell you. Can you provide more details on what is happening? Just stating that you are seeing lag does not tell us much.
An initial guess is that the IMAQ VI's are causing the lag and not the array functions.
Also, since you need to input the array as a Single precision floating point, you should just initialize the array as a Single instead of a Double and then converting it. Just right click on all of the "DBL" terminals and navigate to the "Representation" menu and select "SGL". That will eliminate one copy of the array.
Ed
07-26-2007 08:15 AM
07-26-2007 08:32 AM
07-26-2007 08:35 AM - edited 07-26-2007 08:35 AM
Message Edited by altenbach on 07-26-2007 06:36 AM
07-26-2007 08:36 AM
07-26-2007 08:38 AM
07-26-2007 08:47 AM
07-26-2007 08:54 AM
The initialize array stalls while allocating memory.
An Action Engine with a
set-up state (to do every from the multiply backwards and save in a SR)
And a Do-Imaq state to do the rest may help.
This let you force the memory allocation to happen before your code will be impacted by the call to the OS to allocate the memory.
Trying to help,
Ben
07-26-2007 09:01 AM
@Candice wrote:
Ok I have fixed what was suggested to be fixed.
I told you that was only a general suggestion for better coding, but will NOT fix your problem.
We would really need to see the code.