Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with the function DAQmxSetArmStartTriggerType

Hi,
 
I'm using DAQmx 8.3 and programming in Microsoft Visual C++ .NET
 
I encounter an error when building my solution, the offending function call being :
DAQmxSetArmStartTriggerType(taskHandle,'DAQmx_Val_DigEdge)
 
The error that is reported is : unexpected end of file in macro expansion
 
Has anyone seen this before? Thanks for any advice
0 Kudos
Message 1 of 3
(3,424 Views)
Hello IUBwork,

The function is expecting the following parameter:
DAQmxSetArmStartTrigType(TaskHandle taskHandle, int32 data);

I noticed in your line of code you had a " ' " in your code, before your DAQmx_Val_DigEdge. Was this in your code or was this a type-o in the discussion forum?

Regards,
  Sandra T.

Applications Engineer | National Instruments
0 Kudos
Message 2 of 3
(3,414 Views)

Hi Sandra,

Thank you for the assistance. The errant, ' , was in my e-mail, and not in the code.

This morning I tried to repair (via the MS Windows "Add or Remove Programs" Control Panel facility) my DAQmx 8.3 version. This has ameliorated the problem. Perhaps there was a 'hiccup' during my installation.

Thanks

0 Kudos
Message 3 of 3
(3,408 Views)