Search found 19 matches

by simon-sandtcontrols
Mon Nov 20, 2023 3:00 pm
Forum: Projects - Embedded
Topic: Variable types Versus PIC type
Replies: 9
Views: 9838

Re: Variable types Versus PIC type

That's sorted it, oh so simple when you know how.

Thank you very much, very much appreciated, it's the silly things you can spend so much time chasing.
by simon-sandtcontrols
Mon Nov 20, 2023 11:59 am
Forum: Projects - Embedded
Topic: Variable types Versus PIC type
Replies: 9
Views: 9838

Re: Variable types Versus PIC type

I have just corrected it. This is what I had originally when I encountered the problem.
by simon-sandtcontrols
Mon Nov 20, 2023 11:56 am
Forum: Projects - Embedded
Topic: Variable types Versus PIC type
Replies: 9
Views: 9838

Re: Variable types Versus PIC type

Hi Steve, Bugger, I have missed deleting the /100 and brackets when I sent it to you. I added them to try and get round the problem. I was going to try dividing by 100 and then divide by 10 later to try and keep the numbers smaller!! That line should read "Pulses = Qty_Tot * Pulses_Per_l" then the "...
by simon-sandtcontrols
Mon Nov 20, 2023 11:04 am
Forum: Projects - Embedded
Topic: Variable types Versus PIC type
Replies: 9
Views: 9838

Re: Variable types Versus PIC type

OK, Thanks Steve, The problem has occurred in one apparently simple calculation. I have attached the entire flowchart as it isn't exactly the most complicated. It is to dispense oil, so reads a flow meter that gives 596 pulses per litre and matches it to the value entered on the keypad. The problem ...
by simon-sandtcontrols
Mon Nov 20, 2023 9:47 am
Forum: Projects - Embedded
Topic: Variable types Versus PIC type
Replies: 9
Views: 9838

Re: Variable types Versus PIC type

Thanks Steve, I must confess I didn't realise it was as complex as this behind the scenes, so to speak, I have simply done a calculation that generates a number larger than a signed integer can cope with, so changed the variable type to a long, when this didn't make any difference I started to try a...
by simon-sandtcontrols
Mon Nov 20, 2023 9:03 am
Forum: Projects - Embedded
Topic: Variable types Versus PIC type
Replies: 9
Views: 9838

Variable types Versus PIC type

Hi All, This might be a daft question, but I can't find any information on it. Will any variable type work in any PIC? I am using a PIC16F1937 and with a number of 40,000 in a long variable generated a negative value, then tried an unsigned integer and got a negative value again. Many Thanks. Simon
by simon-sandtcontrols
Sun Feb 19, 2023 10:17 pm
Forum: App Developer
Topic: E mail from the developer
Replies: 10
Views: 5450

Re: E mail from the developer

Ok, thanks guys, Yes this isn't super crucial, the first application of it is to simply send an e mail each time the 2 studio playout PCs are restarted, after a Windows update we loose all of the sound card settings. We usually know it's happened, but the other day someone switched studios and it al...
by simon-sandtcontrols
Sun Feb 19, 2023 8:58 am
Forum: App Developer
Topic: E mail from the developer
Replies: 10
Views: 5450

Re: E mail from the developer

Ok thanks,

This might be my simpler option. I am not exactly conversant with Python. It will probably only send an e mail once every few weeks anyway.

Simon.
by simon-sandtcontrols
Sat Feb 18, 2023 8:06 pm
Forum: App Developer
Topic: E mail from the developer
Replies: 10
Views: 5450

Re: E mail from the developer

Thanks guys, Sorry for the late reply, work has got in the way. I will sit down in the evenings next week and have a look at both options, I am guessing the 3rd party option may have a cost to it, which I am trying to avoid, this is for a community radio station, that is completely run by volunteers...
by simon-sandtcontrols
Thu Feb 16, 2023 9:15 pm
Forum: App Developer
Topic: E mail from the developer
Replies: 10
Views: 5450

Re: E mail from the developer

Thanks Martin,

This is going to be a bit of a learning curve for me, TBH I didn't realise you could run Python script in Windows, I don't think I have ever given it a thought.

I will need to sit down and carefully read through the link.

Simon.