I am am an AppleScript noob with very little other programing experience. I am trying to write a simple routine to log values from four Force Sensing Resistor sensors. I am working on some older equipment at school - MacOS 10.4.11, AppleScript 1.10.7, and an 8/8/8 PhidgietInterfaceKit. I have also installed Le Stang's script addition.
I can monitor the values manually by looking at the output in the Phidget control panel, but I would like to record the values and output them to a CSV file or other data spreadsheet. Ideally I would like to get multiple readings per second.
At the moment I can not even get a single value logged from one of my sensors. I have looked through several of the posts and have written the following script:
set theConnection to IKConnect
set RawFSR_RF to IKRawReadAnalogicInput 0 kit theConnection
set RawFSR_RB to IKRawReadAnalogicInput 2 kit theConnection
set RawFSR_LF to IKRawReadAnalogicInput 4 kit theConnection
set RawFSR_LB to IKRawReadAnalogicInput 6 kit theConnection
I am not getting any results when I attempt to run this. Anyone with any ideas of why?
Does anyone have an example of a successful logging of sensor values over time done in Applescript they would be willing to share? An example of a working program would be a huge help. I am willing to change Languages, but I need something that is free. Thanks,