Jump to content

srsnerdshack

Members
  • Posts

    5
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2009
  • Since
    2009

srsnerdshack's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I have to take a voltage from a Pressure sensor through my NI USB 6009.The DC voltage will be varying and continuous. I am displaying it on a graph as hown in the VI. 1) How do I record the data in form of text? I want to record the amplitude(Y axis) ( as many points as possible, say every second) as well as the time data(X axis). This will be printed to my project report. I have to take readings every second, which is difficult to do with a cursor, manually. 2) How do I print the waveform on the graph ? We cannot do a printscreen. 3) Can I replay a graph later, even if the pressure sensor is disconnected? Can the graph data be stored somehow, but the amplitude(Y axis) and time data(X axis) must remain unchanged from the original. Also the DAQ 6009 is ultimately going to be inside a control design and simulation loop.(As attached in second file) Now the problem is that every time the loop repeats the previous value gets erased. Please help. Thank You very much. record data.vi record data2.vi
  2. Now I think I can clarify my problem: When we run the VI and move the SP upto say a value of 2. With P= 0.05 I=0.01 D=0 the PV slowly moves upto a value of 2. But then the display named "PID output" also shows 2. When SP=PV I want it to show zero, so that I can signify to the examiner that error output is zero. Since PID O/P is error= SP-PV, then it should show zero right? Thank you.
  3. Sorry. Here is the code. Its very plain and simple, but I would be glad if you can help. I found an error. There was a multiplication I was carrying out which was in error. I have removed that now. I think now your explanation above is making complete sense with what is happening. Still it is good if you can tell me how to implement % to EGU and vice versa. Also if you run the VI, the VI itself runs very sluggish. Can you help me out with the correct timing parameters for running VI? Thank you. pidtrial.vi
  4. Thank you for your replies!! I am attaching a file here. This is an example VI. if we run this VI and increase the setpoint and watch the horizontal slider(geen), we realise that as the PV nears the SP, the green bar goes from +100, towards 0. Also in the VI we can actually see that the controller is giving -100 to 100, and then a formula is used to make it 0 to 100. I could not even get the Output to swing from -100 to 100. This VI is exactly what I am trying to replicate. Its my first time at LabVIEW and at a PID control project, so I am sorry if I cannot express the doubt in a correct fashion. Hope the VI clears what I am trying to put forward. Thank you again. Manual-Automatic Control with Engineering Units.vi
  5. For my senior design project, I have to give a 0-5 bar input signal.( set point). Right now I directly connected it to set-point of "PID Advanced." After simulating a Transfer Function and a pressure sensor, I am giving some value in between 0-5 bar as Process Variable to PID Advanced. But the PID O/p shows up as follows: When SP=5 bar, PV starts increasing towards 5 bar and PID O/P slowly increases to " 5 ". When PV reaches 5 bar, PID O/p stays at 5 !! I want the controller action to show that when SP=PV controller output is zero( at least approximately). This is not happening. I then tried to give SP in terms of % between 0 to 100. I then introduced a EGU to % VI in the feedback to convert the PV of 0-5 bar into %. Now its the same story again. When SP=100%, PV starts increasing from 0. Similarly Controller output increases from 0%, but when SP=PV=100%, controller output shows 100% . I want the controller ouput as follows: if SP>PV then o/p>0 (increasing towards 100%) if SP=PV then o/p=o% if SP<PV then o/p= decreasing towards -100%) The detailed help in labview did not help. Neither did the example in the examplefinder, since its too complex with a lot of other things. Please help me. Thank you.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.