Line 6:
Line 6:
=Overview of the Program=
=Overview of the Program=
−
#All Experiments are loaded (LoadExperiments(); called by main)
−
#*All expts in the same directory as the application get loaded at when first run
−
#*Experiments are stored in text files of type EXPT, creater BARt
−
#*The experiment object holds the number of rats and variables per rat, and the tag abbreviations;
−
#*when a bar code is scanned, the weights window will ask the expt file to interepret the tag
−
#*The experiment object also holds the current on weights; the on weights are stored in a file with the name “EXPT on wgts” (i.e. for an experiment with tag CL, the weights are stored in the file “CL on wgts”.
−
#"On Weight" command -> makes on WeightsWindow the front most window
−
#WeightsWindow waits for input of the tag on the bottle ( waits_for_text flag is set to TRUE)
−
#*The waiting for a tag is just waiting for keystrokes – either hand entered, or entered by the bar code reader
−
#*if the WeightsWindow receives a return or enter, then it has gotten the full tag (waits_for_text flag is set to FALSE)
−
#*Having gotten the bottle tag, the weights window now:
−
##ProcessTag();
−
##*figure out the experiment, item, and subject number
−
##ForceRedraw();
−
##*If this is the first tag, then the window needs to be updated with the current expt, which means pulling up the different variables, etc.
−
##WaitForWeight();
−
##*update weight of that item – wait for the scale to transmit the weight
−
##ProcessWeight();
−
##*Store the weight in the appopriate bottle object(either as on weight or off weight).
−
##Clear();
−
##*Start all over again ( waits_for_text flag is set to TRUE)
−
#When the window is closed, the on weights will get stored on disk in a file with the name “EXPT on wgts” (i.e. for an experiment with tag CL, the weights are stored in the file “CL on wgts”.
[[File:Scanner scale.jpg|200px|thumb|left|scanner and scale]]
[[File:Scanner scale.jpg|200px|thumb|left|scanner and scale]]
Line 36:
Line 14:
[[File:Scannerbottle.jpeg|200px|thumb|left|scanner and bottle]]
[[File:Scannerbottle.jpeg|200px|thumb|left|scanner and bottle]]
−
* Unitech MS340 USB 1D barcode scanner. Default setting, but set to "Continuous / Auto Power ON".
+
* [https://www.amazon.com/Unitech-MS340-CUCB00-SG-Long-Range-scanner/dp/B01BN0M4KY/ Unitech MS340 USB 1D barcode scanner]. Default setting, but set to "Continuous / Auto Power ON".
=Serial Adapter=
=Serial Adapter=
−
* StarTech.com ICUSB232C : USB C to Serial Adapter Cable 16" (40cm) - USB Type C to RS232 (DB9) Converter Cable - USB-C Serial Cable for PLCs, Scanners, Printers - Male/Male - Windows/Mac/Linux [[File:StarTechUSBC-RS232.png|200px|thumb|right|StarTech USB-C Serial Adapter]]. Shows up as "/dev/cu.usbserial-1420", and listed under "System Information -> USB -> USB-Serial controller D"
+
* May NOT be needed if using a newer model balance with a built-in USB port
−
!!!BE SURE TO CHECK StarTech.com FOR LATEST MACOS DRIVER!!!
+
* [https://www.startech.com/en-us/cards-adapters/icusb232c StarTech.com ICUSB232C] : USB C to Serial Adapter Cable 16" (40cm) - USB Type C to RS232 (DB9) Converter Cable - USB-C Serial Cable for PLCs, Scanners, Printers - Male/Male - Windows/Mac/Linux [[File:StarTechUSBC-RS232.png|200px|thumb|right|StarTech USB-C Serial Adapter]]. Shows up as "/dev/cu.usbserial-1420", and listed under "System Information -> USB -> USB-Serial controller D"
+
+
!!!BE SURE TO CHECK StarTech.com [https://www.startech.com/en-us/cards-adapters/icusb232c FOR LATEST MACOS DRIVER]!!!
Verify the adapter location by lookin gin /dev directory. Under Bartender "Settings" menu, enter full path to serial adaptor, e.g. "/dev/cu.usbserial-240"
Verify the adapter location by lookin gin /dev directory. Under Bartender "Settings" menu, enter full path to serial adaptor, e.g. "/dev/cu.usbserial-240"
−
* StarTech.com SCNM925FM : 10 ft Cross Wired DB9 to DB25 Serial Null Modem Cable - F/M - Null Modem Cable - DB-9 (F) to DB-25 (M) - 10 ft [[File:StarTech9-25pin.jpeg|200px|thumb|right|StarTech 9-25pin null modem cable]]
+
* [https://www.startech.com/en-us/cables/scnm925fm StarTech.com SCNM925FM] : 10 ft Cross Wired DB9 to DB25 Serial Null Modem Cable - F/M - Null Modem Cable - DB-9 (F) to DB-25 (M) - 10 ft [[File:StarTech9-25pin.jpeg|200px|thumb|right|StarTech 9-25pin null modem cable]]
=Setting up the Balance=
=Setting up the Balance=
Sartorius BP-3100S
Sartorius BP-3100S
+
+
This specific model has been discontinued, so recommend as a replacement Sartorius SECURA3102-1S Toploading Balance, 3100g x 0.01g
+
+
+
== Connecting Balance to Mac ==
Macintosh->Serial port Mac->25 pin printer cable -> null modem adaptor-> balance
Macintosh->Serial port Mac->25 pin printer cable -> null modem adaptor-> balance
Line 78:
Line 63:
−
Stickers should be printed onto Avery 22827 matte white water-resistant film rectangular labels 3.5" x 4.75", 24 per sheet, from which they can be cut into individual bottle labels. Because all the stickers are white, I recommend adding a color cue, such as a red marker line underneath the text on the saccharin labels, and a blue marker line on the water labels.
+
Stickers should be printed onto [https://www.avery.com/products/labels/22827 Avery 22827 matte white water-resistant film rectangular labels 3.5" x 4.75"], 24 per sheet, from which they can be cut into individual bottle labels. Because all the stickers are white, I recommend adding a color cue, such as a red marker line underneath the text on the saccharin labels, and a blue marker line on the water labels.