Announcement

Collapse
No announcement yet.

Wii Balance Board

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wii Balance Board

    Hi Everyone, I would like to use OSCulator to simply record the values of the balance board to a data file (ascii, binary, etc). Does anyone know how to do this. I have the balance board talking oscillator, but I do not know how to output the data to a file.

    Thank you,

    Nicholas Port

  • #2
    Hi Nicholas,

    If you start OSCulator from the command line, then you can use the event "System / Console Log" to output message as text. For example if you type these two commands in Terminal:

    cd /Applications/OSCulator\ ƒ/
    ./OSCulator.app/Contents/MacOS/OSCulator
    This will output:

    2014-07-25 11:41:47.790 OSCulator[98687:507] /test: 1.000000
    2014-07-25 11:41:47.892 OSCulator[98687:507] /test: 0.000000
    2014-07-25 11:41:48.351 OSCulator[98687:507] /test: 1.000000
    You can also output the log to a file, the command would be:

    ./OSCulator.app/Contents/MacOS/OSCulator > ~/mylog.txt

    If you need more structured data, you can use a program like PureData. OSCulator is configured to route OSC messages to PureData and PureData records them to a file. There is also the application OSCseq that displays OSC messages graphically.

    Best,
    Camille

    Comment


    • #3
      Do not see anything in the Console Log or Text File

      Hi

      Thanks for your Help Camille. OSCulator seems to start fine from the console, as you recommended. However, I do not seem anything in the Console Log, nor do I see anything when I pipe it to a text file. I took a screen grab, do you have any suggestions about what I'm doing wrong ? I'm using the latest OSCulator and OSX 10.8.5. - Thank you - Nicholas Port


      For Camille.jpg


      Originally posted by camille View Post
      Hi Nicholas,

      If you start OSCulator from the command line, then you can use the event "System / Console Log" to output message as text. For example if you type these two commands in Terminal:



      This will output:



      You can also output the log to a file, the command would be:




      If you need more structured data, you can use a program like PureData. OSCulator is configured to route OSC messages to PureData and PureData records them to a file. There is also the application OSCseq that displays OSC messages graphically.

      Best,
      Camille

      Comment


      • #4
        Hello Nicholas,

        In order to do "something", you need to tell OSCulator what event it must trigger in response to incoming OSC messages.

        In your case, you need to choose the event type "System" then choose in the value column "Console Log".

        More information can be found in the manual (in the Help menu).

        Cam

        Comment


        • #5
          Hi

          Thanks again Camille, your help is awsome . I followed your instruction best I could. I was able to send wii balance values to the unix console and log console. The values made sense. I save a settings file and I'm able to load it from the command line. So my remaining problem is the unix redirect. I use the ">" command and it creates the file. However the file is empty and the balance board values continue to stream to the unix console. Here is the output. It includes 1) some of the streaming values from the wii balance board via OSCulator, 2) a "ls" directory list with the zero byte file last, and 3) the unix command line I ran to try to redirect the output of OSCulator to the file "test1.txt" Regular redirects do work on my computer (Eg. "ls -ltr > text2.txt") Any suggestions

          2014-08-03 23:13:25.092 OSCulator[44359:707] /wii/1/balance [3: top right]: 0.121185
          2014-08-03 23:13:25.093 OSCulator[44359:707] /wii/1/balance [0: bottom left]: 0.476379
          2014-08-03 23:13:25.094 OSCulator[44359:707] /wii/1/balance [1: bottom right]: 0.355077
          2014-08-03 23:13:25.094 OSCulator[44359:707] /wii/1/balance [2: top left]: 0.207800
          2014-08-03 23:13:25.094 OSCulator[44359:707] /wii/1/balance [3: top right]: 0.123740
          2014-08-03 23:13:25.116 OSCulator[44359:707] /wii/1/balance [0: bottom left]: 0.472389
          2014-08-03 23:13:25.116 OSCulator[44359:707] /wii/1/balance [1: bottom right]: 0.361069
          2014-08-03 23:13:25.117 OSCulator[44359:707] /wii/1/balance [2: top left]: 0.206323
          2014-08-03 23:13:25.117 OSCulator[44359:707] /wii/1/balance [3: top right]: 0.126956
          2014-08-03 23:13:25.125 OSCulator[44359:707] /wii/1/balance [0: bottom left]: 0.468099
          2014-08-03 23:13:25.125 OSCulator[44359:707] /wii/1/balance [1: bottom right]: 0.366868
          2014-08-03 23:13:25.125 OSCulator[44359:707] /wii/1/balance [2: top left]: 0.203468
          2014-08-03 23:13:25.125 OSCulator[44359:707] /wii/1/balance [3: top right]: 0.128470
          2014-08-03 23:13:25.147 OSCulator[44359:707] /wii/1/balance [0: bottom left]: 0.463709
          2014-08-03 23:13:25.147 OSCulator[44359:707] /wii/1/balance [1: bottom right]: 0.372860
          2014-08-03 23:13:25.148 OSCulator[44359:707] /wii/1/balance [2: top left]: 0.201303
          2014-08-03 23:13:25.148 OSCulator[44359:707] /wii/1/balance [3: top right]: 0.131024



          portbigmac:~ nlp$ ls -ltr
          total 976
          drwxr-xr-x@ 6 nlp nlp 204 Jan 8 2008 Sites
          drwxr-xr-x 6 nlp nlp 204 May 22 2009 spm
          drwxr-xr-x 4 nlp nlp 136 Jul 1 2009 InstallShield
          drwxr-xr-x@ 2 nlp nlp 68 Jul 7 2010 dwhelper
          drwxrwxr-x 5 nlp nlp 170 Nov 18 2010 Incompatible Software
          -rw-r--r-- 1 root nlp 26163 Dec 27 2011 umbrella0.log
          -rw-r--r--@ 1 nlp nlp 413696 Mar 7 2012 Cache.db
          drwx------@ 7 nlp nlp 238 Jun 7 2012 Music
          drwxr-xr-x 4 nlp nlp 136 Oct 3 2012 Backup after Indy Flood
          drwxr-xr-x 15 nlp nlp 510 Oct 3 2012 Nicholase3_old
          drwxr-xr-x@ 6 nlp nlp 204 Nov 30 2012 Public
          drwxr-xr-x 5 nlp nlp 170 Aug 19 2013 Applications
          drwxr-xr-x 3 nlp nlp 102 Aug 19 2013 MRI Sports Project
          -rw-r--r-- 1 nlp nlp 46 Aug 29 2013 CHMtoPDFConvertertSettingInfo.ini
          -rw-r--r-- 1 nlp nlp 40 Aug 29 2013 chm2pdfinfo
          drwx------@ 25 nlp nlp 850 Oct 28 2013 Pictures
          drwxr-xr-x@ 14 nlp nlp 476 Jan 14 2014 attention
          drwxr-xr-x@ 8 nlp nlp 272 Jan 14 2014 Applications (Parallels)
          drwx------@ 18 nlp nlp 612 Feb 11 23:37 Movies
          -rw-r--r-- 1 nlp nlp 13045 Jun 21 14:07 matlab_crash_dump.2781-1
          drwx------@ 27 nlp nlp 918 Jul 27 13:50 Documents
          drwxr-xr-x@ 21 nlp nlp 714 Jul 29 21:59 Nicholas3
          drwx------+ 47 nlp nlp 1598 Jul 31 11:30 Downloads
          drwx------@ 6 nlp nlp 204 Aug 1 23:09 Google Drive
          drwx------@ 77 nlp nlp 2618 Aug 1 23:12 Library
          -rw-r--r-- 1 nlp nlp 12973 Aug 3 21:53 wii_test1.oscd
          -rw-r--r-- 1 nlp nlp 15708 Aug 3 21:57 wii_test.oscd
          drwx------@ 22 nlp nlp 748 Aug 3 23:12 Desktop
          -rw-r--r-- 1 nlp nlp 0 Aug 3 23:13 test1.txt



          portbigmac:~ nlp$ /Applications/OSCulator\ ƒ/OSCulator.app/Contents/MacOS/OSCulator wii_test.oscd > test1.txt

          Comment


          • #6
            Hello Nicholas,

            I am sorry my initial advice was incomplete.
            You actually need to redirect the "standard error" stream to a file.
            This is how you do that:

            Code:
            /Applications/OSCulator\ ƒ/OSCulator.app/Contents/MacOS/OSCulator wii_test.oscd 2> test1.txt
            Note the 2>.

            (see http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html)

            Cam

            Comment


            • #7
              I was able to send wii balance values to the unix console and log console. The values made sense. I save a settings file and I'm able to load it from the command line. So my remaining problem is the unix redirect. I use the ">" command and it creates the file.

              Comment

              Working...
              X