From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-14-2017 01:58 PM
Hey,
I'm looking at using a Siglent SDG 1032X to ramp a Vpp from say 0->4V. I can do it using a while loop (ugly). I was wondering if anyone knew of a command I could send to the Siglent that would do this for me? Also, if there is a command that would turn off the output once I'm done. Thanks to all how help! Will attach the VI if necessary
Solved! Go to Solution.
09-15-2017 02:12 AM - edited 09-15-2017 02:13 AM
Hi P4,
if anyone knew of a command
I guess Siglent knows all the commands supported by their device!
I guess they provide a programming manual (maybe just on request). And I guess all the commands supported by your device are described in this manual…
That being said: did you read the manual?
I can do it using a while loop (ugly).
What's ugly in using a loop?
09-15-2017 02:33 AM
According to the manual:
COMMAND SYNTAX <channel>:BaSicWaVe <parameter> <channel>:={C1, C2}
Wit parameter:
SYM <symmetry>. Only wave type is Ramp, you can set this parameter.
09-15-2017 11:23 AM
Thanks GerdW,
Yeah I have read the manual, but it was sparse on examples, which I was hoping for because it wasn't particularly clear on exactly how the commands should be ordered. I can dive into the VI that I downloaded from NI and reverse engineer it which I will probably try to do. And using a loop works almost how I want it, but the instrument "clicks" which talking to a siglent rep meant that it was switching relays. This caused a momentary drop in amplitude that I can't have. That's why I said it was ugly.
09-15-2017 02:05 PM
I'm only trying to ramp the amplitude while still having a sin wave with a frequency in the MHz regime. Essentially i want a piece wise function
G(t) = A(t)*sin(2*pi*f*t) where A(t) = r*t for 0<t<t1 and A(t) = Vpp for t1<t. Vpp is the ultimate amplitude out that I want. A ramp function won't work in this case. Maybe I shouldn't have used the term "ramp."
09-16-2017 06:11 AM
It looks like a fancy device. I wouldn't be surprised if it had an arbitrary waveform function. So you'd calculate data and upload it. That's how I did it on an USRP. Just a thought, I don't know Siglent.
09-18-2017 01:08 PM
You are not wrong it is a fancy device. I've tried the arbitrary waveform, but it doesn't ramp up the way I'd like it to. I'm wondering if it has to do with the frequency with which I'm sending the data to the device? The resulting waveform that comes from the siglent *clicks* and then goes directly to the frequency and amplitude I have it set at without ramping up first.
09-19-2017 03:28 AM
Well, first you can loose the two insert into array's and the top two shift registers. LV will automatically build the arrays when the outer tunnels are set to indexing (default).
Should I be able to see these *clicks*? The graph seems like a nice ramp to me. Note that you're probably the only one in this thread with a Siglent SDG 1032X.
In short:
1) does the device output your wrong waveform correctly? Or
2) does the device output your waveform incorrectly?
With 1) it's easier to help, since it wouldn't require a physical device.
09-19-2017 11:38 AM
I'll go back and update my VI with the new knowledge of indexing thanks.
The *clicks* are hardware related. Talking to a rep, they are relays that switch when you give it a command.
The waveform I built is what I want the siglent to output, but instead its just outputting a sine wave at a frequency and amplitude. So the siglent outputs incorrectly. Why is it that no one here uses a siglent? We also have a Stanford Research Systems function generator, I'm just waiting for the hardware to communicate with it via Labview.
09-20-2017 02:55 AM
@PFour wrote:
> Why is it that no one here uses a siglent?
It's not that no one uses Siglent, but that no one actively involved in this forum uses Siglent. And those that do, probably use it in another way. My wild guess is that maybe 200-2000 people actively answer threads. We're all involved in very different activities. Some of us might never need a waveform generator. If we need one, we probably use NI waveform generators, some might use Agilent\HP\(or whatever they're called now) or Keithley or something else. So the butter is spread thin...
As for the problem, my guess is you lose the ramp, since the device is busy switching to a higher output range. You might need to tell it to go to a high output range before starting. But that's just a wild guess...