LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New to labview - doing a serious project

I think the only way you are going to be able to solve this problem is to transmit a byte that indicates the framing of your data.  It may not need to be "A",  A's data, "B", B's data, "C" C's, data.  But a single byte at the beginning of all the data.
 
Start Byte,  A's Data, B's Data, C's Data.
 
That way you discard all data until you see the start byte, and you know that all data after that is lined up in order for each of your sensors.  One problem you may have is that if any sensor's data could have the valuse from 0 to 255, then there is no unique byte you could use as an indicator that the data is starting.  Your indicator byte would show up by chance among the normal data stream.  However, if you do the first method, you should be able to decode from a handul of bytes which are the indicator bytes and which are data.
 
One other thing.  I don't think you are using the millisecond timer correctly.  You have a 100 value wired in (make it U32 to get rid of the coercion dot.)  You have a wire coming out to your multiplication.  But that blue wire is not 100 but will be the current value of the internal millisecond timer, which is generally a very large number.  Put an indicator on that wire.  Look at it while running and you'll see what I mean.  Take a branch off the 100 constant before th millisecond timer and use that in your math.
Message 41 of 46
(1,531 Views)

Hi all

 

At the moment , I have gone back. And checking this system sending only one channel. I have noticed somwthing. Whilst intreaseing the AD input from 0 to 5V . As i monitor BCD output on PIC and BCD in LabView, (LV) (Picked straight from VISA READ). Their is a intresting thing happening... that is .... PIC's BCS goes over 8BCD LV's BCD resets to zero. same for PICS BCD going over 2^4, 2^5, 2^6 and 2^7.....

 Following Doc is the evidence....

 

 

 

 

...:::Cheers:::....
0 Kudos
Message 42 of 46
(1,485 Views)
Your attachment is missing.Smiley Wink
Message 43 of 46
(1,467 Views)

Probshooting file is where I changed BCD on pic.... and see trhe change in LV....

This change is monitored on the PIC and LV.... recorded..

 

5ms file is my attempt to see if the output of TX on PIC.... So i could determine whether the PIC is sending the right data??.. But dont sure how to read.. I basiclly using a CRO to monitor..... Not really helpfull to me since not sure whats happening here.... The start/stop bit and data bits were kinda hard to determeine...

...:::Cheers:::....
Download All
0 Kudos
Message 44 of 46
(1,458 Views)
Hi all, Multiplexing in LV, now that I clear that previous problem, which ended up being just a PIC programming thing. this multiplexing circuit is for 2chls of data from the PIC 1, 255 for IDing start of the sending process of the two chls 2, 66 3, 128 My attached block diagram has a problem... If i the IF 255 "=" to serial input then reset loop, doesn’t work properly.... I want It to this reset happens straight away.(instantly). Which obviously isn’t happening since the 255 data is turning up in the wrong chls display. Any help would be appreciated
...:::Cheers:::....
0 Kudos
Message 45 of 46
(1,370 Views)

Hi theseas,

 

Could you explain a little bit more clearly what problem you are running into, and what you want to achieve? Your posting was pretty confusing. Thanks! 

Rasheel
Message 46 of 46
(1,349 Views)