LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

when i enter the 2nd data it replaces the 1st one

12.png

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

0 Kudos
Message 1 of 13
(3,705 Views)

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 😛

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 Kudos
Message 2 of 13
(3,704 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 13
(3,687 Views)

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

0 Kudos
Message 4 of 13
(3,670 Views)

thanks i think it's the solution but why it repeats the same data again and againprob.png

0 Kudos
Message 6 of 13
(3,614 Views)

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.

 

 

 

 

0 Kudos
Message 7 of 13
(3,608 Views)

here is a snapshot of the vi,where exactly i have to remove sending data continuously15.png

0 Kudos
Message 8 of 13
(3,599 Views)

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..

0 Kudos
Message 9 of 13
(3,584 Views)

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

NEW.png

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

0 Kudos
Message 10 of 13
(3,561 Views)