Hello everyone,
I am seeking to generate a single pass of a waveform in the AWG mode. I have a saved csv file of my waveform. My file has 2500 points. I want it to run a single instance with LabVIEW and be done. I have tried to use the 5000 series example with no success. What setting am I missing for it run one shot of the waveform and be done?
You will need to setup the ps5000aSetSigGenArbitrary() function to output a single shot of the waveform on a trigger event (this can be scope input, external input or software trigger).
Great!
The AWG is spitting out one instance of the waveform. However in reality the whole waveform is 9.4 milliseconds long. The waveform I am getting out is roughly 3.2 milliseconds. The shape is accurate just not the timing. Would someone please point me in the correct direction?
Good afternoon all,
On page 84 of the 5000 Series Programmer's Guide the formula given is
outputFrequency = dacFrequency × ( deltaPhase / phaseAccumulator Size) ×
( awgBufferSize / arbitraryWaveformSize)
Is the dacFrequency constant regardless of the desired output frequency?
Is this function being called after a connection has been established to the device as I noticed that the handle and other values are hardcoded?
If you could please right-click the Call Function Library Node and select Properties then obtain screenshots of the tabs of the dialog appears, that would be helpful.
The ps5000aSigGenFrequencyToPhase() function returns a value corresponding to a PICO_STATUS code. Please change the return type to a signed or unsigned 32-bit Integer. The error is probably caused by there not being memory to write the value to.
Also the handle value should be a Signed 16-bit integer and the buffer length and phase should be unsigned 32-bit integer.
A return value of 12 indicates an invalid handle value.
Are you calling this function after the call to ps5000aOpenUnit()? If not, you will need to call the ps5000aSigGenFrequencyToPhase() function using the handle output from the Open Unit sub-vi which is used in our examples.
If you still get the error after doing the above, please post screenshots of the function prototype defined in the Call Function Library Node.
Hello Hitesh,
Progress is being made! I am learning a little bit as well. I am getting an error 5003. Does an error code chart exist in the 5000a programmers guide?
I have included screenshots of ps5000aSigGenFrequencyToPhase parameters and the ps5000aOpenUnit.