Scripting

Scripting

 

Network data transfer (NDT)

o   Send data from Acqknowledge to a 3rd party application in real time

o   Compatible with Matlab, Unity, WorldViz VR, Java, Python and more

o   Does not guarantee real time delivery (based on your network speed; dependent on speed of computer)

·      Potential uses of NDT

o   E.g. biofeedback for VR

o   Place event markers in Acqknowledge

o   Control Acqknowledge through a 3rd party application

o   E.g. a picture pops up when subject’s heart rate reaches a threshold

·      Instructions:

o   Preferences à networking à check 2 first boxes, note down TCP number

·      WorldViz designed for research: ideal

·      Set event trigger

·      David is showing a Game programmed in unity; shooting missiles coming down from the sky; number of missiles determined based on HRV

·      You have to enable each channel individually to transfer; doesn’t automatically transfer all

·      Advantage: cuts down on networking time

·      E.G. you might want to send a calculation channel but not the raw channels

 

 

Scripting

·      Use same analysis on multiple data files

·      Reduce human workload

·      To more efficiently re-run analyses after modification

·      To record exact steps taken

·      To perform tasks that user interface doesn’t allow

·      Command+D duplicate waveform

·      Create a file that stays in the script menu from where you can select and run it

·      Use help function to find scripting commands

·      Program doesn’t say when it needs commas; tricky; best to put commas even if you may not need it

·      Separate options by commas

·      Optimize for sample data rate option is complicated;

·      If you check the ‘I’ on the right of the waveform, you can see what you’ve done to the data. Should show “number of coefficients” à not showing up in my example, didn’t follow exactly what Mickey did in the first round

·      Mickey forgot but make sure you select channel number first

·      If you create a duplicate, channel 2 is the original and 1 the copy

·      Scripts don’t by default run on whole waveform, needs selection command

·      If you add scripts to the scripting folder, the scripts show up in the script list in the top bar menu if Acqknowledge

·      When debugging, use “halt” command to run up to a certain point

·      Prompt command: always give options, “Yes”, “No”, maybe “Cancel”, otherwise you can’t get rid of the prompt box

·      Mickey and David charge ca $100 per hour for writing scripts for you

·      Application note for scripting

·      Excel output: Set h cursor; set cell value; mean

·