Hi Ray,
No Sorry we don't have a callable method for that. We should probably add one. But It is fairly straightforward. Just issue the GetStatus Console command and place the returned Hex data into the structure. You can copy the example from KMotionCNC. Originally it wasn't clear how much the routine should do regarding checking for the presence of the board, how hard it should try (wait) to get the status, how to handle disconnects, and such. Also currently if multiple apps are running they all need to request Status individually rather than somehow globally sharing it (although I think that brings up a number of issues).
Regards
TK
| Group: DynoMotion |
Message: 2990 |
From: bradodarb |
Date: 1/8/2012 |
| Subject: Re: Getting DSP MAIN_STATUS |
Hello Ray,
I looked through the code and it looks like I implemented the MainStatus struct completely in the interop dll, but did not add all the functionality to the KM_Controller (just most of it)
In KM_Controller you have ::
UpdateMainStatus()
To refresh the image
And you also have a Property of type KM_Controller_MainStatus that has several accessor methods to get the values of the struct.
I still need to add the bulk value accessors so you can get all the values of a particular member and twiddle the bits on your own to get the individual components and I need to add in the documentation for intellisense.
-Brad Murry
--- In DynoMotion@yahoogroups.com, "himykabibble" <jagboy@...> wrote:
>
> Brad,
>
> How do I get the DSP MAIN_STATUS information for display updates? I don't see any method for fetching that. Is there no method that reads the status, and parses the ASCII HEX data into a nice object?
>
> Regards,
> Ray L.
>
|
|
| Group: DynoMotion |
Message: 2991 |
From: bradodarb |
Date: 1/8/2012 |
| Subject: Re: Getting DSP MAIN_STATUS |
Yes we do!
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
> Â
> No Sorry we don't have a callable method for that. We should probably add one. But It is fairly straightforward. Just issue the GetStatus Console command and place the returned Hex data into the structure. You can copy the example from KMotionCNC. Originally it wasn't clear how much the routine should do regarding checking for the presence of the board, how hard it should try (wait) to get the status, how to handle disconnects, and such. Also currently if multiple apps are running they all need to request Status individually rather than somehow globally sharing it (although I think that brings up a number of issues).
> Â
> Regards
> TKÂ
>
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, January 7, 2012 6:27 PM
> Subject: [DynoMotion] Getting DSP MAIN_STATUS
>
>
> Â
> Brad,
>
> How do I get the DSP MAIN_STATUS information for display updates? I don't see any method for fetching that. Is there no method that reads the status, and parses the ASCII HEX data into a nice object?
>
> Regards,
> Ray L.
>
|
|
| |