LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW VISA read from Arduino

Solved!
Go to solution

Your string constant that says 02,  is that set for hex display or normal display?

 

Make sure it is hex display, and that you make the Display Style visible so it is obvious.

 

For stuff in parallel, it is hard to tell what is happening in those pictures.

Attach the VI that shows your best attempt.

0 Kudos
Message 11 of 13
(700 Views)

Your Method 2 appears to have a data flow issue.  I am guessing the green wire is coming from the Stop button that is currently in the Serial loop.  This causes a data dependency and cause your DAQ loop to not run until the Serial loop is complete.  I normally use a messaging scheme using a Queue or Notifier to tell a loop to stop (typically a queue since I use Queued Message Handlers a lot).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 13
(691 Views)

@crossrulz wrote:

Your Method 2 appears to have a data flow issue.  I am guessing the green wire is coming from the Stop button that is currently in the Serial loop.  This causes a data dependency and cause your DAQ loop to not run until the Serial loop is complete.  I normally use a messaging scheme using a Queue or Notifier to tell a loop to stop (typically a queue since I use Queued Message Handlers a lot).


The green wire was indeed from the while loop at the top. I implemented 2 individual stop actions to try your advice, and it works. Thank you!

 

@ wrote:

Your string constant that says 02,  is that set for hex display or normal display?

 

Make sure it is hex display, and that you make the Display Style visible so it is Obvious.


The string is set to hex display indeed. I have set it to Display Style to make it visible now (i didn't know that this option exists), so thanks for the information.

0 Kudos
Message 13 of 13
(682 Views)