LINX

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 2020

Highlighted

Well, you have a VI in a loop with the text SYNC DEVICE in there. This is the VI where you should add a timeout constant of 1000 to the first VI that gets called in there.

 

Someone obviously improved the Initialize Device.vi to get rid of the hard 5000 ms delay, which in itself is a very good idea. However this does not seem to work nicely with the Arduino Mega, apparently.

Rolf Kalbermatter
Averna BV
0 Kudos
Message 41 of 47
(240 Views)
Highlighted

Colinvellacott_1-1599829736899.png

 

Change the 100 to 1000, is that correct?

Colinvellacott_2-1599829768693.png

 

0 Kudos
Message 42 of 47
(232 Views)
Highlighted
  1. Right click on Open Serial VI and click on Open Front Panel, then go to its block diagram

  2. Right click on Initialize VI and click on Open Front Panel, then go to its block diagram

  3. Right click on Initialize Device VI and click on Open Front Panel, then go to its block diagram
  4. Right click on Synchronize VI and click on Open Front Panel, then go to its block diagram
  5. on the SEND CMD VI that is visible, add 1000 integer constant connected to the Timeout connection.... also I have a screen shot of what it should look like with the fix.

Let me know if that helps.

 

bbelley_0-1599838163588.png

 

 

0 Kudos
Message 43 of 47
(224 Views)
Highlighted

Thank you for efforts.

I tried it and it makes no difference her.

0 Kudos
Message 44 of 47
(197 Views)
Highlighted

I’m sorry to hear that. Could you post a screenshot of what you changed? Just the VI where you added the constant should be enough.

0 Kudos
Message 45 of 47
(194 Views)

Hi I have just revisited this and it now works! I am not sure what I was doing wrong before.

 

As a test I removed the time delay and it failed as it did, put it back in and it works again.

 

Thank you everybody who helped me.

 

Message 46 of 47
(150 Views)
Highlighted

Hmm not sure why it did not work initially but glad to see it works now!

0 Kudos
Message 47 of 47
(131 Views)