From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my call to send and receive to a fpga cost so much time ?

Hello,

We use a ni rio fpga 9602 connected via ethernet to a host pc for our measurement.

To change variables on the fpga we send custom U64 orders to a fpga control as depicted in the picture.

order_transmit.png

Interestingly when we time this it seems to take more or less 1ms to send the order and 2 ms to receive the answer and the loop usually only executes once ( i=0 )

As we usually send a dozen orders per measurement this can add up to 20ms of overhead (becoming comparable to the measurement time).

How can we improve the speed of this scheme ?

0 Kudos
Message 1 of 2
(2,257 Views)

Are you running that code from windows? If so, that has to transmit via nondeterministic ethernet right? If you need it faster you need to move this code down into the RT.

Message 2 of 2
(2,240 Views)