How can I get the pidSV value and send the value out through websockets ? #866
-
Hi ALL guys: here is my artisan-settings : M1artisan-settings_websockets.zip I try to set Events 'TargetC' to control the drummer heating target temperature . And I also set two button "TargetC web" and "TargetC pidsv" to send out commands ,but not work out .I mean send the command function is OK ,but the button only can send the fixed value ,Target temperature will be adjust in the roast process . So I try to setup a slider bar . the slider bar send command separately (pidSV and websocket -send()) the value is OK ,the Drummer react correctly .But I can not send the value in the same time ,so that the pidSV can not sync with the websockets command . HOW CAN I pass through the pidSV value to the websocket -send( ) command ? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I don't understand your project at all, but note that those Command strings accept sequences of commands separated by semicolon. Thus you can use something like this
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer!!! My (Kaleido M1) roaster control board can hold the target temperature by itself(Internal PID controller), all I need to do is send a target temperature through websocket command. For your understanding , just like Arduino TC4 ,In the PID background mode Artisan working like this : 1.Artisan load a background curves ,and then Artisan send out Serial command "PID,SV,90" , the target BT 90 degree In my case my roaster what it doing is same as TC4 receive command "PID,SV,xxx", The roaster need to know the PID SV ,which is the most important parms,Artisan can send "PID,SV,xxx" to TC4 . workflow like this: But I don't how to send a "PID,SV,xxx" in websocket command , or websocket can doing like or not ? p.s MANY THANKS again!!! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Just Mark down the Answer:
Artisan has the possibility to send out a custom command at regular time intervals or at every sampling step. This is configured in the Events tab (
Config >> Events
, 1st tab). If you choose there to send out a WebSocket with the following specificationArtisan will send out the background profiles current BT reading (bound to the variable
{BTB}
).With this Artisan will send out something like this to the connected WebSocket:
In case Artisan is not recording or there is no background profile data available it will send out
-1
.After coding and Testing , Now is working , Look at …