Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CreateArbWaveform function for Tabor waveform generator

I am trying to figure out how to send my own unique waveforms to Tabor's WW5061 arbitrary waveform generator.  I know that I need to use the ww107x_CreateArbWaveform function.  However, I have not been able to use it successfully.  The function looks like this

 

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

 

My beginning waveform is simple.  It is a simple column of ones for 1000 points.  I would think that the waveform size would be 1000 points and the data array would be that column, but it does not work.  Does anyone have an idea of what I am doing wrong?

 

Thanks.

0 Kudos
Message 1 of 4
(3,407 Views)

Hello Amara, 

 

What do you see when you try to create your waveform? Are you getting an error, less than 1000 points, or something else? 

Maggie
National Instruments
Applications Engineer
ni.com/support
0 Kudos
Message 2 of 4
(3,371 Views)

Hello Maggie,

 

Thank you for replying!  I have now actually successfully created a waveform using that command.  There appear to be some funky limitations with it that I do not understand, though.  For example, I can only create a waveform if it is 10,000 points.  I don't know why that is, and I will take a closer look after Thanksgiving.  However, if you have any ideas, let me know.  🙂

 

Thanks,

 

Amara

0 Kudos
Message 3 of 4
(3,366 Views)

Hello Amara, 

 

Are you using the function from NI Signal Generators? I found documentation in NI Signal Generators Help that the CreateArbWaveform function is now obslete, but they offer suggestions for new functions. Maybe those would work better for your application? 

 

 

 

Maggie
National Instruments
Applications Engineer
ni.com/support
0 Kudos
Message 4 of 4
(3,350 Views)