Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Process Propeller with QM
#1
Gintaras,

I've done some work with Parallax Propeller chips in the past, but now I really want to start writing programs that will interface with projects. I really like controlling computers with QM best.

Could you please take a look at this DLL and give me a start on running things in QM:
www.parallax.com/Portals/0/Downloads/sw ... rminal.zip

Primarily I am interested in reading the status of the of the pins and running QM scripts. Nothing really fancy.

I always have troubles knowing how to work with DLL so could you explain your process again. I'd really like to do this stuff on my own so I don't have to trouble you.

Thanks,
Jim
#2
Yeah, I never get these to work.

Using Tools->Type Libraries --> Register --> Propellent.dll == FAILED
#3
It's exe, I don't want to install etc. If you have declarations of dll functions etc in C++ or other language, post here, I'll convert to QM, I have a macro to convert. If C/C++, declarations usually are in a .h file. Or can be in a help file.
#4
In the zip there is the Propellent.dll with a Propellent Library.pdf

I'm not sure if I have this right:
Function Function4
Code:
Copy      Help
dll "Propellent"
,#InitPropellent WinHandle StorePrefs $RegPath
,#GetLibraryVersion
,#GetResetSignal
,#SetResetSignal
,#GetGUIMode
,#SetGUIMode
,#GetSerialSearchMethod
,#SetSerialSearchMethod
,#GetSerialSearchRules
,#SetSerialSearchRules
,#GetLibraryPath
,#SetLibraryPath
,#ShowEditPorts
,#GetPorts $Scannable
,#CompileSource $Filename ShowError
,#CompileSourceDocs $Filename
,#GetSourceHierarchy
,#SaveImage AsBinary $Filename ShowSaveAs
,#GetPropellerVersion
,#DownloadToPropeller $Filename DownloadCmd
,#FinalizePropellent


I'm not sure what the hash symbol is for in QM, put it at the beginning of each line.
Used "$" for things specified in the help as PChar. Is this correct?

Thanks,
jim
#5
Probably correct.
$ is lpstr, ie C string. In C it can be LPSTR, PCHAR or similar.
# is int. In C it can be int, long, HWND or any other 32-bit type.
#6
I think I need to flash a program to the board that will transmit serial data that QM will read.


Like this: http://forums.parallax.com/showthread.p ... ght=button

Any advice? Examples.

Thanks,
Jim


Forum Jump:


Users browsing this thread: 1 Guest(s)