Visual foxpro serial communication port2/21/2023 1 of a second to give scale a chance to send infoa = SECONDS() .1DO WHILE SECONDS() <= aenddoscaleinfo = ALLTRIM(thisform.scalectrl. The code for reading my specific scale is as follows: = 0 = "W" CHR(13)* wait. 1 of a second to give scale a chance to send infoa = SECONDS() .1DO WHILE SECONDS() <= aenddoscaleinfo = ALLTRIM() Your device may or may not need a signal, it may just constantly stream data and you will parse the info. We have the following code in a timer event that "reads" the scale every. Note that Visual FoxPro 9.0 is the last version and was published in 2007. Get Visual FoxPro 9.0 through MSDN Subscriptions, or as a stand-alone full product or upgrade. Once it receives the character, it sends back the weight. Visual FoxPro 9.0 provides the tools you need to create and manage high-performance, 32-bit database applications and components. As an example, the following code will read the weight from a specific scale. The manual from your device will tell you what you need to do to read info from the device. Yoiu will also need the manual from your device you wish to communicate withĪnd match the baud rate, bits, parity,
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |