LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control the time of signal generator ?

I need to control a device, using LabVIEW to give command to signal generatorAgilent 33522A, which can make the device switching voltageamplitudewith short time10~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.

Control signal.JPGControl signal_2.JPG

0 Kudos
Message 1 of 3
(2,165 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,122 Views)

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 panelfront panelblock diagramblock diagram

0 Kudos
Message 3 of 3
(1,921 Views)