DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

why is Diadem DAC is slow when reading over TCP/IP?

Hi,
 
I wrote a small VB Script in order to comunicate with a Power Supply over TCP/IP in Diadem DAC, when I first run it, it works perfectly but if I I stop the program and run it again it is suddenly very slow. The only way to make it run normaly again is If I restart Diadem.
 
Am I closing my TCP/IP connection correctly? I am not sure what the problem could be.
 
thanks for your help
0 Kudos
Message 1 of 5
(5,074 Views)

Hi,

sorry, but I've no answer to this question but nearly the same problem.

I wrote a small Qt socket app. which provides a TCP-Server sending every 100 ms.

I'd like to have Diadem plotting the sent data - I setup a 25 ms refresh rate but

the actual refresh lasts for about 1 s!! The sent values seem to reach Diadem

but the processing needs very much time, hence the processor load goes

directly to 100% which seems to be very strange. I put my code for reading

the values into the TCP script driver template - SFD_ReadChannel method.

If comment out the "oUDIM.read()" the refresh is as expected, with the read

command everything slows down dramatically?

 

What's the mistake?

 

Best regards and thanks for your help...

0 Kudos
Message 2 of 5
(5,030 Views)
 

Hello both,

I think in both cases you´ve forgotten to program a delimiter.

For this you will find the download for the Script-Daq-driver with examples on

http://digital.ni.com/softlib.nsf/websearch/DEA1C36806CDB7C886256E45003A32B9?opendocument&node=132070_US 

Thanks,

Rebecca Fox
Applications Engineer
National Instruments
Message 3 of 5
(5,013 Views)

Thanks for your help Rebecca, I just added a delimiter and a time out to my script

Call oUDIM.ParamSet("Delimiter",vbCR+vbLF)
 Call oUDIM.ParamSet("Timeout",100)

John Fautsch

0 Kudos
Message 4 of 5
(5,002 Views)

Can you repost the document that you have for the VBS script driver for a TCP/IP device? Thank you very much

0 Kudos
Message 5 of 5
(4,123 Views)