LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String control not updating to latest values untill probe watch is used.

Solved!
Go to solution

 I know that I'm receiving it in my arduino because I got two motors, each one works depending on the value sent by lab view when I get the "V" one motor starts working (this is the part that works well, once i switch to this case the "V" is sent right away and the motor starts working, but when i switch to the true part and try to update the value (setpoint) the other motor doesn't work until I open probe watch on the write buffer terminal of VISA write. the value(setpoint) is sent upon using probe watch or highlight mode, got no idea of whats goin on

 

 

0 Kudos
Message 11 of 18
(958 Views)

 I know im receiving it in my arduino because i got two motors that depend on the value sent by labview, the "V is sent right away and one motor begins working but the other motor doesnt start till i open probe watch on the write buffer terminal of VISA write.

 

And yes I already try clicking outside the control and still not working,

 

what do you mean by false?

0 Kudos
Message 12 of 18
(957 Views)

I have just never heard of LabVIEW or VISA functions working the way you are describing them.

0 Kudos
Message 13 of 18
(950 Views)

Oh, I just meant that Update While Typing can be turned on or off (set to true or false). But it doesn't really matter since you have it off and I think that's the right call.

 

I really don't know what about setting a probe on that wire would be doing to make it work with the probe and not work without, sorry.

 

Some things you could try would be getting a program that can "spy" on your COM port or whatever and use that to see for sure what's really being sent. You could also try changing your string control to a constant (like the 'V') temporarily and see if it also works that way, just to find out if it's related to that.

0 Kudos
Message 14 of 18
(942 Views)

Well, I will carry on searching for a way to make it work if I get to do it i will post it here, thanks guys.

I really appreciate the help

0 Kudos
Message 15 of 18
(917 Views)
Solution
Accepted by topic author AnthonX

Hi Anthon,

 

try to simplify your VI like this:

check.png

- No need to spin the loop as fast as possible when you don't want to communicate with your device.

- Do VISA Write/Read in serial…

- I used the select node instead of a case structure: due to dataflow there has to be a value send to the Arduino! You only need to check it's string content: use an indicator!

- Read the help for the InPlaceAndCoerce function to learn all its options!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 18
(914 Views)

thank you so much!! now one more question, do i need a waitms inside the while loop?

0 Kudos
Message 17 of 18
(907 Views)

Hi Anthon,

 

do i need a waitms inside the while loop?

No.

The VISARead will wait for messages of your device and so limit the iteration rate.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 18
(904 Views)