LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intensity graph Yscale markervalues query

I'm plotting intensity as a function of frequency against time on an intensity chart.

 

Frequency is on the Y axis & time on the X as per the attached spectrum.

 

When I load the data into the plot, I get X & Y values starting from 0. For the X axis, I just use the offset & multiplier property nodex for the x axis. Time increases from left to right, so all is good there. My problems arise with the Y axis.

 

I have 100 channels of data to display. The bottom of the plot needs to display the highest frequency & the top of the plot, the lowest. Currently the Y axis displays 0 to 100. To add spice to the thing, there are gaps in the frequencies as I do not use some due to local RFI. For example Channel 19 might represent a frequency of 2300MHz, 20 - 2310MHz, 21 - 2320MHz, but Channel 22 might represent 2480Mhxz,  & channel 23 - 2490MHz.

 

I'd like to display the actual frequencies used instead of channel numbers. I thought the Yscale.MarkerValues property was going to do the trick, but it does not work as expected. I'm feeding it an array of frequency values in the hope that these would replace the 0 - 100 text I currently have. I've tried this with the Y scale arbitary markings on & off to no avail. 

 

Anyone have any ideas?

 

Thanks,

 

Joe

 

 

0 Kudos
Message 1 of 3
(2,438 Views)

Joe,

 

The intensity graph and chart use the indexes of the X and Y arrays as the values for the axes.  This makes it much tougher to get a customized display.

 

One way is to place an array of strings on the graph. I used the Classic style array and the simple string indicator because they are somewhat easier to manipulate the appearance. I left the Index display visible to emphasize that an array was there. You would hide that for the final version.

 

Lynn

0 Kudos
Message 2 of 3
(2,414 Views)

I can give that a go Lynn. I guess what you are saying is that the marker values property will not operate as I am expecting? If not, then what are they for I wonder?

 

Thanks,

 

Joe

0 Kudos
Message 3 of 3
(2,411 Views)