Hi,
I had a very simple function written in CVI that adds multiple global virtual channel
DAQmxErrChk (DAQmxAddGlobalChansToTask(g_TaskHandle, linesName)); //linesName consists 2 global virtual channels seperated by ",". E.g. "Power, Com" where Power = port1/line0 & Com = port1/line2
There is AddGlobalFunction in MEasurement Studio too but it allows adding single channel only:
Task localTask = new Task(); localTask.AddGlobalChannel(linesName); //Get Expetion here = -200486, Specified Channel not in the task. When I give a single channel name..it works DigitalSingleChannelWriter doWriter = new DigitalSingleChannelWriter(localTask.Stream); doWriter.WriteSingleSampleMultiLine(true, states); //atates is the array of type bool which consists of value for each channel
Is it not possible any more to add multiple Global Channels to a task??
We have recently acquired Measurement Studio license and are trying to port/compile/write our old libraries (written in CVI) in it.
- Is there any online help that compares CVI C functions with respective .NET functions of DAQmx?
Thanks in advance!
Ciao
Ricky