Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Using different loops parallel

Hi everyone, i'm acquiring a data for interval of 1 sec and injecting the data into database for 5 min interval , for these two different kind of need, i went for master slave concept, this combination working perfectly.

But i have to transfer this data to third party application via modbus server.Third party application read the data only when it continuously transferring the input. 

Datatype i'm injecting into database and datatype i transferring via modbus server is different. so in this case i'm not able to use the modbus server block as separate slave loop.

So i'm try to use this server block  in master loop itself, due to continuous data transferring notification is not going to slave loops, I'm struggling lot here. Suggest me an idea to solve this issue.

Thanks in advance

0 Kudos
Message 1 of 5
(2,611 Views)

@praveenrajk wrote:

Datatype i'm injecting into database and datatype i transferring via modbus server is different. so in this case i'm not able to use the modbus server block as separate slave loop.


Different how?  If it is the same data, just formatted differently, then use the same Notifier in another loop to handle the Modbus.  The Modbus loop can do the translation as it receives the data/



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,598 Views)

It is the same data, but i have to send the data before swapping, that means the raw data i'm getting from meter.

If in case the only way is swapping again, please tell me how to swap it back as original value.

I tried to my knowledge but it send empty data at destination, tell me where i'm doing mistake.

I attached vi of re swapping. Suggest me any other idea also if that makes program, i will be thankful for you.

0 Kudos
Message 3 of 5
(2,586 Views)

Normally, you have to do some math to get the data into the 16 bits, typically a simple scale and maybe an offset to apply.  Where is the specification for how the data is stored in the Modbus registers?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,578 Views)

Here i attached the data format to be register in modbus register and the currently i'm getting values.

 

Download All
0 Kudos
Message 5 of 5
(2,573 Views)