LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i convert string display number to number ?

Hello !
Could you please tell me how to convert string display number into number ?
Here let me explain what i mean :
I'm using SR830  Lock-in Amplifier to mearsure gm( Transconductance) of MOSFET.  we need the  Vout value of MOSFET which we set it up to be displayed on SR830 Lock-in Amp. We need this Vout to put into formula (gm = (Vout/Vin)/R_load) to calculate gm, but the Vout display is type of string ( i think) because it is purple, therefore i use "decimal string to number" function to convert to number to use above formula. However i used probe to check the Vout, it is zero all the time.
If you look at the block diagram, you probably understand more.
Ti Nguyen
0 Kudos
Message 1 of 4
(2,731 Views)
Hello Ti Nguyen!
In functions Palette, all functions, String, String/Number Conversion, Fract/Exp String to number you can find the function that you want.
The function that you used converts a string in a integer and maybe your number is very small.
 
Regards
0 Kudos
Message 2 of 4
(2,725 Views)
Hi,
 
Saw your VI,
would like to add to Carmo's answer.
 
Also see what repsesentation you would like to give to your string to numeric conversion
 
probably you would want it in double
 
Regards
 
Dev
 
 
0 Kudos
Message 3 of 4
(2,696 Views)
A very big clue to solving the problem yourself is that the output of the function you used has a blue wire. Blue wires/controls/indicators are integers. Orange ones are floating point numbers. You should also program with Context Help turned on (from the Help menu). The help window says it converts a string "to a decimal integer".
0 Kudos
Message 4 of 4
(2,674 Views)