I'm using Borland C++ Builder 5.0 and CWAI control of ComponentWorks to get the analog signal from DAQ card.
I want to delete or add a new channel object in CWAI control when the program is running.
So I did:
CWAI1->Channels->RemoveAll(); <--It seems to work fine
CWAI1->Channels->Add((wchar_t*)0,upperlimit,lowerlimit,InputMode,Coupling);
But,It does not work in second line. I can't understand what is wrong.
Please answer me this question.