Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a user-defined waveform for HP33120A?

I have download the instrument driver of HP33120A 15 MHz Func/Arb Wvfm Generator from ni.com and installed in my Labwindows/CVI 8.51. I want to create a user-defined waveform (similar to two squares with different widths) from CVI. However I do not know the procedure to use the driver functions.

 

I think that after the initialisation, I could use function hp33120a_arb_bin_wf ( ) or hp33120a_arb_float_point_wf (), but I do not know how to create the file from which data will be loaded if I have 2500 points to enter. The example in function hp33120a_arb_bin_wf ( ) is 10 points: 2047, 1536, 1536, 1024, 512, 0, -512, -1536, -1536, -2047, but I have to enter 2500 points and my waveform is similar to a square waveform. Some periods is 1 and others are zero. Can I use any loop to do it?

 

I will be grateful if you could give an example of such arb file and the way to create, or another way to create a similar user-defined waveform.

 

Regards

 

Youzhang

 

0 Kudos
Message 1 of 4
(3,624 Views)
Hi Youzhang,
 
You are probably looking to use this function to create the datapoints for your program:

hp33120a_CreateArbWaveform

ViStatus hp33120a_CreateArbWaveform (ViSession instrumentHandle, ViInt32 waveformSize, ViReal64 _VI_FAR waveformDataArray[], ViPInt32 waveformHandle);

 

All the best,

Applications Engineer
0 Kudos
Message 2 of 4
(3,590 Views)

Hi Rob,

Thank you so much for your quick response.

I believe that hp33120a_CreateArbWaveform" function is the ideal solution for me.        

I would be grateful if you could tell me where I can find hp33120a_CreateArbWaveform" function.

Regards

Youzhang

0 Kudos
Message 3 of 4
(3,574 Views)
Hi Youzhang,
 
I found the function, example c program and the help file describing it's use in this folder:
C:\Program Files\IVI\Drivers\hp33120a
 
If you installed by default then this is most likely where the file is, if not then I'd suggest just doing a windows search for the folder.
 
All the best,
Applications Engineer
0 Kudos
Message 4 of 4
(3,572 Views)