LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA and measuring digital signals

Hi, I have a question about PXI-7831R and using ports.
In my configuration 6connectors with ports. Each of this ports has 8lines. I want to select only one of the lines. The example in the attachement
I made by my self but, I only can compile it with 80MHz. Is there any other way to do it more efficient? I mean with less functions, but the same functionality?

Thanks Marco
0 Kudos
Message 1 of 2
(2,281 Views)
Marco,

first of all 80 MHz is a quite good value which will be hard to beat but still there is a lot of room for improvement in your vi:
  • Avoid automatic datatype coercion (e. g. change the datatype for the "8" constant to U8)
  • Don't use front panel controls within a loop.
  • Avoid array operations. Either access the digital channels directly by line rather than by port or use your logical operations directly on the integer values (shift operations, bitwise AND, OR and so on)
  • Use single cycle loops and pipelining
There are several more things that can be optimized. Please refer to this tutorial for more information

Best regards,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 2
(2,264 Views)