07-08-2012 05:18 AM
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
07-08-2012 07:19 AM
@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.
@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?
07-08-2012 08:21 AM
first thz for reply smercurio_fc.
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
07-08-2012 11:10 AM
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?
07-08-2012 11:51 AM
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.
07-08-2012 12:03 PM - edited 07-08-2012 12:07 PM
Dennis_Knutson sorry type wrong is Proteus. in labview i alredy set to hex display but what i c is everytime the hex value gv me the diff no even i just put in a constant dc vol. but in proteus i connect the pic tx pin with heperterminal it show me a correct ADC value
07-08-2012 12:29 PM
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.
07-08-2012 08:47 PM