03-31-2009 08:42 AM
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
Solved! Go to Solution.
03-31-2009 09:29 AM
03-31-2009 10:31 AM
oops.. sorry..
03-31-2009 11:37 AM
03-31-2009 11:55 AM
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
03-31-2009 12:03 PM
04-02-2009 09:45 AM
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.
04-02-2009 09:57 AM
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.
04-02-2009 10:54 AM
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
04-02-2009 01:13 PM
ok. i used array indexing and got the values out.
Thanks..