btmon polarity?
-
- Posts: 62
- Joined: Fri Oct 08, 2010 8:23 am
btmon polarity?
Hello,
I tried searching and didn't find a diffinitive answer to my question below.
I have my GEM setup thru GreenEye config and all my values for channels are displaying positive values. So now I have "btmon" running and my values are being picked up as negative (through --print) values. The only channel not negative in btmon's --print is ch1 but that still gets sent to SEGMeter as negative.
I saw mention of SEG's polarity reverser (where is that)? or can I do this thru the GEM config and can I add an absolute value switch somewhere to just ignore (-).
Thanks, matt
I tried searching and didn't find a diffinitive answer to my question below.
I have my GEM setup thru GreenEye config and all my values for channels are displaying positive values. So now I have "btmon" running and my values are being picked up as negative (through --print) values. The only channel not negative in btmon's --print is ch1 but that still gets sent to SEGMeter as negative.
I saw mention of SEG's polarity reverser (where is that)? or can I do this thru the GEM config and can I add an absolute value switch somewhere to just ignore (-).
Thanks, matt
-
- Posts: 140
- Joined: Wed Dec 07, 2011 6:25 pm
Re: btmon polarity?
hi matt,
the '--reverse-polarity' option to btmon will invert the polarity on all channels.
m
the '--reverse-polarity' option to btmon will invert the polarity on all channels.
m
-
- Posts: 62
- Joined: Fri Oct 08, 2010 8:23 am
Re: btmon polarity?
Hmmm,
You could have just said, "Matt - have you read the documentation lately?"
Edit: Would there be a way to add this switch to the cfg file too? Something like
[options]
reverse-polarity = true
Thanks for the help on that.
Matt
You could have just said, "Matt - have you read the documentation lately?"
Edit: Would there be a way to add this switch to the cfg file too? Something like
[options]
reverse-polarity = true
Thanks for the help on that.
Matt
-
- Posts: 140
- Joined: Wed Dec 07, 2011 6:25 pm
Re: btmon polarity?
mattm55 wrote:Would there be a way to add this switch to the cfg file too? Something like
[options]
reverse-polarity = true
matt,
did you try this? it should just work, since almost all of the command-line options can be specified in the configuration file.
i added a polarity section to the btmon guide.
http://lancet.mit.edu/mwall/projects/po ... howto.html
m
Last edited by mwall on Wed Mar 06, 2013 9:23 am, edited 1 time in total.
-
- Posts: 62
- Joined: Fri Oct 08, 2010 8:23 am
Re: btmon polarity?
No, I didn't try that but will. I tried setting the switch in my shortcut but that didn't work as expected. To test it, I modified the btmon.py to true just to try it and it is working (values as expected) so I will go back and fix file and update my cfg.
Thanks, Matt
Update: Yup, I added that and it didn't work for me. It doesn't startup with that option value.
Thanks, Matt
Update: Yup, I added that and it didn't work for me. It doesn't startup with that option value.
-
- Posts: 140
- Joined: Wed Dec 07, 2011 6:25 pm
Re: btmon polarity?
the hyphens must be underscores in the configuration file, so
becomes
Code: Select all
--reverse-polarity
Code: Select all
reverse_polarity
-
- Posts: 62
- Joined: Fri Oct 08, 2010 8:23 am
Re: btmon polarity?
That did the trick.
Update: OK, it started but did not set "-" to positives like the mod to the script did. So, not sure if the options for that work?
Thanks again for all the help... and the script.
Matt
Update: OK, it started but did not set "-" to positives like the mod to the script did. So, not sure if the options for that work?
Thanks again for all the help... and the script.
Matt