LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

kind of buffer problem

Hi out there!

Me again..

I have a programmately problem. I attached an analogous program to my real.

A special hardware sends data in portions with no sending data between the portions.
I want to collect the portions into one array in an parallell loop.

See file for more information.

Thanks Fredda
0 Kudos
Message 1 of 9
(2,695 Views)
The wait function in loop 2 should be 50 ms!
I forgot to change.

/Fred
0 Kudos
Message 2 of 9
(2,685 Views)
Hi Fred
You can use a queue:
loop 1: enque elements 1 by 1
loop 2: dequeue 1 elements

Take a look at theese links:

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9B9111EE034080020E74861&p_node=DZ52071&p_submitted=N&p_rank=&p_answer=&p_source=External

http://zone.ni.com/devzone/conceptd.nsf/webmain/C54BADADD8BBDE4286256C5200533B80?opendocument


Hope this helps

Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 3 of 9
(2,680 Views)
thanks, but cant see how this helps me?

/Fred
0 Kudos
Message 4 of 9
(2,671 Views)
if your problem is the fact that your file "all.txt" is blank
try with this solution :))
0 Kudos
Message 5 of 9
(2,664 Views)
You probably should carefully rethink your overall program design, but here is a quick and dirty solution to give you some ideas:

Remove the timing in the second loop, but place an event structure triggered by the number. In loop one, write to a signaling property of that number to trigger the event whenever new data occurs.

See attached (LabVIEW 7.0).
0 Kudos
Message 6 of 9
(2,651 Views)
Hi Fred
Well, perhaps I didn´t understand your problem.
I think the solution could be "queues". ( don´t care about file writing)


Greetings.
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 7 of 9
(2,639 Views)
Hi!
thanks for your tip!

The only problem is that the arrays from both loops in filewrite(open the writefiles)
differ a little. The second loops array doesnt exactly follow the array values from loop one!

Why?

Take a look at my attached file

/Fred
0 Kudos
Message 8 of 9
(2,624 Views)
HI!

Could you please describe in detail how you
used the property node for my program, dont get
how you made it work. Have not used it before.

/Fred
0 Kudos
Message 9 of 9
(2,618 Views)