The sample code for voltage ratio is the correct example for the DAQ1500. If you want an example of it being used in an actual project, check out this
pet food monitoring scale. This project uses C instead of python, but the libraries have the same structure so it should still give you a good idea of what to do.