Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting integer values from visa serial read

Solved!
Go to solution

Hi Wayne,

 

I have managed to get hold of the some values coming out of the gamma meter. Please have a look and let me know if you can see a solution to the problem above? The only way I can see is to actually implement a lookup table.

 

regards

Harshil.

0 Kudos
Message 11 of 19
(3,021 Views)
Solution
Accepted by topic author hkhiroya

COM analysis attached.

Message 12 of 19
(2,980 Views)

hi, i have a problem, i used visa read serial to read a Temp value and i road it, but i cann't draw it in a chart. could you please help me to solve this problem.

i attached the VI.

0 Kudos
Message 13 of 19
(2,700 Views)

You don't have a chart in your program so perhaps that is why you can't draw anything?Smiley Wink

 

Exactly what is the problem? When you do have a chart, you will be displaying all 5 bytes that you read. If all 5 bytes are correct in the array indicator, then they must be correct on the chart since they are the same values. Do you need to combine or separate them?

 

p.s. Place your initialize com port and VISA close outside the loop.

0 Kudos
Message 14 of 19
(2,697 Views)

i used a simulation program called "proteus" and send a value = 5V through a virtual serial to serial,  the problem was i road a 5 bytes as string (= 4.995) by the Labview and if i would like to draw a chart i must convert the 5 bytes as a string to an array to draw a DC value on the chart.

 

when i use a string to float then i put a chart the chart appeare as an AC values not a DC value.

or when i use a string to unsign byte array the chart appeare as an AC values not a DC value.

 

i attaced the vi.

Download All
0 Kudos
Message 15 of 19
(2,682 Views)

If you are getting '4.995' in the string indicator, then the Fract/Exp String to Number will work and you simply wire the chart up to it's output. Doing the conversion to a byte array is not at all required.

 

If you continue to have problems, run the VI and then go to  Edit>Make Current Values Default. Save the VI and attach it.

 

p.s. You still have not fixed the location of the VISA Configure Serial Port/VISA Close and the use of the sequnce structure is just not needed at all.

0 Kudos
Message 16 of 19
(2,671 Views)

i cann't understand this expression "Fract/Exp String to Number" would you please explain more and if there is an icon do that please send to me the name of the icon.

 

many thanks.

 

 

0 Kudos
Message 17 of 19
(2,658 Views)

The name of the function IS Fract/Exp String to Number.Scan From String will also work. What function were you using to convert from a string?

 

When you have the functions palette open, see the search button? Use that if you don't know where the function is.

Message 18 of 19
(2,654 Views)

First i would like to thanke you for your help, and i found the Fract/Exp String to Number Icon.

 

another time many thanks.

 

0 Kudos
Message 19 of 19
(2,653 Views)