05-06-2009 03:14 AM
Hi!
I have made a LabView program that has three NIDAQMX channels simultanously, one for data acquisition, one for digital output, and one analog output,
using the board PCI-6221m.
My problem is that I want the channels running in 50khz. When I'm using a pattern that can be set from the gui it is possible but when I read the pattern from a file, which is desirable, the program slows down the operating system so much that it's not possible to move the mouse pointer.
I have included two attachment, the first showing the program that reads the pattern from a file, the second showing the program that reads the pattern from a gui dialog.
How can I make the program run faster when reading the pattern from a file?
Thankful for any suggestion!
05-06-2009 03:33 AM
Hi patrac,
a vi is really hard to analyze when the blöock diagram is divided on several pages of a PDF document...
Could you please attach the vis itself or (atleast) a picture of the block diagram (preferrably in PNG format)?
05-06-2009 04:05 AM
Just set Acrobat Reader to show two pages on the screen at once.
05-06-2009 04:11 AM
05-06-2009 04:20 AM - edited 05-06-2009 04:21 AM
Hi patrac,
"Just set Acrobat Reader to show two pages on the screen at once."
What should I expect to see on a 1024*768 screen when using "two pages" display mode? ![]()
All I get then are some colored lines...
05-06-2009 04:42 AM
You can zoom in and out, move around...
What is the difference from viewing a bitmap-picture?
05-06-2009 05:23 AM
05-06-2009 07:33 AM
1) Save your data as binary since the reading/parsing takes time and don't over-look the difference in the amount of data that needs to be read from disk.
2) Read all of your data ahead of time and then pace the replay?
Just trying to help,
Ben
PS the pdf version does demand more of our time to help you out.
05-06-2009 09:30 AM
The program reads the data before anything else.
The "read file box" is in a separat frame but still the perfomance between the version that reads data from file and the version that reads data from a array in the gui is like night and day.
I have tried to store the data from file in a variable by creating a indicator and then connect a variable to the write function of the digital out channel but it makes no difference.
05-06-2009 09:43 AM
Please post your code so we can look closer.
Ben