07-18-2013 08:30 AM
Hi,
I'd like to generate an arbitrary analog waveform, e.g. a step function where the voltage increase 1 V each step and where the voltage is hold for a certain time. Or an analog signal e.g. 5 and 0V for a certain time. It is really important that I use analog in the end. I currently try to make a waveform by using the waveform generator VI. Unfortunately, I only get something of a triangle signal. How can I hold the value? It should look more like a digital signal (at least in this example, but on the analog channel). I didn't find any examples which help me. So if you know an example where the value is hold please really tell me.
Thanks,
Verena
Solved! Go to Solution.
07-18-2013
08:38 AM
- last edited on
10-03-2024
08:48 PM
by
Content Cleaner
Have you tried using 'Simulate Arbitrary Signal Express VI'.
And if you also want to make use of some sort of hardware, then checking this might be helpful:
07-19-2013 01:57 AM
Thanks for the idea. I tried it out. Unfortunately, the result was to slow. In the first step, I need a 5V signal for about 300µs, 4V for 300µs, 3V for 300µs and so on. With the Express VI the signal was to long (25ms).
07-19-2013 02:15 AM - edited 07-19-2013 02:22 AM
Can you share you code, want to see what configuration you had made and what result you are getting...!!
I tried, and found that using this express VI, you cannot create any waveform of resolution higher than 1 millisecond.
But you can definitely modify the resolution programmatically, I made an example (LabVIEW version 2012) to demonstrate.
07-19-2013 08:39 AM
Thanks very much. I tried it and it work on the computer. However, if I measure the signal on the oscilloscpe I have a half period of 2.96ms and I don't get it any faster. However, I know that in general the PCI 6722 is faster. How can I create an arbitrary signal at this speed.
Info: I work with Labview 2009
07-19-2013 08:46 AM - edited 07-19-2013 08:48 AM
Why haven't you posted your VI? Everything depends on how you have set the DAQmx task and you have not even mentioned what you have done for it's configuration.
It also sounds like you can use the Ramp function to generate the waveform. Have you tried that?
07-19-2013 09:11 AM
Well, first of all I want to generate a simple waveform but in the end the waveform is more complex so I cannot use any standard step function, square etc.
The VI has two parts. First I need to generate an analog arbitrary signal which has a half pulse width of about 300µs (upper loop). Then I'd to read back everything which is seen on the chanel. I control a sensor which then produces a signal itself.
So I have got two problems:
1. Generate a fast signal (upper loop)
2. Read back everything which is on the chanel incl. the produced signal in 1 (lower loop)
Thanks for the help