05-06-2009 09:47 AM
05-06-2009 10:44 AM
Could you please help us figure out what is different between those two programs?
They look the same to me, I don't see a GUI Dialog nor do I see any locals.
I am at a loss as to any suggestions I can offer.
Maybe some one can spot something.
Ben
05-06-2009 11:49 PM
In the first frame the program reads a sequence with a number of 8-bit numbers from a file. This sequence is then connected to a NIDAQMX box in the second frame that sets up that these will be writen to the first digital port. If I replace the loaded sequence with a sequence that you can set from the gui the program runs a lot faster and does not slowing down Windows as well. Why?
05-07-2009 07:26 AM
patrac wrote:In the first frame the program reads a sequence with a number of 8-bit numbers from a file. This sequence is then connected to a NIDAQMX box in the second frame that sets up that these will be writen to the first digital port. If I replace the loaded sequence with a sequence that you can set from the gui the program runs a lot faster and does not slowing down Windows as well. Why?
Lacking that version of the code I am forced to assume you are trying to read your data from a FP object.
So it sounds like you have discovered that reading from FP objects is not that fast and often forces data copies etc.
Still working from that assumption...
Put your data in an Action Engine and read from rather than the GUI.
You can also browse the set of of LabVIEW_Performance tags or these releated links.
Just trying to help,
Ben
05-07-2009 08:40 AM
There are several ways you could improve this code:
05-08-2009 05:31 AM - edited 05-08-2009 05:31 AM
Ok!
It seams like the numbers that i read from file is'nt buffered even if the "read from file box" is in the first frame. Now I'm trying to read the numbers to a shift-register and i'm two loops: one for reading and one for buffering. The program runs faster now but I have now checked if it does what it's supposed to do yet.
Thanks for helping me out.