HAL Question

More
02 Jul 2020 13:09 #173412 by rodw
Replied by rodw on topic HAL Question
Well, you can use whatever pin you like if you change these lines...
net ohmic:power <= ohmicsense.power-on
net ohmic:power => hm2_5i25.0.7i76.0.0.output-01

As I said its a work in progress I rushed out in an unsupported post on the forum becasue you guys had bought a THCAD based on my recommendation and had problems with a water table when it had never been developed on one.

The original suggestion from PCW was just to turn it on when you turned the machine on but I don't think thats a good idea where water is involved and switching the DC side introduced additional components to the sensing circuit which was undesirable

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 13:12 - 02 Jul 2020 13:13 #173413 by snowgoer540
Replied by snowgoer540 on topic HAL Question

Well, you can use whatever pin you like if you change these lines...
net ohmic:power <= ohmicsense.power-on
net ohmic:power => hm2_5i25.0.7i76.0.0.output-01

As I said its a work in progress I rushed out in an unsupported post on the forum becasue you guys had bought a THCAD based on my recommendation and had problems with a water table when it had never been developed on one.

The original suggestion from PCW was just to turn it on when you turned the machine on but I don't think thats a good idea where water is involved and switching the DC side introduced additional components to the sensing circuit which was undesirable


I guess that's what I've been asking. I dont know how to change those lines to make it work. I just know it does not currently work as I would expect.

Not trying to bash the ohmic2.comp file at all, I am grateful for your development work, and I'm happy to help test anything you come up with. Mostly I'm trying to understand HAL and understand why it doesn't work.
Last edit: 02 Jul 2020 13:13 by snowgoer540.

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 13:51 #173418 by rodw
Replied by rodw on topic HAL Question
Phill covered it here
net plasmac:ohmic-enable plasmac.ohmic-enable => ohmicsense.is-probing

so try
net ohmic:power <= plasmac.ohmic-enable
net ohmic:power => hm2_5i25.0.7i76.0.0.output-01

YOu could use his example but you'd need to delete/comment out a couple of unlinkp's

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 14:14 #173421 by snowgoer540
Replied by snowgoer540 on topic HAL Question

Phill covered it here
net plasmac:ohmic-enable plasmac.ohmic-enable => ohmicsense.is-probing

so try
net ohmic:power <= plasmac.ohmic-enable
net ohmic:power => hm2_5i25.0.7i76.0.0.output-01

YOu could use his example but you'd need to delete/comment out a couple of unlinkp's


I apologize for my ignorance, I didnt realize he covered it, I really dont understand HAL. I wouldnt know what to comment out/delete. But I'll poke around later and try to luck my way into it working, I suppose.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 14:45 - 02 Jul 2020 14:45 #173424 by rodw
Replied by rodw on topic HAL Question
One day it will click. Some people like to combine stuff into one line like PHill does but I have found its much easieer to follow on two lines like I did.

The first line creates a signal. Think of this as a wire.
The second line connects the wire to a physical input

Think of HAL components as being electrical components on a circuit board
Last edit: 02 Jul 2020 14:45 by rodw.

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 21:44 #173460 by phillc54
Replied by phillc54 on topic HAL Question

One day it will click. Some people like to combine stuff into one line like PHill does but I have found its much easieer to follow on two lines like I did.

The first line creates a signal. Think of this as a wire.
The second line connects the wire to a physical input

Think of HAL components as being electrical components on a circuit board

Thats kinda how I think of it, but I find it easier to read if it is on one line like, create a signal from output to input.. to more inputs if required.
net signal_name  from_output => to_input to_another_input ..

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 23:35 #173469 by snowgoer540
Replied by snowgoer540 on topic HAL Question

One day it will click. Some people like to combine stuff into one line like PHill does but I have found its much easieer to follow on two lines like I did.

The first line creates a signal. Think of this as a wire.
The second line connects the wire to a physical input

Think of HAL components as being electrical components on a circuit board

Thats kinda how I think of it, but I find it easier to read if it is on one line like, create a signal from output to input.. to more inputs if required.
net signal_name  from_output => to_input to_another_input ..


How do I know the options for inputs and outputs?

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 23:39 #173470 by phillc54
Replied by phillc54 on topic HAL Question
Not sure what you mean but you can have only one output on a signal.

Please Log in or Create an account to join the conversation.

More
02 Jul 2020 23:55 - 02 Jul 2020 23:55 #173472 by rodw
Replied by rodw on topic HAL Question
It won't work for ohmic2 as its not in the release but if you type "man motion" or any other component name you will get the docs. This is also displayed on the main documentation page on the web site say V2.8 docs (at the bottom). You may have to open up a heading..

The easiest way here would be to review the ohmic2 source as it lists the pins and if they are in or out pins but if you want to learn something, you could use halcompile to create the docs for ohmic2. Good research exercise!

Once run, it will tell you where the man page is and you can type man <path to man file>/<comp_name>
Then you can output it to text and I think PDF using man if you read the man for man!
Last edit: 02 Jul 2020 23:55 by rodw.

Please Log in or Create an account to join the conversation.

More
03 Jul 2020 01:27 #173476 by phillc54
Replied by phillc54 on topic HAL Question
I haven't had a look at the ohmic2 component but I think you could do someting like:
Warning: Spoiler!

this way hm2_5i25.0.7i76.0.0.output-01 will only be on while probing is active or while ohmic testing.
The unlinkp line is redundant becuase you don't have debounce.0.2.in connected.

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.210 seconds
Powered by Kunena Forum