05-18-2008 08:13 AM
05-18-2008 10:39 AM
05-19-2008 04:04 AM
Thanks for your quick reply!
I will check out the tutorials in the near future.
Now I am honestly not sure, where to build the DLL in my existing project, which I did not develop myself.
I attached a worddoc with a screen shot. At the beginning of the programm 60 electrodes send signals at the same time (according to sample rate 1kHz-25kHz).
All this information is queued so no information is lost. I guess this is queued in a 2D-array with 60 collumns and x rows. Is that right?
Now I have to run the DLL on the data I receive - is it possible to run the algorithms with the queued data or do I have to unqueue it before and then run the algorithm?
Since my data is stored in an array, I have to use an array in my c-code as well, right?!
Thanks again
05-19-2008 07:00 AM
05-20-2008 02:39 PM
05-20-2008 03:12 PM
05-23-2008 04:42 AM
05-23-2008 06:55 AM
05-23-2008 10:26 AM
Open the Example Finder (Help -> Find Examples) and do a search for "dll". Open the example called "Call DLL". You will find lots of examples of calling DLL functions with a wide variety of datatypes.
@s21694 wrote:
So I have to use pointers...
I now suceeded in the tutorial (see above) but what would a Labview and C-code look like with pointers/arrays?
Lets say I want to call a DLL, which multiplies every element of an array by two and sends the new array back to labview??
How can I do that?
05-26-2008 02:26 AM - edited 05-26-2008 02:27 AM
Unless your C program does lots of bit shuffling and bit level operations 700 lines of C code isn't so much to translate into LabVIEW.
@s21694 wrote:
By now I found, that I can´t use an array in c, but have to use a pointer instead. Is that correct?
Well I thought of writing the whole algorithm in labview, but the c-programm is about 700 lines.
I will see..