LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp problem

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

0 Kudos
Message 21 of 28
(1,710 Views)
Dear Altenbach,

Can you please check this program.
Do let me know if I still not doing it right.

Thanks
Hussin
0 Kudos
Message 22 of 28
(1,688 Views)

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.

  1. Take your example VI and run it so the "Data String Read" indicator contains some real data.
  2. Right-click on that indicator and do a "data operation...make current value default".
  3. Delete everything except that indicator.
  4. save the VI under a new name
  5. attach it here.
Message 23 of 28
(1,686 Views)

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

Download All
0 Kudos
Message 24 of 28
(1,665 Views)

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

 

0 Kudos
Message 25 of 28
(1,654 Views)

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

0 Kudos
Message 26 of 28
(1,623 Views)

Here the correct vi,

Cheers!

Hussin

0 Kudos
Message 27 of 28
(1,621 Views)

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.

0 Kudos
Message 28 of 28
(1,604 Views)