Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 200288

Solved!
Go to solution

I am trying to write a program in labview using USB 6211 as my Daq card to achieve the following:

 

I need to output a constant DC voltage of 5 V if my input voltage is less than 3.

Output -5 if my input is greater than 7.

 output same as before if input is >3 and <7.

 

I have the case structures all set ,but I am getting an Error 200288 which has something to do with loop execution.

I have tried a few of the solutions found in the forum,but have been unable to  solve the problem.

 

I am attaching the code. Testing feedback.vi is my mail program..untitled8 and untitled4.vi are also required to run this program i think.

 

Thanks and regards ,

 Karthik Jay

 

0 Kudos
Message 1 of 10
(4,968 Views)
You didn't attach your code.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 10
(4,966 Views)

oops.. sorry..

 

 

Download All
0 Kudos
Message 3 of 10
(4,958 Views)
You have complicated your code by using regeneration when you actually don't need it and have not taken the necessary steps to address it. Have a look at the attached code (I just generated one by using the DAQmx examples). Hope it helps!
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 10
(4,954 Views)

Hey,

 

I am unable to open the VI since I am using Labview 8.5 and you are using 8.6.

 

I would be greatful if you can save them with the previous version and post the VI again.

 

Thanks,

Karthik

0 Kudos
Message 5 of 10
(4,948 Views)
Sure. Saved in LV 8.0.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 6 of 10
(4,945 Views)
Solution
Accepted by karthikj85

I have one last problem here.

 

I have to get 2 input signals to the VI.

One of them runs thru the case structure and the other just has to be displayed.

 

I copy pasted a few sub vis and tried to run it.

However i am able see only one signal being read. I have attached the VI .

 

I am really grateful to NI for such a great customer supprt system.

You saved me a lot of time and effort with your help and guidance.

 

Thanks people.

0 Kudos
Message 7 of 10
(4,918 Views)

You've made a very common mistake. You CANNOT have two separate tasks that use the same resource. Combine your analog inputs into a single task. That means only one DAQmx Create Channel and only one DAQmx Read.

0 Kudos
Message 8 of 10
(4,916 Views)

OK. thanks.

 

I now have both the Create Channel .vi in series .

 

I changed the DAQmx read.vi for Multiple channels>>Multiple samples>>2D DBL

 

Now i need to seperate the two inputs ,perform the logic operation on one and just display the other.

Could you give me info /link on how to do that?

 

Thanks,

Karthik

0 Kudos
Message 9 of 10
(4,909 Views)

ok. i used array indexing and got the values out.

Thanks..

0 Kudos
Message 10 of 10
(4,900 Views)