LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to separate data using serial port read.

I'm having difficulty in separating signal that come through the
serial port.
I'm using 4 weather sensor and I change the signal into digital signal
already.
The problem is, how can I separate the signal from going out as a
single output while i need to separate it as different signal.

I got an idea where the first byte of signal is belong to the first
sensor and so on, but how can I separate it.

I'm using the labview 6i (evaluation).

Thank.
0 Kudos
Message 1 of 8
(3,767 Views)
Here is an idea.

Collect the data coming from serial port and gather more than what you would expect for one update from all the sensors plus one extra update in to a buffer.

search through this buffer looking for what ever identifies an update from the first sensor. Once you know where one update is in the buffer, you can do some math to figure out where the data from each of the other sensors is.

Convert these updates to numerics and pass them along to wherever you need them in the code.

I would guess that this answer will still be short of what you need.

If you would be willing to clearly outline the format of the data you are collecting from the serial port,
and
what you want to do with it, I or others would be able to help you more.

Always inte
rsted in making gizmos talk,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 8
(3,767 Views)
The problem that I facing is a little bit difficult because I'm start
using this Labview software just about 3 week. Most of the information
that i needed, I found it on the net.

the idea of my project is to collect an analog signal form weather
sensors convert it to digital siganl send via com port to the program
that i developed using LAbView. I still can't find the correct
interface circuit (to transmit the digital signal) and my target is to
design it by myself.
That why i need help to separate the digital signal form going out as
one output.
I really need help how to configure the serial read.vi and anything
else in my project.
if anyone really want to help me you can email me at
anak_hashim@yahoo.com and i will try to send you the VI that i already
don
e.

Thanks,
0 Kudos
Message 3 of 8
(3,767 Views)
If you post your code to this exchange, we may be able to help.

Re: taking this discussion "off-line".
By interacting through this exchange, I can help you, as well as others some day in the future.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 8
(3,767 Views)
I really need a guide to the project to be completed .
so i'm hoping if somebody would be my GURU to guide me through this
completion of the project.

Regards Hafidz
0 Kudos
Message 5 of 8
(3,767 Views)
I will se if i can break this up into parts for you.

1) Figure out to continually read data from your devices. Don't worry at first about interpreting anything, that comes latter. Figure out how to put all the data read over time together in one large string. Just let it pile up for a while.

2) Next, start looking at your data very closely using a string indicator that is set for either "Slash codes" or Hex. May both, depends on what your data looks like. What you should be looking for in this data, is unique patterns that can be used for decoding. Examples would be
What starts a transmission?
What ends it?
What marks the difference between "Stations"?

3) At this point you may want to come back to this forum and ask for recomendations on how to decode a spe
cific pattern that you found. Otherwise you should figure a rule or set of rules that let you pull out the parts you are after. Once you have the individual parts pulled you should be where I think you are trying to go.


If you have more questions, please reply or re-post, and I will try to clarify whatever you need help with. I can not reply prompt or regular replies, my first obligation is with my customers.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 8
(3,767 Views)
Ben,
The problem is I need to view a real time data from the serial port.
because of that i need to refresh the result within than one second.
I think i dont have enough time to check the similarities between the
data.

I got an idea where i will use a timer circuit at the interface
circuit. Can you show me how to separate it according to timng method.

Thanks Ben for your help.

regards Hafidz
0 Kudos
Message 7 of 8
(3,767 Views)
My previous post outlined how to solve your problem in small incremental steps.

If you follow my suggestions, you should end up with an app that displays that data as fast as it comes in.

I outlined as I did so that no one task was to complicated.

For me to help further I need more info about your data. This is what I wanted you to get by following my outline.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 8
(3,767 Views)