I was looking for a K8055 demo prog using VS 2008 C++ an I found some stuff here in this forum (thanks to the folks).
But mostly it was converted from an older VS 2005 or not the complete interface (with output test …).
So I puzzled all together and here it is: http://www.box.net/shared/1b5q4t7drz
It has not yet the multi card function, but it may be usefully for VS 2008 programmers!
Remark: in VS 2008 there are no vertical progress bars, so I had to turn the elements …
(If anyone knows to perform the code, let me know!)
Nice work!
Thank you for completing the VC++ Express 2008 example project for the K8055.
Now this example looks very nice and “professional”.
It was good idea to put the DLL function declarations and linking in the header file K8055D.h.
When I first time tried to compile the project I got this error message:
1>LINK : fatal error LNK1104: cannot open file ‘…\K8055D_C\K8055D_C.lib’
The project compiled nicely when I first selected the K8055D_C.lib in the Solution Explorer, right click the file name and select “Exclude From Project”.
Also the K8055D_C.DLL is not needed in this project.
Explicit linking is using the K8055D.DLL.
OK, that’s fixed too. You have to move the “K8055D.dll” into the upper debug folder (where the .exe-file appears) to run the programm successfully. Have fun!
Can you tell me how i can change the value of VScrollbar 3 or 4. I want to calculate with this value to give temperature information from my connected LM35 temp sensor.
It seems that you use another programm than discussed in this thread, because the bars in VC 2008 are named “progressbar”.
But the things to do are similar: first you change the “minimum” and “maximum” attribute of the bar to the values you need; and second you adapt the code where the value of the analog input is read and the position of the bar is changed (in my demo programm it is done in the timer1_tick service routine.
Remember: the analog input value is in the range from 0 to 255 belonging to a voltage of 0 … 5 V and you need to transform it to the range of your temperature scale from min to max as changed above.
Further help may be possible with the characteristics of your temp sensor. Good success.
Remarks:
measuring temperatures less than zero degree may result in problems, because the LM35 produces negative voltages in this range. Another sensor or an additional voltage to lift the result may be necessary.
for better resolution it may be usefully to gain the input voltage as described in the K8055 manual as the input range reaches originally to 5 V an the upper end of the LM35 is 1,5 V.
The package includes new K8055D.DLL and several sample projects written in various programming languages.
Pleas read the “README.TXT” and the “K8055 & VM110 Getting Started.pdf”.