LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Waveform Performance

Is there a more efficient way of working with digital waveforms?

I have a boolean array of 96 IO lines per transfer coming off of an FPGA FIFO, (no DAQMX)

I'd like to be able to display this data, however, the act of converting this data to a digital waveform is terribly inefficient.  1 kHz is more than my i7 can handle at this point, heres the code, the DVR is not blocking.

 

 

snippetofdigitalwaveform.png

------------------------------------
Jon Kokott
CLA, CLED, CTD, MCP C#
0 Kudos
Message 1 of 3
(2,667 Views)

You can use the "Boolean Array to Digital" VI to do this. It's under Waveform >> Digital Waveform >> Digital Conversion >> Boolean Array to Digital.vi. Convert the 1D array to a 2D array (you're not adding data, just another dimension) for the input:

2018-04-18 10_35_41-Coverting a boolean array to a digital waveform - Discussion Forums - National I.png

Hope this helps!

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,613 Views)

Thats the same VI I'm calling in the snippet above.

Anyway, here is the solution:

solution.pngThe bigger problem was "Append Digital Samples" vi.  This code can easily handle 1 Gbits/second throughput on my laptop, the old code does less than 20 kbits/sec.

 

I think the tools for digital waveform manipulation could use some work.

------------------------------------
Jon Kokott
CLA, CLED, CTD, MCP C#
Message 3 of 3
(2,609 Views)