Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make sure cwgraph display start and stop coordinate in log mode

Hi:

I use measurement studio 6 and VB6.I draw power spectrum vs freqency graphs with plotXvsY method in CWgraph.The freqency coordinate is displayed logarithmically.When frequency range is 2MHz to 30MHz,only 10MHz is displayed on the frequency coordinate.I also want to display the start(2MHz)and stop(30MHz) frequency on the frequency coordinate.How can I do that?
Thanks for your help!
0 Kudos
Message 1 of 6
(6,986 Views)
Create a new graph control in Measurement Studio. Right Click on the graph and select properties. Click on the Axis tab and uncheck AutoScale box and check the Log box. Ensure that the minimum is set to 1 and the maximum is set to 100. This should solve your problem.

Thank you
Nandini Subramaniam
NI
0 Kudos
Message 2 of 6
(6,964 Views)
Hi:

I do it acording above method ,but don't solve my problem. It's possible that I don't explain my ploblem clearly. In Power vs Frequency graph, frequency range is random. When I know the start and stop frequency, I use the method -CWGraph.axes(1).setMinMax start frequency ,stop frequency - to set frequency range, so that CWGraph only displays the frequency range. At the same time, I want to display start and stop frequency data such as 2 and 30 on the frequency coordinate. The frequency coordiate is also displayed logarithmically. How can I do that? Please help me!
Thanks for your help!
0 Kudos
Message 3 of 6
(6,953 Views)
If you go to Properties>>Ticks and check the Minors checkbox you will see ticks on the x-axis. So far that's the best I have seen with the graph control in log mode.

Thank you

Nandini
NI
0 Kudos
Message 4 of 6
(6,940 Views)
Hi:

Nandini,Thank you very much!
Can I print words on anywhere on the CWGraph control? If having ,please tell me the method in detail. Then I can print start frequency and stop frequency on the frequency coordinate.
Thanks!
0 Kudos
Message 5 of 6
(6,936 Views)
You can do this with annotations. For example:


  1. Right-click on the graph and click Properties to bring up the graph's property pages.

  2. Click the Annotations tab to configure the annotations of the graph.

  3. Click Add to add an annotation.

  4. Click the Text button to configure the annotation to only display text.

  5. Click the Caption tab to configure the annotation caption properties.

  6. Set the X Coordinate and Y Coordinate values to position the caption.



- Elton
0 Kudos
Message 6 of 6
(6,930 Views)