Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

i m sending data like 1,2,3 with delay of 1 sec. in between them from my arduino board and i have made vi according to that ,using .net palette , every thing is working fine but i m getting output only when i press that "highlight execution" button..

how to synchronize Arduino board with labview...

i m sending data like 1,2,3 with delay of 1 sec. in between them from my arduino board and i have made vi according to that ,using .net palette , every thing is working fine but i m getting output only when i press that "highlight execution" button.. 

 look at my vi and arduino prog.

0 Kudos
Message 1 of 4
(4,056 Views)

Why don't you have a loop?  Why are even using the .NET in the first place.  Use the VISA serial functions.  They are a lot easier to use.  Here's an example for you to go by.

 

You have no real timing in your VI.  It is obvious that you are using the Run Continuously button, which is a huge problem.  You need to put a loop around where you are reading.  Configure your port before the loop, read as much as you want inside the loop, and close the port after the loop.

 

Attached is an example using VISA.


GCentral
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 3 of 4
(4,046 Views)

sir i am an amature.. so i picked up one example of .net palette for read-write... 

in your VI ....its getting default case every time.. not working properly... 

synchronization is still not done...

 

 

0 Kudos
Message 4 of 4
(4,029 Views)