LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Error -200485 occurred at DAQmx Create Task.vi:2

Solved!
Go to solution

I keep having this error: 

The specified task cannot be loaded, because it is not in Data Neighborhood.

Check Data Neighborhood in MAX. Look for similar characters, such as the capital letter "O" and the number zero.

 


I would like to know what is the problem with the program.  I've attached the VI.

 

Basically i am trying to control a physical LED connected to the NI Elvis II by comparing the inputs from DIO 0-7 and DIO 8-15.

So if DIO 0 is on, DIO 8 must also be on to turn on the LED. 

But at the moment, the program cant run. Need help in spotting the mistake! >< Thanks!

0 Kudos
Message 1 of 15
(4,136 Views)

From the code you attached I guess you haven't created a task (This is used to configure which is input and which is output) so you can take a look at the page how to create a task and go ahead.

 

Good luck

-----

The best solution is the one you find it by yourself
Message 2 of 15
(4,133 Views)

Thank you very much! So, is it possible to compare two different DIOs? 

0 Kudos
Message 3 of 15
(4,128 Views)

Yes absolutely.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 15
(4,120 Views)

Can i just ask, once i create the event, i'll be able to compare the two DIOs with two different Controls??

0 Kudos
Message 5 of 15
(4,115 Views)

Can you explain what do you mean by two controls? What type of controls? If you mean two boolean controls, yes you can compare and its very basic.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 15
(4,112 Views)

Yes, i mean two boolean controls. I shall try the create task method to solve the problem

0 Kudos
Message 7 of 15
(4,099 Views)

I can now control the LED with both the DIOs. Thank you very much. Now, how can i make it to such where by both DIOs have to be "On" so that the LED will turn on? Because at the  moment, Both DIOs can turn on the LED without the need of the other DIO to be on. I tried putting "Equal?" Comparison but it deosnt work.

0 Kudos
Message 8 of 15
(4,096 Views)
Basic Boolean operation for this is an AND function. The equal is just wrong if you want the LED on only when both are true.
Message 9 of 15
(4,093 Views)
Solution
Accepted by topic author txrxmo

Try the AND function.

Message 10 of 15
(4,091 Views)