I guess I should probably use a EV_ADDED event handler to add the component name to the list each time one is added.
No joy with this route yet though
Martin
Search found 899 matches
- Tue Apr 06, 2021 9:55 pm
- Forum: General
- Topic: SCADA Component object Slave
- Replies: 13
- Views: 5974
- Tue Apr 06, 2021 9:17 pm
- Forum: General
- Topic: SCADA Component object Slave
- Replies: 13
- Views: 5974
Re: SCADA Component object Slave
Hmm, it's tricky.. I think I've managed to 'pull' the components using: Main.JPG Which when stepped through sets main.str to each component's name. Next - can I attach this to the drop down menu ??? Software timer is just there as a test component (also had a couple more added to the project...) Mar...
- Tue Apr 06, 2021 6:39 pm
- Forum: General
- Topic: SCADA Component object Slave
- Replies: 13
- Views: 5974
SCADA Component object Slave
I'd like to create a component where if a Scada slave is added by the user it can be used in Scada mode. I can do this 'as source' where the SCADA slave can be added to the injector component - and this works well in simulation. FC__00047.jpg But I'd like to 'expose' this to the top level, so that I...
- Tue Apr 06, 2021 9:34 am
- Forum: General
- Topic: Problem with unsigned divide
- Replies: 3
- Views: 2045
Re: Problem with unsigned divide
Hi Peter,
Currently your result is changed to float after the division..
Either need
fresult = n / 32.0
or fresult = float(n) / 32
Martin
Currently your result is changed to float after the division..
Either need
fresult = n / 32.0
or fresult = float(n) / 32
Martin
- Wed Mar 31, 2021 7:33 pm
- Forum: Bug Reports
- Topic: Uart Interrupt on RXINT0
- Replies: 15
- Views: 7023
Re: Uart Interrupt on RXINT0
Yes, I appreciate that it's not acting as an interrupt at present. My thought was that if you were trying to use a Rx interrupt and receive chars in the handler - wait too long and characters might/will be missed. Interrupts are generally disabled automagically on an interrupt occurring - (this is p...
- Wed Mar 31, 2021 5:14 pm
- Forum: Bug Reports
- Topic: Uart Interrupt on RXINT0
- Replies: 15
- Views: 7023
Re: Uart Interrupt on RXINT0
Hi Alan, If serial_handler is your interrupt routine - you are possibly trying to do too much in it.. It should probably just stuff the received character into a buffer and then return - leaving the 'main' code to handle the data. Here - https://www.matrixtsl.com/mmforums/viewtopic.php?f=80&t=22344&...
- Mon Mar 29, 2021 1:58 pm
- Forum: General
- Topic: Combining bytes to form 32 bit value (24 bit)
- Replies: 16
- Views: 7658
Re: Combining bytes to form 32 bit value (24 bit)
There's definitely something awry - the upper bits should be 0 rather than 0xFF
Is there a signed shift going in somewhere by mistake (compiler/FC)
What value does Hi actually have? (ie is bit 7 set?)
Martin
Is there a signed shift going in somewhere by mistake (compiler/FC)
What value does Hi actually have? (ie is bit 7 set?)
Martin
- Mon Mar 29, 2021 1:37 pm
- Forum: General
- Topic: Combining bytes to form 32 bit value (24 bit)
- Replies: 16
- Views: 7658
Re: Combining bytes to form 32 bit value (24 bit)
Data high needs to be a 32 bit value too, or assign it to one before shifting.
Something like:
Result = hi
Result = (result << 16) + (mid << 8) + lo
Can use + or | (or) to combine
Martin
Something like:
Result = hi
Result = (result << 16) + (mid << 8) + lo
Can use + or | (or) to combine
Martin
- Tue Mar 23, 2021 8:56 am
- Forum: General
- Topic: PIC18F67K40 UART Send String
- Replies: 13
- Views: 6484
Re: PIC18F67K40 UART Send String
That would be very odd - SendNumber just converts the number to a string then uses SendString....
Can you post your code?
Martin
Can you post your code?
Martin
- Mon Mar 22, 2021 8:57 am
- Forum: General
- Topic: Help project will not open
- Replies: 6
- Views: 3413
Re: Help project will not open
Might need to rename the 01 file (delete the .01)
Would be good to have 'git' integration in FC - although it does work with manual updates...
Interested to know if anything was 'missing' from the recovered file?
Martin
Would be good to have 'git' integration in FC - although it does work with manual updates...
Interested to know if anything was 'missing' from the recovered file?
Martin