03-29-2007 11:39 AM
Hi,
I’m having some issues trying to use an RS232 interface to send and receive information at a fast enough rate.
The code should constantly monitor for any signals being received and deal with them as necessary and every 10ms it should output one of four words defined by the states of local variables.
The problem is that the code seams to take awhile to boot up and start running, but even then it will only output a word once it has received one even though the codes are running in separate loops. If left for between 15-20 minuets the
Dose anyone have any ideas on how I can speed up my code?
Attached are the files used within this segment of the code, there are however other sections that will have to run on the RT processor, but these are not yet finished.
Thanks on advanced for your help.
Rob
03-29-2007 11:51 AM
04-02-2007 10:53 AM
Hello Rob,
Can you please post all of the VIs that are in your code as there are several that are missing (gearcalc.vi etc).
Cheers
Tom
NIUK
04-02-2007 02:15 PM
04-02-2007 02:16 PM
04-02-2007 05:09 PM
04-03-2007 03:55 AM
04-03-2007 04:55 AM
Thanks for the advice, I'll try them out today.
Hear is the zipped file as requested.
Regards
Rob
04-05-2007 04:55 AM
Hello Rob,
You need to add ALL of the VIs that are called in this code to the project then Zip it up. I still can't try to test it out without ALL of the subVIs. Have you tried changing your timing considerations within the code yet?
Cheers,
Tom
NIUK
04-07-2007 03:35 AM
Hi Tom/Xseadog,
I have now tried adding the timing into the loops and this has indeed solved the problem with the RS232, thank you, however I still require the CAN loop to rum at approximately 1 MHz, which seams to be the new problem. I’m going to try and get round this by putting this section of the Code onto the FPGA, hopefully I’ll be able to create enough space.
Sorry about not attaching all the VI’s to the zip file, I followed the online guidance but must have missed a step. I’ll try an zip up another copy over the weekend and post it up. Any further info you can give me on optimising the code would still be very much appreciated as I still have to merge this code with another.
Thanks Again
Rob