Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI DAQmx on excel vba error -200088 Task specified is invalid or does not exist

I'm trying to program an NI9403 module in a cDAQ 9171 chasis in excel vba. I simply want to make all the lines on port0 to be 1. I create a task and then create a digital output channel. However when the DAQmxCreateDOChan() runs, it gives me error -200088. Task specified is invalid or does not exist. I just created the task right before creating the channel though. Could anyone help me see why I am seeing this error?  Thanks! 

 

Dim taskHandle As Long
' Create the DAQmx task.
DAQmxErrChk DAQmxCreateTask("test", taskHandle)

' Add a digital input channel to the task.
DAQmxErrChk DAQmxCreateDOChan(taskHandle, "cDAQ1Mod1/port0/line0:7", "testa", DAQmx_Val_ChanForAllLines)

0 Kudos
Message 1 of 3
(1,194 Views)

The issue is fixed. I found out it is because my excel is 64 bit version. I uninstalled it and installed 32 bit version Excel. Now it is working.

0 Kudos
Message 2 of 3
(1,133 Views)

Is there any latest updates from NI  so that we can use this for 64 bit Excel?. As  the Windows image coming with our new PC has Excel 654 bits and we are not able to control USB 6501  from Excel. Appreciate if NI can give a solution.

Thanks,

Leyo

0 Kudos
Message 3 of 3
(1,034 Views)