LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Read parsing data works correctly but polarity and decimal point placement not working

Solved!
Go to solution

I am new to labview and working on a project that accepts seral data. I am reading the information and parsing the data correctly but when I try to put the number together the polarity and decimal pt do not seem to be correct. When the polarity is negative, a 1 the number that is output is positive. I posted before and was directed to use the concatenation and the power of 10 and I question whether this is correct. Should I just be checking for the 1 (negative bit) and negate the number at the end before output?

 

I have another question: How to accept a number from the touch panel and just write that number to an output file? I searched in the help and online but could not find an example.

Any help would be appreciated.

 

I have included my vi.

 

Thank you

0 Kudos
Message 1 of 3
(2,517 Views)

Hi gprall,

 

please stick with your original thread, don't create double posts!

 

Here I already told you to rethink & check your sign conversion routine!

 

(When you create a double post you should not only attach your VI, but also a description of the communication protocol - as you did in your original thread. Without that protocal description your question is too vague…)

 

How to accept a number from the touch panel

Which "touch panel" are you talking about? There is no "touch panel" in your VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,512 Views)
Solution
Accepted by topic author gprall001

Sorry, I apologize. I thought since this was a new problem that a new post was required. I fixed the problems addressed in this post myself. Oh and when I created the project/vi I created it as a touch panel project.

 

Thanks again.

0 Kudos
Message 3 of 3
(2,471 Views)