From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-01-2009 06:50 PM
Hello,
I am using the "Basic Serial Write and Read.vi" example in LabVIEW 8.6. I can send information from the PICAXE 08M micro to LabVIEW via the serial cable. However I want to store the information somewhere to be manipulated at a later time.
The LabVIEW example deletes the information after a few seconds. How do I store stuff?
Cheers
06-01-2009 08:47 PM
06-01-2009 10:57 PM
Hello,
I'm sending a "string". I've solved the problem by looking at the advanced example in the LabView files. Using the "decimal string to number" function I was able to take the data that I needed and do my calculations.
Thank you for the interest.
K
06-02-2009 06:13 PM
Hello,
OK, so I got serial read and write to work, but not together. I am sending ASCII "GO" to the PICAXE chip. After some calculations on the PICAXE chip I want the information to be read.
The Problem:
Both read and write work, but not at the same time. It seems that I can Write "GO" but as soon as I click the READ button the Write function stops working and no information is Read.
Any ideas?
Cheers
K
06-02-2009 08:21 PM
06-17-2009 05:49 PM
Hello,
I realise now, that the PICAXE 08M does not support duplex serial communication. For that reason I have made this code which Writes something, then resets the current COMPORT so that the READ function can be used.
here is my code.
If you see any improvements let me know. Thanks.
06-17-2009 08:48 PM
Kamilan wrote:
I realise now, that the PICAXE 08M does not support duplex serial communication.
I have no idea what this has to do with anything. Full duplex is when you have separate pins for transmit/receive. Half-duplex is when you have the same pin for transmit/receive.
As for your code: I don't understand why you have inner loops for the write and read. Are you trying to continuously send out the command if you get an error? Why? What makes you think you won't have a serial port error again in the next iteration?
06-17-2009 09:15 PM
06-17-2009 09:25 PM
Hello, I was just following the example. Thank you for pointing that out. I have removed the while loops. The code runs alot better now.
Here it is.