09-24-2018 03:54 PM
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
09-24-2018 03:57 PM
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?
09-24-2018 04:02 PM
I have just never heard of LabVIEW or VISA functions working the way you are describing them.
09-24-2018 04:14 PM
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.
09-24-2018 07:12 PM
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
09-25-2018 01:47 AM - edited 09-25-2018 01:47 AM
Hi Anthon,
try to simplify your VI like this:
- 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!
09-25-2018 02:48 AM
thank you so much!! now one more question, do i need a waitms inside the while loop?
09-25-2018 03:08 AM