06-27-2008 09:41 AM
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
07-01-2008 04:12 AM
ViStatus hp33120a_CreateArbWaveform (ViSession instrumentHandle, ViInt32 waveformSize, ViReal64 _VI_FAR waveformDataArray[], ViPInt32 waveformHandle);
All the best,
07-01-2008 10:30 AM
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
07-01-2008 10:45 AM