12-17-2012 12:22 AM
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!
Solved! Go to Solution.
12-17-2012 12:36 AM
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
12-17-2012 01:24 AM
Thank you very much! So, is it possible to compare two different DIOs?
12-17-2012 02:55 AM
Yes absolutely.
12-17-2012 03:52 AM
Can i just ask, once i create the event, i'll be able to compare the two DIOs with two different Controls??
12-17-2012 04:12 AM
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.
12-17-2012 06:44 PM
Yes, i mean two boolean controls. I shall try the create task method to solve the problem
12-17-2012 07:49 PM
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.
12-17-2012 07:58 PM
12-17-2012 07:58 PM
Try the AND function.