btmon polarity?

Post any 3rd party software here.
Post Reply
mattm55
Posts: 62
Joined: Fri Oct 08, 2010 8:23 am

btmon polarity?

Post by mattm55 » Wed Mar 06, 2013 6:45 am

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
mwall
Posts: 140
Joined: Wed Dec 07, 2011 6:25 pm

Re: btmon polarity?

Post by mwall » Wed Mar 06, 2013 7:39 am

hi matt,

the '--reverse-polarity' option to btmon will invert the polarity on all channels.

m
mattm55
Posts: 62
Joined: Fri Oct 08, 2010 8:23 am

Re: btmon polarity?

Post by mattm55 » Wed Mar 06, 2013 8:35 am

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
mwall
Posts: 140
Joined: Wed Dec 07, 2011 6:25 pm

Re: btmon polarity?

Post by mwall » Wed Mar 06, 2013 9:05 am

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.
mattm55
Posts: 62
Joined: Fri Oct 08, 2010 8:23 am

Re: btmon polarity?

Post by mattm55 » Wed Mar 06, 2013 9:16 am

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.
mwall
Posts: 140
Joined: Wed Dec 07, 2011 6:25 pm

Re: btmon polarity?

Post by mwall » Wed Mar 06, 2013 9:26 am

the hyphens must be underscores in the configuration file, so

Code: Select all

--reverse-polarity
becomes

Code: Select all

reverse_polarity
mattm55
Posts: 62
Joined: Fri Oct 08, 2010 8:23 am

Re: btmon polarity?

Post by mattm55 » Wed Mar 06, 2013 9:38 am

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
Post Reply