Read Input and Output Data in the same time using piTest

Topics about the Software of Revolution Pi
Post Reply
aasparamithamp
Posts: 1
Joined: 22 Feb 2018, 03:42

Read Input and Output Data in the same time using piTest

Post by aasparamithamp »

Dear Kunbus, i need help on piTest to read both input and output data in the same time.
Since the read command seems only to read one Input or Output in a time (If i am not mistaken).
I need this to collect data for making dashboards of PID control
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: Read Input and Output Data in the same time using piTest

Post by volker »

Which method are you using to access the values?
Are you talking about piTest on command line or are you talking about C or Python access as shown in the tutorials? Or are you talking about logi.CAD?
You can always read and work with the complete 4 kB process image as a whole block and reading it is also consistent for your application, i.e. nothing changes in the process image while reading a block of data. When reading the process image using the picontrol driver (i.e. using Python or C or Java etc.) there is no difference between inputs or outputs. Same with piControl if you use -r 4096 you will get the complete data including in- and outputs.
Unser RevPi Motto: Don't just claim it - make it!
Post Reply