LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino & NI-VISA

I put a line in my VI to display whatever data comes from serial port, it shows normal for incoming data (no breaks, no strange looking ascii chars etc.) but the gauges drops to zero sometimes. Thanks for your endless support but if i really knew how to debug from LabView i should do that as you said many times.

0 Kudos
Message 21 of 22
(403 Views)

Put a conditional breakpoints in there so that your code stops when you get a zero on those displays.  Then stop your VI, make the values shown in the indicator the default values, save the VI and attach it.

 

There must be something wrong in that string coming in, perhaps you can't even see it (try turning on \code view) that is causing your values to turn to 0.

 

The thing is, we can't debug your code for you.  We don't have your VI, we don't have your equipment, and we can't run it to see why you are getting invalid data.  You need to use the debugging tools that are provided to figure this out.  At least use the tools to provide us something we can look at.

0 Kudos
Message 22 of 22
(395 Views)