- Posts: 12160
- Thank you received: 0
HAL Question
The space should not make any difference except to pedantic code reviewers. :side:
So if you want to test if the torch is shorted which is what I think you really want to do, you could use the or2 component so that power-on or the plasmac test button turn the relay.
You should know enough about hal by now to do that yourself
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: I tried heaps of options to get it to turn on until I did that with motion-type.
The space should not make any difference except to pedantic code reviewers. :side:
So if you want to test if the torch is shorted which is what I think you really want to do, you could use the or2 component so that power-on or the plasmac test button turn the relay.
You should know enough about hal by now to do that yourself
My attention to detail knows no bounds :laugh:... except when I miss the obvious haha
You give me more credit than I deserve, but I’ll dork around with it and try to figure it out, there has to be an example out there I can plagiarize shamelessly!
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
There's one thing I dont quite get with regard to HAL, why dont these follow the net <signal> <source> => <destination> convention:
Please Log in to join the conversation.
The => and <= are not required, they are only used to make it (supposedly) easily human readable.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
phillc54 wrote: Unfortunately there is no convention, folk do it the way that suits them.
The => and <= are not required, they are only used to make it (supposedly) easily human readable.
Yea, but I guess what I'm asking, is the other ones had 3 things. For example:
Just trying to wrap my head around this... starting to make sense, but just enough to get the thing to error out and complain to me until I get it right. :laugh:
Please Log in to join the conversation.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
phillc54 wrote: Yes, they both give the same result.
AH! Well, I feel I've made it much further to understanding how this all works lol.
Many thanks to everyone, as always.
Please Log in to join the conversation.
snowgoer540 wrote:
phillc54 wrote: Yes, they both give the same result.
AH! Well, I feel I've made it much further to understanding how this all works lol.
Many thanks to everyone, as always.
Great work. I just break it up because when I come back to it later and want to use the same signal I find it's there. Other times I have had to change some statements to expose what I want.
Please Log in to join the conversation.
