you want to send data using labVIEW to arduino using write visa and the process and to take action using arduino. A

I want to send data using labVIEW to arduino using write visa and the process and to take action using arduino. After that, I want to arduino to send out necessary via a serial port to labVIEW which should be read using visa read and store in a chain. While I am able to write or read both individually, I can't do it consecutively. I used advanced read and write vi for checking my code, but nothing is helping. The wrong bed 'time delay before execution. " Please let me know where I can go wrong. Also is it possible to write code for hx711 using labVIEW

1. you need not "\n" on your orders println().  This command adds an end of line character already in the message.

2. you get the error because you have a loop around your reading.  After the first reading (well technically, the second because of you add an extra line end character), there is nothing left in the port.  As a result, you will get the timeout.

3. you should really consider using a Structure of the event.  This way you just don't write and read when you press the Write button and you can also use the structure of the event to make the loop to stop.  I also go up to close the port inside the stop-> value Change event.

Tags: NI Hardware

Similar Questions

Maybe you are looking for

  • Update iPhone OS 6 s

    Since the update of the OS on my iPhone 6 s Monday, the phone itself turns off, requiring a warm reboot every time

  • HP pavilion entertainment pc l: locked laptop hp pavilion windows 7

    My phone is locked. When power on a blue box of glitches that says Enter administrator password or power on password... when entering wrong password 3 times it displays system disable it with # 84575236. PLEASE HELP WHAT I DO...

  • Drivers not found!

    I have hp paviliondv6732ee and I can't find a drivers for this to your web page, you can help me?

  • Sky Drive for Window XP, 32 bit.

    Hello I use Window xp 32-bit, how can I download player sky for Windows xp 32-bit, Thank you

  • Jabber client - encryption of VCS Expressway with MRA

    Hi all I'm working on the implementation of MRA for a video solution existing. Version CUCM is 9.1.2 (no IM & P server), vcs - c and vcs-e 8.2.2.  Client Jabber is 11.5.x I finished most of the introduction and I am able to call internally and extern