From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-28-2014 05:00 AM
Hi,
I'm a relatively new user of NI hardware, had some experience with cRIO systems but not PXI
I've got a PXI chassis with a PXI5402 fgen card, I'm trying to generate a single, double and triple cycle sinewave (user selectable) but have very little experience with creating waveform files, is there a guide to doing this or is there a vi which lets me create a (relatively) custom waveform, I'm using the 'fgen function generator.vi' example and was hoping to build on this, I'd like to be able to continually transmit my waveform or set a specific number of transmissions
any help appreciated!
03-03-2014 07:14 AM
Hi there,
I belive that what you are trying to achieve would be best achieved using the arbitrary function mode, unfortunately this isn't supported by the PXI-5402. As it is a A PXI-5412 would be better suited to this task.
That is not to say, however, that this is impossible. I believe you can achieve single cycle generation using list frequency mode. http://zone.ni.com/reference/en-XX/help/370524M-01/siggenhelp/mode_frequency_list/
This forum post explains a little more: http://forums.ni.com/t5/PXI/PXI-5402-Burst-generation/m-p/2163496
Although the forum above mentions using multiple frequencies, list mode allows you to set a duration of signal generation allowing you to choose the number of cycles to generate through timing.
I recommend modifying the Fgen Sweep Generator.vi example to generate only one frequency for a specified duration.
I hope this helps.
03-04-2014 02:22 AM
many thanks Tim! I will give it a try and report back with my success/failure!
03-05-2014 02:31 AM
Hi there,
the example from the burst generator post was very useful, I've built something very similar myself, however I'm struggling to generate 3 cycles at 5MHz, is this a hardware/software limitation? it works if I drop the frequency to 1MHz but the transducers I'm trying to drive have their peak sensitivity at 5MHz
any suggestions?
03-06-2014 09:11 AM
Hi,
The PXI-5402 can generate signals up to 20 MHz so this should not be a problem for it.
http://sine.ni.com/nips/cds/view/p/lang/en/nid/202642
Could I see the code that you have written with the numbers you are using?
What occurs when you try to generate 3 cycles at 5 MHz? Have you been seeing any errors? If so what are their error codes?
Cheers,
03-06-2014 09:18 AM
Hi Tim,
I believe I've cracked this, according to the datasheet for the PXI5402 the minimum step duration is 1.28uS, 3 cycles of a 5MHz sine wave are only 600ns in duration, so at 5MHz, the shortest step duration in a frequency list will be 8 cycles
As my final application is likely to be used at lower frequencies (plus I'm looking at purchasing an AWG rather than AFG) this will probably not be an issue in future