LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using custom C functions in Labview

I am simulating a communication system. We need to generate large amounts (several million) of random numbers, at a rate that gives acceptable performance. To do this, we are using a C subroutine to generate them. Is there a simple way to transfer the results from that routine, into Labview so that we can analyse and graph them?
0 Kudos
Message 1 of 2
(2,723 Views)
Coop;

First, I want to make sure you are aware of the Random Number function included with LabVIEW. It is in the function palette, under Numeric.

There are two techniques. The first is using a Code Interface Node (CIN) and the second (if you are in Windows) is to create a .dll file and call it using the "Call library function" VI. All the details on how to include C code into your LabVIEW application is in the following document:

Using External Code in LabVIEW

That manual should be included with LabVIEW. For online info, see:

External Code for LabVIEW - CIN / DLL - Starting Point

Finally, make sure you see the following:

Can LabVIEW C?

Regards;
Enrique Vargas
www.visecurity.com
www.vartortech.com
Message 2 of 2
(2,723 Views)