ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running c code low latency

Hello,

We are designing a project to acquire biomedical signals. For this project to suceed our program must run in real-time with approximately 5 msec of latency. In order to implement one of our algorithms we need to use C-code/MATLAB. We are using MATLAB to create a multidimensional array defined in size by the user based on previously acquired signals. When we tested how fast our C/MATLAB code ran (using the Timing Template VI that is included in the LabVIEW examples) we found that it ran between 9 and 10 msec. We were wondering if there were ways to use external code more efficiently.
0 Kudos
Message 1 of 2
(2,357 Views)

How are you interfacing to the library? A code interface node to make calls to a DLL is generally very fast.

On the other hand, if you are using COM (ActiveX) calls, then it's going to be slow. More info is here.

0 Kudos
Message 2 of 2
(2,348 Views)