Jump to content

Best way for data acquisition form UniStream to PC on win10


Recommended Posts

Hi, 

I consider few ways to get 100 variables every second from USC-B10-TR22:

1.  Create DataTable on SD card, and then get it through FTP server

2. Get data via MODBUS

3. Use any OPC client

When I tested first way, there was problems with accurate timming.
I forced creating line in SD file with data every 0.8s, and average time
was around 0.8s, but varied between 0.6 and 1.4s

Second way seems to be ok, but using Python's modbus library also occured some 
timming mismatch. Average was also ok, but again varied between similiar values. 
I'm not sure, but it also can be Python's library problem, because it is me 
first time with this library. 

So far I don't have any experience with OPC and I would like to know is it right 
way or not.

I also tried DataSampler, but it is limited by amount of variables saved with 
one DataSampler, so I discontinued this way. 

Link to post
Share on other sites

hi damiankk,

in my opinion with 100 variables you can use the modbus way...what you have to be sure is that at the PC side the python scrip has to use an asynchronous method.

I am not so deeply inside python but I found THIS example about how to implement an async modbus_TCP_client.

  • Like 1
Link to post
Share on other sites

orso2p001

Is you link for Linux-like PCs?

"#!/usr/bin/env python"

damiankk - How about to use SQL database connection?

You can create data table and add records with time stamp.

Then use this information as you wish.

B.R.

 

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...