LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Diode curve tracer error: specified operation cannot be performed when there are no devices in the task

I try to run this Diode Curve Tracer with a mydaq in Labview 2013: https://decibel.ni.com/content/docs/DOC-20392

But I got this error saying "Specified operation cannot be performed when there are no devices in the task" How do I fix this?

Screen Shot 2015-02-07 at 01.39.17.png

0 Kudos
Message 1 of 9
(4,086 Views)
Umm... By adding a device to the task?

How is the task configured? What does the code look like?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(4,068 Views)

What do you mean by "adding a device to the task"?  How do I do that? The mydaq is connect and recognized by the computer. The .vi supposed to simply read out the data from the mydaq. What the code looks like? Did you even see the attachment in the original question? That is the .vi file with the code.

0 Kudos
Message 3 of 9
(4,054 Views)

What do you see if you open the configuration panels  of the two DAQ assistants? (Sorry, I don't have any drivers installed, so I cannot check myself).

Does the MyDAQ work otherwise, e.g. with the test panels?

0 Kudos
Message 4 of 9
(4,023 Views)

MyDAQ does work properly with other .vi files.

 

Which configuration panels are you refering to? Those ones?

daqassistant2.png

daqassistent1.png

0 Kudos
Message 5 of 9
(4,013 Views)
Apparently the way they are using DAQ in that code is to define an acquisition task in MAX and then simply call that task from LabVIEW.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 9
(4,006 Views)

Btw. the MyDAQ does get recognized in MAX. But do you know how to fix the error? 

 

Screen Shot 2015-02-07 at 18.56.52.png

0 Kudos
Message 7 of 9
(3,994 Views)
In the DAQ Assistant, click on 'Run' and see if you get the error. Click on 'Show Details' and make sure the device name is the same as what is listed in MAX.
0 Kudos
Message 8 of 9
(3,980 Views)

To solve the error go into NI my DAQ and name the my DAQ to Dev1 and the code will run correctly.

Bradley_swan_0-1682795649390.pngBradley_swan_1-1682795664173.png

Bradley_swan_2-1682795686487.png

 

0 Kudos
Message 9 of 9
(1,185 Views)