Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

multiple functions in one function

$
0
0

Hello,

 

I would like to know how to create a function which involves multiple other funcions in it, so i could simplify my code. For example here is my issue: 

/*
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateDOChan (taskHandle, "Dev2/port0/line0", "AI0", DAQmx_Val_ChanPerLine));
DAQmxErrChk (DAQmxStartTask(taskHandle));
DAQmxErrChk (DAQmxWriteDigitalLines(taskHandle,1,1,10.0,DAQmx_Val_GroupByChannel,data1,NULL,NULL));
DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);

*/

So how could i manage to use these whole set of functions in only one? I guess i would need another .c file for that but if anyone could give me a concrete example with this, i would appreciate that.

 

Thank you in advance!

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>