06-01-2006 10:24 AM
06-02-2006
01:41 PM
- last edited on
07-09-2025
06:37 PM
by
Content Cleaner
06-05-2006 01:03 PM
Thanks, Chris! I appreciate all your feedback. I've previously written a few LV programs and looking back at all the race conditions in my code, it's a wonder that I got anything to work before now!
So, I completed your recommendation #1 and I'm getting the same delayed DAQ system response as before. The following functions execute sequentially: Bluetooth Open Connection, Bluetooth Write, then Close Bluetooth Connection. While the PDA program is open, nothing happens, but after I close the program and then establish the PDA-DAQ BT connection, the last command will execute.
I did get 1 error code. When I wrote this program in a flat sequence structure, I got an error during the Close Connection function: App failed. Unable to lock memory chunk. Error code: 130513003. Despite the error, after the LV PDA program closed, the final DAQ system command still executed with PDA-DAQ BT connection. I wasn't sure what was wrong, so I wrote the program in a State Machine structure as you'd suggested. With this structure all 3 functions executed without error, even though the program still isn't doing what I want.
Any thoughts? I'm attaching both programs.
thanks again, Luan
06-07-2006 02:40 PM
06-07-2006 03:04 PM
Chris,
I just figured out what I was doing wrong-- I wasn't adding a carriage return to the end of my commands to the DAQ system in my program. That's all the setup needed to work. I feel silly, but now I know better and can move on.
Thanks for both your replies.
all the best,
Luan