LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change buffer into number?

Hello to all,

I am doing a GPIB programming right now. In a condition I never met before, I do not know how to transfer buffer into number because now the output of my program is a buffer, but I need to do some mathematical operations to the output, so I need to change it into number! I searched the online reference, but I found myself totally lost. Could anyone help? Thanks in advance!

Best,
Fan

--
Fan Zhang
Dept of Physics and Astronomy
University of Pennsylvania

-----" A journey of a thousand miles must begin with a single step."
0 Kudos
Message 1 of 3
(2,831 Views)
What kind of buffer? If it is an array of characters as bytes, there is a
conversion function from bytes to string. If it is a string containing the
ASCII representation of the number then you want to use one of the string to
number parse functions in the string pallete. The specifc function depends
on the string you are trying to parse.
Stu


Fan Zhang wrote in message
news:94i5an$rut$1@netnews.upenn.edu...
Hello to all,

I am doing a GPIB programming right now. In a condition I never met before,
I do not know how to transfer buffer into number because now the output of
my program is a buffer, but I need to do some mathematical operations to the
output, so I need to change it into number! I searched the online reference,
but I
found myself totally lost. Could anyone help? Thanks in advance!

Best,
Fan

--
Fan Zhang
Dept of Physics and Astronomy
University of Pennsylvania

-----" A journey of a thousand miles must begin with a single step."
0 Kudos
Message 2 of 3
(2,831 Views)
Hello,
unfortunately I am not sure
that you need this program,
but you can change it into number.
See attached file called FIFO_WO_LocalVar2_6i.vi (version LabVIEW 6i)
Best Regards
Mike

Fan Zhang wrote:

> Hello to all, I am doing a GPIB programming right now. In a condition
> I never met before, I do not know how to transfer buffer into number
> because now the output of my program is a buffer, but I need to do
> some mathematical operations to the output, so I need to change it
> into number! I searched the online reference, but I found myself
> totally lost. Could anyone help? Thanks in advance! Best,Fan
> --
> Fan Zhang
> Dept of Physics and Astronomy
> University of Pennsylvania -----" A journey of a thousand miles
> must begin with a single step."
0 Kudos
Message 3 of 3
(2,831 Views)