LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert digital to boolean array ( fastest way in terms of time)

Hi I have to convert digital data to boolean array to do some analysis. I know there is function called Digital to Boolean Array.vi that can exactly do this task but I have noticed when I use this block I see a considerable delay between my high data acquisition loop and the processing loop ( used queue). When I remove this vi both loops work at the same rate but when I add this block to my consumer loop, there is like a 2ms delay in every loop iteration between them. I would like to know if there is anyway to to this conversion without using too much memory and in the fastest way.

I would greatly appreciate your help.

Thanks

0 Kudos
Message 1 of 3
(2,371 Views)

You can open the block diagram of that VI to see what was done and whether you could modify a copy for improved performance.  At a quick glance it is not obvious that anything slow is in there.

 

How big is your waveform?  Can you post your VI with some typical data saved as default?

 

Lynn

0 Kudos
Message 2 of 3
(2,358 Views)

@johnsold wrote:

You can open the block diagram of that VI to see what was done and whether you could modify a copy for improved performance.

 


Hi johnsold,

Does your piece of advice have something to do with SubVI Overhead as shown in:

LabVIEW\examples\general\Eliminating SubVI Overhead.llb

 

?

 

 

Regards,
Alex

0 Kudos
Message 3 of 3
(2,335 Views)