Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a signal on FGEN 5421 and gettting it on FScope 5122

Solved!
Go to solution

Hi,

1) I need to generate a signal given by,

 

 A[sin(wt)+N*sin(2wt+pi)] using the NI PXI 5421.I am attaching the program that I created using Labview.The problem I am facing while using this program is that the maximum amplitude I can get is 1. Second thing is that I need to generate only for a few periods. 

 

 

Later, I would like to do a sweep of this signal in the frequency range of 304kHz to 372kHz with a step size of 0.5kHz. How do I go about it?

 

2) I will send this input signalinto my system and I am able to see the response on the oscilloscope using the NI Scope front panel. I would like to know how I can use a labview program and acquire my response with suitable sampling. 

 

3) I also need to convert the response on my oscilloscope into an array of values so that I can import the array and generate the response in Matlab. How do I get the response as a text file with an array of values?

 

Waiting for your reply,

 

Thanks in advance,


Santosh

 

 

Regards,
Santosh R Kodandarama
Missouri S&T
0 Kudos
Message 1 of 3
(6,191 Views)

Santosh,

 

1.  The 5421 can only be given a waveform that is ±1 V.  What you need to do is create your waveform so that it is only ±1 V and then use the  niFgen Configure Arbitrary Waveform VI to set the gain and offset that will make the waveform what you would actually like it to be (say ±5V by using a gain of 5, instead of ±1V).

 

1a. For the sweep, thats not really what Arbitrary waveform generators are for, its more of a task for a function generator like the 5404.  There is even an example that does it for you in LabVIEW's example finder called Fgen 5404 Frequency Sweep.vi.

 

2.  There are tons of example files that read data from a scope and save it to files so that you can open it other programs.  Specifically I would look at niScope Ex Stream to Disk.

 

If this is still a bit overwhelming I would recommend you take a look at maybe taking some customer education courses in Modular Instrumentation.  You will learn all about the functionality of Fgens Arbs and Scopes and how to integrate them.  The money paid for training is usually more than made up for in development time saved.

 

http://www.ni.com/training/

Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
0 Kudos
Message 2 of 3
(6,175 Views)
Solution
Accepted by topic author Kakrott

I stand corrected on my advise about the frequency sweep, give these a shot:

 

http://zone.ni.com/devzone/cda/epd/p/id/3327

http://zone.ni.com/devzone/cda/epd/p/id/1021

http://zone.ni.com/devzone/cda/epd/p/id/5054

Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
0 Kudos
Message 3 of 3
(6,173 Views)