LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ voltage input and output tutorial CVI?

I'm using a 6008 DAQ.

I've gotten the device to work when in the task editors, however I have been unable to get the code to work.

 

The error message I keep getting is:

 

NON-FATAL RUN-TIME ERROR:   "tmp.c", line 48, col 5, thread id 0x00001130:   Function DAQmxLoadTask: (return value == -200088 [0xfffcf268]). Task specified is invalid or does not exist. Task Name:   Status Code: -200088

 

Simply put, I want to read a voltage and output a resonse to it, on two seperate channels. I haven't worked with DAQ's before and I'm still relatively new to CVI.

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

Cvi and DAQmx come with a wide set of documentation material and examples that can help you in developing your applications.

 

The base help source is the DAQmx help, located in Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help.

 

Additional sources are installed inside CVI online help: see the chapters

 Library Reference»NI-DAQmx Library 

 Using LabWindows/CVI»NI-DAQmx Concepts

Finally, the error you are reporting indicates that the task you are trying to load does not exists: this page from the online help can give you some useful informations on how to coordinate activities between MAX and CVI: Tools >> Create / Edit DAQmx tasks

 

The last source of informations is the Help >> Find examples... function, which helps you to locate the examples shipped with CVI; this function can also be used to search NI site for examples and can be tailored to match your actual hardware so that you are prompted only with relevant examples.

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,567 Views)