PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Stephane Fonteyne on September 28, 2013, 06:09:54 PM

Title: My RS232_IO_TEST_BOARD Application written in FF3 and PBWin
Post by: Stephane Fonteyne on September 28, 2013, 06:09:54 PM
Paul,

I'm very happy with your development tool FireFly SDK Designer and I look out to the DOT notation just like VB or other OOP Languages.

I have encountered the following problems.

Problem 1
When I clicked on the button “Send Byte” then crashed the application and closed (Runtime error maybe). I think the cause is the function "send_byte ()". 

Problem 2
When I clicked to the button “Receive Characters” then crashed the application and closed (Runtime error maybe). I think the cause is the function "read_string()". These functions are in the rscom.dll library.

Problem 3
When the user selected the items by example:

item1 = "9600"   // Baudrate
item2 = "N"        // Parity
item3 = "8"        // Startbit
item4 = "1"        // Stop

I try to concatenate the string as follows :

LOCAL strCom AS STRING
LOCAL strBaud AS STRING
LOCAL strParity AS STRING
LOCAL strDataBytes AS STRING
LOCAL strStopBits AS STRING

StrCom = strBaud  + "," + strParity + "," + strDatabits + "," + strStopBits

then :

Open_SerialPort("COM1:" + StrCom)

Questions

1-2) Is there There a solution to this or any other possibility to rewrite this code from the rscom.dll?

3) Is fails why?

4) How can I worked with an control array of comboboxes?

5) How can I best rewritten the code using PB Communications?

I really hope someone can help me where the problems are situated in my application

Kind regards
Stephane

Title: Re: My RS232_IO_TEST_BOARD Application written in FF3 and PBWin
Post by: Stephane Fonteyne on October 02, 2013, 07:58:55 PM
Hi,

Can somebody here look to my code and what's wrong with parts of code.

Kind regards
Stephane