08-08-2005 02:16 PM
@Perl Peril wrote:
But I've never seen the symbol in Altenbach and tbob's code. What does it do? Is it only in labview 7?
08-08-2005 02:20 PM
Oh, excuse me, my mistake. Credit where credit is due. Sorry to both fahlers and tst.
08-08-2005 02:25 PM
@tst wrote:
SOME ORDER, PLEASE!!!!
tbob's and Altenbach's second solution are identical to mine, so you can read my post.
The optimized code was not mine but Franz's (Way to go, Franz, 5 stars).
Sorry, tst, I did not see you post, only looked at the pictures ;).
08-08-2005 02:33 PM
08-08-2005 02:57 PM
SOME ORDER, PLEASE!!!!
tbob's and Altenbach's second solution are identical to mine, so you can read my post.
----------------------------------------------------------------------------------------------------------------
08-08-2005 03:22 PM - edited 08-08-2005 03:22 PM
@tbob wrote:
This is becoming a "race" condition...
Message Edited by altenbach on 08-08-2005 01:28 PM
08-08-2005 03:47 PM - edited 08-08-2005 03:47 PM
Altenbach,
Do I have miore details? Of course
, I'm writing the entire software interface!
Anyways, the instrument dumps lots and lots of data onto a UDP port in packets, each of 16384 bytes. The data is organized so that the first 16 bytes are header information (such as packet #, and start chars), the next four bytes represent a number for field A, the next eight bytes are 2 numbers for field B, the next four numbers are for A again, and it repeats until the end of the packet. Typically, I receive around 250 packets for each data file and all of the packets must be interpretted together to produce a spectrum. Currently, I wait for the first packet to be at the UDP port and then use a for loop to read off the remaining packets as specified in the headers. During the transfer, as little processing as possible is done so that we will not miss any packets (no hand shaking in UDP). The data is left in string format, and is simply concacenated together. All of the processing is then done (like what you have all helped me speed up) but must be done quickly so that the processor is free for the next data file.
If needed, I'll attach my actual vi's, but they may be hard to understand without an actual description of the entire instrument and data formats. Also, we are restricted here by a non-disclosure agreement. Thanks for any help you can offer,
PP
Oh, I forgot to mention that the ultimate goal is to plot the data for the user on a chart (I've been using a simple array)
Message Edited by Perl Peril on 08-08-2005 03:48 PM
08-08-2005 03:58 PM
08-09-2005 01:16 PM
Thanks Altenbach,
That information does seem useful, but I can't view the VI's!
I'm using Labview 6.1
If anyone has some free time and labview 7, would you mind posting the VI's in the thread Altenbach has suggested, as pictures? Thanks in advance,
PP
08-09-2005 03:49 PM