LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

power sweep

Dears,

 

I am doing power sweep by using labview let's say between -20 dBM and -30dBm , and the number of steps is 10, I am using ramp function to do that, as mentioned in the left top graph.

In the opposite side, the top graph shows me the avarage power level for the whole steps versus the frequency, I was wandering if there is a way to show the powr value at each single step versus the frequency instead of show the whole values together in one graph? Thanks in advance

 

Your response is highly appreciated 

 

Regards

 

0 Kudos
Message 1 of 9
(3,600 Views)

It's all going to depend on how you have coded it so far. You could take data and update the graph at every step, with some delay in between long enough for you to see the values, or you could plot all 10 on the same graph (might look a little messy).

 

If you post your code (in LabVIEW 2014 or lower) I can take a look and try to advise on any changes to make.

Message 2 of 9
(3,595 Views)

As gregoryj says without viewing your code it is hard to make suggestions.

 

Just wondering, is there a specific reason for doing power sweeps (it is usally use for gain/compression measurement)? If there is no special reason you could just perform frequency sweeps at the desired power of interest.

 

Ben64

Message 3 of 9
(3,574 Views)

Dear Gregory,

 

Thanks for your feedback. Kindly have a look for the attached code. Thanks in advance

 

Regads

0 Kudos
Message 4 of 9
(3,567 Views)

Dear Ben,

 

I am so grateful to your comment, Please have a look for the attached code, By the way I did the power sweep, becasue I have been told to implement this and check the dynamic range with each step, Thanks again

0 Kudos
Message 5 of 9
(3,559 Views)

Well, the good news is that you already (kind of) have a state machine, meaning you use the enum to control which case you execute. The bad news is that there is only 1 state to run your entire test, which makes it not very flexible at all. One clue that your states are too big is that your diagram way overfills the monitor.

 

To start, you will want to break your states into much smaller chunks. This will be up to you, but might include: Initialize Instrument, Create Ramp, Begin Ramp, Set Power, Read Data, Update UI, End Test, Close Instrument.

 

Since you are already using a queue, you can enqueue the next state at the end of each case.

 

A couple of unrelated notes:

 

You do not need to name your queue. Especially with an empty string. If you tried to make another queue this way, it would obtain the exact same queue and you would only have 1 queue.

 

You do not need to unbundle the status of the error clusters, you can wire them directly to the stop condition, (though a better way is to have an "exit" case so that you stop in a safe state).

 

Even though you have too many functions in the same state, the code could be compressed a lot with more careful wiring. A little organization goes a long way for readability.

0 Kudos
Message 6 of 9
(3,548 Views)

Thank Gregoryj for your advices, I will try my best to follow it, By the way, I ahve a nother version from this code which is more orgnized and combined many steps in small VI(S), but I couldn't attache it because I have to attach all the VI with it, Therfore I simplified it and send it like this. Thanks again for your concern.

 

Regards

0 Kudos
Message 7 of 9
(3,538 Views)

Sure thing, here is a way to send all your VIs in a zip file:

 

save as zip.png

Message 8 of 9
(3,532 Views)

ooh it is a good way to do this.. thank you so much

0 Kudos
Message 9 of 9
(3,522 Views)