11-17-2012 01:59 PM
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.
11-20-2012 09:43 AM
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?
11-20-2012 11:42 AM
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
11-21-2012 04:54 PM
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?