FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket calls from Fieldpoint - performance issues

I'm noticing that it takes A LONG TIME for the fieldpoint units to READ data from a Datasocket Server. My program is currently looping and reading 4 Datasocket Items from a server computer(in a for loop) but it takes around 3 seconds for this process to occur. Any suggestions as to how i can "speed" up these datasocket reads? Would using a different protocol (to read datasockets item) be quicker?

Regis
0 Kudos
Message 1 of 10
(4,639 Views)
Regis,

Instead of using the "Easy" DataSocket reads, use the DataSocket Primitives. These are the DataSocket Open, and DataSocket Close VIs. By using the DataSocket Open, you will get a DataSocket Refnum output that you should wire to the DataSocket Read (instead of the URL). This will keep the connections open, rather than opening/reading/closing every time. The Open and Close should be outside the loop. The first read may still be slow while the connection is established, but subsequent reads should be much faster.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 10
(4,636 Views)
ahh....thanks for the quick reply...i'll give this a shot.

Regis
0 Kudos
Message 3 of 10
(4,635 Views)
Opening and using the DS references instead of the higher level read/write Datasocket items,  the loop time dropped from 3 seconds to under 1 sec (about 750ms) making the response time more bearable....

Thanks Aaron.

Regis
0 Kudos
Message 4 of 10
(4,625 Views)
just out of curiosity,  would this technique work for OPC or logos calls using the DS Vi's?   Or just when using the datasocket server?

Regis


0 Kudos
Message 5 of 10
(4,594 Views)

It definitely works better for Logos calls, and should work better for OPC as well.

Regards,

Aaron

LabVIEW Champion, CLA, CPI
0 Kudos
Message 6 of 10
(4,586 Views)
"the loop time dropped from 3 seconds to under 1 sec (about 750ms)"

I wanted to mention that the 750ms was a pre-defined wait time i placed in the loop.  Without a wait time,  I dropped the loop time to about  80ms.

Also,  can anyone please help me with this issue?
Datasocket ReadWrite Mode


Message Edited by RegisPhilbin on 07-20-2005 11:00 AM

0 Kudos
Message 7 of 10
(4,552 Views)

Hi Regis-

If you have an additional question please post it here directly.  I am having trouble loading the page you linked to and I would prefer to have the entire Q&A here to keep all of our support and technical content held locally.

Thanks-

Tom W
National Instruments
0 Kudos
Message 8 of 10
(4,536 Views)
I have...its located here....Please check out the last message in the thread....

http://forums.ni.com/ni/board/message?board.id=170&message.id=70610

Regis
0 Kudos
Message 9 of 10
(4,535 Views)

Hi Regis-

Please check back in this thread for the answer to your question.

Thanks-

Tom W
National Instruments
0 Kudos
Message 10 of 10
(4,515 Views)