02-16-2021 12:25 AM
hello,
I need some help regarding the XY graph. In this graph, x is my time and y is the amplitude. Here I am supplying a voltage of 6 volts to my analog input but the voltage value is fluctuating I don't know why it is doing like that. I am attaching my front panel and the block diagram of my vi can anybody check and help me with this problem. How i can acquire constant voltage so that my graph displays 6 volts for a particular time. please help me.
02-16-2021 12:36 AM
Hi Abhishek,
@AbhishekEllapu wrote:
I need some help regarding the XY graph. In this graph, x is my time and y is the amplitude. Here I am supplying a voltage of 6 volts to my analog input but the voltage value is fluctuating I don't know why it is doing like that.
The XY graph is working as expected, so why do you need help "regarding that graph"?
What is "fluctuating"? I mainly see a noisy signal at ~6.17V, with about ±0.08V noise.
(Did you read the specs of your DAQ device?)
@AbhishekEllapu wrote:
I am attaching my front panel and the block diagram of my vi can anybody check and help me with this problem.
When you would attach real code instead of images we would be able to edit and debug the code! We cannot edit/debug images with LabVIEW!
When you would cleanup your block diagram then just one image would be sufficient.
Why do you use just the first one sample of each chunk of 1000 samples?
What about averaging each chunk of 1000 samples into a single value?
@AbhishekEllapu wrote:
How i can acquire constant voltage so that my graph displays 6 volts for a particular time.
Instead of using a DAQ device you could wire a numeric constant instead. This would give you "constant voltage for a particular time"…
02-16-2021 12:58 AM - edited 02-16-2021 01:01 AM
Thank you for the reply here in this I have attached the vi and the XY graph is working fine.
02-16-2021 01:06 AM
02-16-2021 01:36 AM
here it is.
02-16-2021 02:05 AM - edited 02-16-2021 02:11 AM
Hi Abhishek,
like this:
On your VI: it is full of Rube-Goldberg code!
As I wrote before: cleanup the block diagram!
02-16-2021 02:34 AM
Hello,
I tried to implement what you said for the analog input my graph is coming like this. I am very new to labview as well I am just learning from 3 months. Check it.
1. reset switch is for resetting the charger amplifier where there pressure sensor is connected to it .
2.Can you please show me how to make all the digital output in one task.
please help me. I am learning still everything.
thank you.
02-16-2021 02:53 AM
Hi Abhishek,
@AbhishekEllapu wrote:
I tried to implement what you said for the analog input my graph is coming like this.
Now you get a signal of 6.16805V with ±0.0002V noise. What do you expect?
I ask again: DID YOU READ THE DATASHEET OF YOUR DAQ DEVICE?
02-16-2021 03:03 AM
Yes I have checked it how we can remove the noise. I have a pressure sensor where it’s output voltage is 0-10v for 0-10abs bar. I want see the value for 1 bar it should show 1 volt it should not be fluctuating.
Can you please show me how I can change the digital output and input signals and improve my program.
02-16-2021 03:50 AM - edited 02-16-2021 03:50 AM
Hi Abhishek,
@AbhishekEllapu wrote:
Yes I have checked it how we can remove the noise. I have a pressure sensor where it’s output voltage is 0-10v for 0-10abs bar. I want see the value for 1 bar it should show 1 volt it should not be fluctuating.
The value shown in your image is very stable and does not "fluctuate" - once you set a reasonable Y scale… (In other words: Read the datasheets of the sensor and the DAQ device regarding "noise". Then add the "real noise" in the measured signal/system.)
@AbhishekEllapu wrote:
Can you please show me how I can change the digital output and input signals and improve my program.
Your VI looks like this:
You could improve similar like this:
I made two DI tasks as you are using two different devices. Maybe you can even join the channels into one task: test for your own!