Coop wrote:
> Hi guys,
>
> I am writing you back because I tried the two solutions that you
> offered to me (with and without loop) and I think the problem still
> exists. This time I attached simpler example and you can see what I
> mean.
>
> I am trying to read all the pressure levels at all 8 channels of my
> multi-gauge. Inside of the loop you will see the string constant that
> represents the pressure levels read from the VISA read.
>
> Now that I have read all pressures I have to display all 8 gauges
> seperatelly so that's why I am using String Subset and storing data in
> 8 different indicators. This mechanism works well but the only problem
> that remains is how to display string eg. 1435 00 as 1.435E+00.
>
> If I use the two examples that you suggested it will convert it
> properly only if the input string is set to hex display and then the
> 1435 00 is typed in. In this case it does convert it right into
> 1.435E+00.
>
> But the string that I receive from VISA read or the string constant
> that I use in this example can not be changed between normal and hex
> display. Therefore when 1435 00 enters the convert subVI it converts
> it to 3.134E+33.
If the string in the example is exactly what you get from VISA this
means you are not getting binary strings from your instrument but simply
text strings. The difference between these are double the number of
bytes. As you have always claimed that the numbers you say were the ones
needed when the string control was set to show hex Display we did assume
that that was what you wanted. If the string you have in your test
example is really what you get then of course our assumption was all wrong.
So the question is if you use VISA Read and display the received string
in a string indicator which has been configured to show "Normal Display"
what do you see? If you see all numbers you are receiving a text string
with hexadecimal formated numbers. If you see lots of squares and spaces
and a few normal characters you receive a binary string.
Depending on that we can look further.
Rolf Kalbermatter