This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Phyphox editor Button send single value
#2
Hey,

unfortunately there is no simple way right now (its already on our todo list). As a workaround you can do it this way:
  • if a button is pressed, write a 1 into a data-pressed-buffer
  • an if-statement checks each analysis round if the data-pressed-buffer contains an 1
  • if true: write the data you would like to transfer into the outgoing buffer
  • if false: empty the outgoing buffer (if the outgoing buffer is empty - no data will be sent via ble) 
  • (re)set the data-pressed-buffer to 0 to prevent furter data transfers until the button was pressed again

Hope this is not too confusing Wink. As an example, check the attached phyphox-file which lets the user select different measurement intervals of an external sensor module. 

Cheers Dominik


Attached Files
.phyphox   MPRLS_configurable.phyphox (Size: 4.92 KB / Downloads: 361)
Reply


Messages In This Thread
Phyphox editor Button send single value - by vcbz - 10-21-2022, 11:47 AM
RE: Phyphox editor Button send single value - by Dominik Dorsel - 10-21-2022, 06:20 PM

Forum Jump: