- Posts: 12160
- Thank you received: 0
HAL Question
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 to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: Well, you can use whatever pin you like if you change these lines...
Code: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.
Please Log in to join the conversation.
so try
YOu could use his example but you'd need to delete/comment out a couple of unlinkp's
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: Phill covered it here
Code:net plasmac:ohmic-enable plasmac.ohmic-enable => ohmicsense.is-probing
so tryCode: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.
Please Log in to join the conversation.
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
Please Log in to join the conversation.
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.rodw wrote: 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
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
phillc54 wrote:
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.rodw wrote: 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 boardCode:net signal_name from_output => to_input to_another_input ..
How do I know the options for inputs and outputs?
Please Log in to join the conversation.
Please Log in to join the conversation.
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!
Please Log in to join the conversation.
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 to join the conversation.
