06-14-2012 10:11 AM
I was trying to understand the ‘RFSG Generate Finite RFSA signal.vi’ and had a few questions –
could someone please help me?
Thanks so much,
06-15-2012 10:19 AM
The "RFSG Generate Finite RFSA signal.vi" is just a VI that I made quickly to show the general way of how to generate a signal based off of one that you receive. Next time, please post the code as well so others have the code too. This example is very basic however, and needs some changes to be used for streaming applications.
niRFSA Configure Number of Samples is used to determine the number of samples that are taken every time the RFSA Read is called. The niRFSA Configure Number of Records is a way to configure the number of times your read is called. Take a look at the Context Help and other help documentation to get a more detailed explanation of what these 2 functions do.
You need the niRFSA ReadIQ function to read the data in from your device to your computer. That is the function to set your device up to acquire data. You may want to look at the RFSA Acquire Continuous IQ.vi example to see how to set up a continuous read for your VSA.
For streaming, there is an example called RFSG Arbitrary Waveform Streaming.vi. This VI will let you continuously write a waveform from your RFSG device.
To do a continuous read/write between your VSA and VSG you will have to spend some time working on the code to get it exactly right. The example you mentioned is a starting point, but probably will not do exactly what you need it to as it is right now.