RF Measurement Devices

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ from a Rohde & Swartz (handheld) spectrum analyzer using Labview

Hi Izum,

I looked at your code, and I believe I see why you are only getting 8 characters each read.  You have the value of 8 wired into the "data bits" input of the configure serial port VI, which is correct, because each byte of data has 8 bits.  However, you also have this input of 8 wired into the byte count input of the VISA Read.  This input tells the read how many bytes, or characters in this case, to read in.  If you want more characters read, simply create a separate input for this byte count, and put in however many characters/bytes you want to read!

Hope this helps!

john
Message 31 of 35
(5,780 Views)
Yes! That helped, but why is it when I connect the output of the string subset to a Labview Measurement file it gives me an error saying that I have connected two different terminals. I would like this information to go to a Labview Measurement file. How would I do that? Am I connecting the wrong wires?

-Andrew
0 Kudos
Message 32 of 35
(5,772 Views)
The LVM VI is expecting a numeric data type, not a string.  You are reading in a number, but it is currently in a string format.  You can use the string to number conversion functions (found in the String palette under String/Number conversions) to change this string into a number (a blue or orange wire represents a number, a pink thick wire represents a string).  You can then wire this numeric data type into the LVM VI.

john
0 Kudos
Message 33 of 35
(5,766 Views)
Question ... I am reading an instruemnt and I am getting a value that I want, but I would like to read teh instrument again and get another value so that I can find the average because the value is always changing a little. Is it possible to save a value for a little while so that I can get another value so that I can do some arithmetic to it?

-Andrew
0 Kudos
Message 34 of 35
(5,741 Views)

Hi Andrew:

One solution may be to build an array.  If you are using a while loop you can use shift registers to build an array and therefore save "old" data.  I have included a small example that I threw together than may help you out, and better explain what I mean.

Emilie S.

0 Kudos
Message 35 of 35
(5,732 Views)