LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help here for the HEX value

Hi all, I am new in Labview I have manage to finish my visa protocol with PIC and the read string block manage to show me some value. But I dun understand how to read those value as display in HEX. 

 

Here my description of my project, I need to use Labview for voltage and current measurement and communication with RS232.

 

thz

0 Kudos
Message 1 of 8
(2,897 Views)

@darksun wrote:

Here my description of my project, I need to use Labview for voltage and current measurement and communication with RS232.


That's not a description. That's a task. Smiley Wink

 


@darksun wrote:

Hi all, I am new in Labview I have manage to finish my visa protocol with PIC and the read string block manage to show me some value. But I dun understand how to read those value as display in HEX.


If you are receiving raw hex values, then on the LabVIEW side you need to use Type Cast to convert the string to a number. You may also need to split the string up, depending on how the data has been formatted on the PIC side. You will need to provide more specific information as to the format of this string that you are receiving from the PIC. For example, are you sending a single voltage measurement and then a current measurement? Are the 32-bit floats? 64-bit floats? Is there a separator between them? Is this continuous? If so, how do you know where the data starts?

0 Kudos
Message 2 of 8
(2,890 Views)

first thz for reply 

 

At the PIC side I am send my ADC data in a array form of 50. I use Labview to measure my DC generator motor output and I am sending 8-bits data.

 

Sumo what do you mean bout the the 32-bit floats? 64-bit floats. What the different? I duno understand bout it. 

 

Thz

0 Kudos
Message 3 of 8
(2,882 Views)

meanwhile i also facing another problem, whn i simulate my code in protues it run fine it gv the adc value tht i need but when i simulate in real time using hyperterminal i face a problem where by it dint even show me a correct adc value. can i know how can this happen? 

0 Kudos
Message 4 of 8
(2,869 Views)

I don't know what protues is. Do you mean Proteus?

 

In any case, if you cannot see correct values in Hyperterminal, you will not see correct values in LabVIEW. I don't remember how to display hex values in Hyperterminal. Are you sure you have that set correctly? Are you sure of the com settings? In LabVIEW, if you are using the Basic Serial Write and Read example, you would need to right click on the string indicator and select Hex Display.

0 Kudos
Message 5 of 8
(2,865 Views)

0 Kudos
Message 6 of 8
(2,860 Views)

Since real time Hyperterminal and LabVIEW both show 'incorrect values', the problem probably is at the PIC side then. I can't help with that, especially since you have not included the program for the PIC. If you did that, perhaps someone can spot the mistake.

0 Kudos
Message 7 of 8
(2,852 Views)

Darksun,'

 

Please read A plea for full words.  Your posts are difficult to read.

0 Kudos
Message 8 of 8
(2,840 Views)