Hi,
Just a thought re using both LabTalk and C. I think it's possible to put all LabTalk code in a c file by defining strings as the LabTalk functions/sections etc. Using '\' makes the code manageable eg
void test()
{
string LTstring="loop(numloop,1,100) {data1_a[numloop]$="pete";};"
LTexecute(LTstring);
}
Deining LTstring as a static string enables it to be called by all functions in the c file.
I think (not sure) the way to enable all the LabTalk code to 'global' is to define a function that returns the LabTalk code as a string.
This to me seems really useful and will aid managing my code and evolving from LabTalk to C over time!
Does anyone have any comment or know of possible limitations/problems that may arise (length of string?).
(Origin 7.5 attaching C files to projects : even better!)
Cheers,
Pete
