Quantcast
Channel: Measurement Studio for VB6 topics
Viewing all articles
Browse latest Browse all 323

Excel VBA, C-API Problem with DAQmxLoadTask

$
0
0

Hello,

 

ich have a problem using the DAQmxLoadTask funktion. I have a task which I created in the NI-MAX. The device is connected and I can execute the task in the NI-MAX.

 

Now I'm trying to access that task from Excel via VBA. I've set the reference to the NI C-API

 

but the following code always produces the error -200089, which means "Task name specified conflicts with an existing task name."

 

Public Function LoadTask() As Long Dim taskHandle As Long Dim error As Long Dim taskName As String taskName = "Durell" error = DAQmxLoadTask(taskName, taskHandle) End Function

 

What am I doining wrong?

 

With kind regards,

 

Alex


Viewing all articles
Browse latest Browse all 323

Trending Articles



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