04-12-2007 11:17 AM
Hi Altenbach,
I require LABVIEW to construct a graph to be displayed on screen using the data that it accepts from an input. The input is in the form of raw binary digits. This binary data is accepted by the PC running LABVIEW through its serial port. Therefore, the data being received is 7 bits followed by a stop bit. Is LABVIEW capable of converting the 7-bit binary data into ASCII? How is this process possible? Is this done automatically by LABVIEW?
Regards
04-12-2007 04:59 PM
04-12-2007 06:20 PM
You don't seem to understand that "raw binary digits" is not some industry standard, but can mean anything from an array of complex numbers to BCD digits. It does not mean anything specific!
What program generates these strings on the other end of the serial line? Is it also LabVIEW based? If it is a piece of hardware, you need to read the manual where they explain the format and arrangment of bits and how to interpret them. This cannot be done by guessing because there are millions of different possibilities. Do you have a link to an online manual?
We cannot even try to guess, because you still haven't supplied us with a typical string as received from the device.
04-13-2007 11:38 AM
Hi ALtenbach,
Here I attach the string that I obtain from the serial.
I also include the pdf file of the PIC device.
Hope you can guide me to solve this problem
Thanks for your helps,
Hussin
04-13-2007 01:12 PM
Hi Altenbach,
Here I attach the string that I obtained from the input of DC voltage.
I compare the string with the table 8 bit ASCII.
Therefore, how I'm going to change this character to type cast it into waveform?
regards,
Hussin
04-17-2007 08:54 AM
Dear Altenbach,
I already type cast the string and try to display it in waveform.
But the waveform doesn't give me a sine wave.
Here I attach the vi which so the output.
Can you help me on this please.
Thanks
Hussin
04-17-2007 09:03 AM
Here the correct vi,
Cheers!
Hussin
04-17-2007 03:36 PM
Your VI and the data makes very little sense.
DATA: the data seems very repetitive. No way to get a sine out of it. What command did you send to get it?
VI: Why do you run a second loop reading the local variable and updating graphs indicators millions of times per second? That code belongs in the read case of the upper loop so these things are only updated when new data arrives.