04-17-2018 03:51 PM
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.
04-18-2018 10:36 AM
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:
Hope this helps!
04-18-2018 01:46 PM
Thats the same VI I'm calling in the snippet above.
Anyway, here is the solution:
The 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.