LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating using datasocket

Hiya,
 
I have 2 VI's. The first calculates the cost of electricity based on a lookup table which says how much a unit of electricity costs at any given time. With the second I want to be able to set the values of the lookup table.
 
Currently I'm using datasocket to transmit the lookup table to the first VI, however, this is very slow. It seems to take an age to read the datasocket and so the rest of the VI runs slowly.
 
Ideally what I'd like is...if nothing has been changed in the lookup table then the first VI will use the table from the first VI. If there is a change the table in the first VI will be updated from second VI and then disconnected so that the VI is not continually reading.
 
Any suggestions?
 
Cheers,
 
Richard
P.S. I'm using LV 7.1
0 Kudos
Message 1 of 2
(2,397 Views)
Hi Richard,

Where and how is your lookup table stored? How are you transmitting it with DataSocket? element by element or all at once? Is it possible to send in some example code that reproduces this?

Regards

Jon B
Applications Engineer
NI UK
0 Kudos
Message 2 of 2
(2,380 Views)