04-08-2014 02:40 PM
when i enter the 2nd data it replaces the 1st one,consequently i losed it.if someone know how i can enter multiple data and save each one in a specific row without losing any data
thanks
04-08-2014
02:42 PM
- last edited on
05-06-2025
06:01 PM
by
Content Cleaner
Please upload the actual VI or create a VI Snippet. This will allow us to help you much more. A small picture is very hard to debug 😛
04-08-2014 03:21 PM - edited 04-08-2014 03:23 PM
Hi achfire,
you need to go through LabVIEW basics (as offered by NI on their website)!
Then you will use shift registers to keep values from previous iterations of a loop…
Btw. your problem is expected behaviour for your VI as soon as you start THINKing DATAFLOW!
04-08-2014 05:06 PM
i want to write data in "emetteur-cluster.vi" and "emetteur-cluster1.vi" get them in a table in "recepteur-cluster.vi" without losing the data i entered in the 1st place
04-08-2014 08:11 PM
try this....
04-09-2014 02:50 AM
thanks i think it's the solution but why it repeats the same data again and again
04-09-2014 03:13 AM
Because the other end is probably sending data continuously. How often do you change the controls on the sender?
Also, the sender should only send data when the values change, and not continuously.
Note that I placed a 500ms delay, meaning that you'll probably overflow the buffer (produces runs much faster than consumer and if you chanve the producer values, it will take a long time until the new data shows up!).
Remove that delay.
You should also not append any data to the table if the read function times out, etc. ... add some other error handling.
04-09-2014 04:06 AM
here is a snapshot of the vi,where exactly i have to remove sending data continuously
04-09-2014 07:19 AM - edited 04-09-2014 07:19 AM
This VI is not sending anything. It only receives data over the network. In your original message, you attached two different sender VIs. You need to modify whatever is sending the data. Right?
If this is still confusing to you, maybe you should go back to same basic LabVIEW tutorials..
04-09-2014 12:06 PM - edited 04-09-2014 12:06 PM
i was wondering if i will use a lot of clients(for example 2) do i have to use 2 sources not 1 in the Vi.
now i have in source1:dstp://localhost/emetteur1
source2:dstp://localhost/emetteur2
instead of having 1 source used for all clients:dstp://localhost/emetteur.
i'm really confused
and for sending continuously,i have to do it,because each client will not send data just 1 time.i think i missed something in the vi you gave me.what i'm expecting to have is when a client enter"nom- prenom-n candidat" in "emetteur.vi" i"ll see them in a table 1 time in 'recepteur.vi" and when a client enter "nom- prenom-n candidat" in "emetteur1.vi" i'll see them in the 2nd row of the table in "recepteur.vi" and so on.a lof of clients and one receiver without repeating data in reception