I have to REBOOT my computer very thime I use this simple VI

Hi all,
The attached vi is called by another vi when the user wants to know if the [black box] has power. It simply send a command to the [generic a/d..d/a board] which asks the voltage at a certain pin. It works fine! HOWEVER, after I use it, the computer has to be rebooted. I loose communications with the [generic a/d..d/a board]. The only thing I'm doing differently with this vi than the other 20 I have written is Reading the serial port. All of my other programs just write to the port.
Any ideas?
Thanks in advance, this forum is great!
Richard
Attachments:
PowerStat.vi ‏34 KB

Arrow;
Looking at your vi, I have some comments:
- There is no data dependency between the Serial Port Write and Serial Port Read functions. Although you place the VIs one next to the other, that does not guarantee the order of execution, so you may have a race condition in which the read from serial is happening before sending the command with Serial Port Write function.
- I think this command need to be executed only once. If need to confirm, you can place a button to resend the command and then read the serial port. The way is working now is repeating the read/write every 1/10 of a second or so!!
I took the risk to modify your vi to resolve this issues, and the resulting vi is attached. This is only a recommendation.
I hope this is of help
Best regards;
Enrique Vargas
www.vartortech.com
Attachments:
PowerStat_2.vi ‏45 KB

Similar Messages

Maybe you are looking for

  • How to hide fields in table view

    Hi, I'm populating the contents of an internal table in a table view. I want to know how to hide few fields in table view. I'm working on classical BSPs.. no MVC and I have not used iterator. Thank you Sreesanth.

  • I can't uncheck "leave all attributes" in the precompose window

    Hi guys, I can't uncheck "leave all attributes" box in the pre-compose window. even after I double check it, I check the other option, I've tried with Crtl+Click over the check box, and so on and nothing works cause the option remains checked. Somebo

  • Not Again! Window Ultimate Parallels and Bootcamp

    I have read hundreds of threads and I don’t want this to be another but I have question that were not specifically answered on not answered at all. I am a life long Windows user and finally made the jump a few months ago. I am a photographer and I ha

  • My apple id hacked?

    How can i figure out if my apple id is being hacked, as well as my e-mail and my iphone. The other night all of a sudden i got signed out of everything and none of my passwords would work. so i had to make new passwords and then it happened again as

  • Migration Error from Access to Oracle through SQL Developer.

    Hi, Actually I am trying to migrate data from MS Access 2002 to Oracle 9i database through the SQL Developer. But Whenever I go to Capture Database from Access it will show me an error.... Invalid procedure Call and then it shows an error message...