Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

error C2100: illegal indirection

1: DAQmxCreateDOChan(taskDOhandle, /* add this channel to task */
2: port, /* port=Dev1/Port0*/
3: "", /* */
4: DAQmx_Val_ChanForAllLines /* we are sending data to a port*/
5: );


cl.exe give me a "error C2100: illegal indirection" to line 5

but I was wondering what/where I am mistaking.

Thanks in advance



0 Kudos
Message 1 of 2
(5,092 Views)
Hi Mario,

It looks like the error is in your line declaration.  The NI-DAQmx format is DevX/portY/lineA:B - where X is the device number, Y is the port number, and A and B are the low and high lines values for the port such as 0:7 - this is true even when you declare an entire port . 

Regards,
Micaela N
National Instruments
0 Kudos
Message 2 of 2
(5,083 Views)