01-06-2020 09:39 AM
I need to control a device, using LabVIEW to give command to signal generator(Agilent 33522A), which can make the device switching voltage(amplitude)with short time(10~50ms).
I have a problem:
Where to put the time command to make the time can be adjusted?
Or indicate whether my code is proper for my requirement.
01-06-2020 10:49 AM
1. You can use the Get Waveform Components to get the Y part of the waveforms. Much simpler than your current conversion to a 2D array and then indexing the first row.
2. No need for the Sequence Structure at all. Data Flow will determine the order for you.
3. The length of the waveform is determined by the sample rate and the number of samples you give it. So you need to do the math when you generate the waveforms to get the timing you require.
01-07-2020 12:17 AM
Thanks for your response.
But I still have some problem need to be figure out.
I have add the sampling info, whether it is at the correct position ?
Furthermore, I am confused that why should I give Amplitude (0.1 Vpp) to the vi ?
Because Amplitude (0.1 Vpp) will replace the value which I have set(amplitude, amplitude 2, amplitude 3).front panel
block diagram