01-25-2021 01:19 PM - edited 01-25-2021 01:23 PM
Hello everyone,
I am trying to make a test program in which increments voltage as follows:
I am new to LabView and DAQmx, are there any examples of a program which increments an analog output voltage of a specified interval?
Any guidance is greatly appreciated, thank you!
01-25-2021 02:04 PM - edited 01-25-2021 02:05 PM
Hi quadehowald,
@quadehowald wrote:
Hello everyone,
I am trying to make a test program in which increments voltage as follows:
- Output large voltage and wait 30 s.
- Set it to 0 V (signaling the start of the test), and every 30 s, increment it by 1 mV, to 10 V.
- Wait 30 s, and change it to 0 V to signal the end of the test.
I am new to LabView and DAQmx, are there any examples of a program which increments an analog output voltage of a specified interval?
What about using a statemachine when you describe (atleast) 3 different states/steps in your test procedure!?
"Incrementing an output voltage" is the same as "incrementing a value in a loop": you may use a shift register to store a value to be used in the next iteration of a loop…
As you don't seem to know about shift registers (and from the way you spell LabVIEW) I think you really should take the "Training resources" as offered in the header of the LabVIEW board to actually learn LabVIEW!
Off-topic note: please stick to the default font and font size when writing messages here. No need to decrease the font size…
01-26-2021 09:50 AM
Thank you for your reply! I am new to visual programming interfaces. I like the idea of the using the state machine and shift registers. All I need to do is configure 1 analog output from 1 port to vary the output as mentioned above. For my case, I believe the best course would be to have 5 states, process 1 (set to large voltage, wait 30s), process 2 (set to 0V, wait 30s), process 3 ( increase previous voltage by 1mv every 30s until 10V is reached, using shift register?), process 4 (wait 30s and set to 0V signaling the end of the test). Do you know of any examples where this is done using the DAQmx library?
Thanks again.
01-26-2021 09:57 AM
Hi quade,
@quadehowald wrote:
For my case, I believe the best course would be to have 5 states, process 1 (set to large voltage, wait 30s),…
Create more states:
@quadehowald wrote:
Do you know of any examples where this is done using the DAQmx library?
You just need to learn from the examples coming with LabVIEW.
There are DAQmx examples and there is an example statemachine project…
02-01-2021 03:07 PM
So I've applied your recommendations and the attached is what I have come up with. What do you think @GerdW?
02-02-2021 01:40 AM - edited 02-02-2021 01:59 AM
Hi quade,
@quadehowald wrote:
What do you think @GerdW?
There are still several problems in your VI: