LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i make one displayed indicator represent multiple indicators

I have a front panel that has an indicator of a wheel
position. I want this single indicator display to
display the real time value of different position modes in different sequnce frames / loops in this
single front panel indicator. I tried to wire multiple outputs to this single indicator but i get an error message.

I also cannot get called subvi indicators to link to this main front panel indicator.

Help?
Thanks
0 Kudos
Message 1 of 20
(4,938 Views)
Could you please post an example of what you are trying to do?

This would help us help you.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 20
(4,938 Views)
It sounds like you are using LabVIEW for Windows, and not running on an embedded Real-Time controller. If that is the case, I believe this question would be better handled in the LabVIEW General group. You would get a much larger audience there.

That said, I think the answer to your question is to use local variables. If you right-click an indicator and Create -> Local Variable, you can use these to write to in from many different places on your diagram.

For the case of a sub-VI, you could make it a global variable, or better yet, right-click the indicator and Create -> Reference. Then pass this into the sub-VIs and use the generic LabVIEW property node with it to set its value.

If this did not answer your question, I would try posting to the LabVIEW G
eneral group.
Message 3 of 20
(4,939 Views)
Hi ben!
many times i have read your answer.Even i subscribed your answers.Since i'm new to labview i dont know how to read a float array from vb through tcp read.
There i'm using winsock control to send data using winsock.senddata mathod.In labview simply i put tcp read after establishing connection between them.
I have put a string control in labview . Its showing some characterss like @#%$.Even i tried typecasting,sstring unflatten.Internally how its converting.
0 Kudos
Message 4 of 20
(4,938 Views)
Hi parimala,

the data from the TCP/IP read is returned as a string in LV (as you know). You should investigate the format of the data you are recieving. If the data is just suposed to be an array of floats, then the bulk of the data you should be able to cast as a float using the type cast function.

Generally (not always) the first couple of bytes (2 or 4 usually) will be a count of the number of elements contained in the array. These preliminary bytes have to be tossed before you do your type-casting.

I suggest you start by putting your data in a string indicator and enabling "slash codes" so you can see everything. You could also try type casting to a byte array, stripping of the first couple of bytes and then type cast the rest back to
a string and then to a float.

This is just a lot of guessing!

If you post your VI with an indicator/control that has the data you are after to the LV general list one of us will probably be able to be of more assistance.

I am much better with visual aids.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 20
(4,938 Views)
Hi
with this i have attached my vb code as well as the vi which is reading it.
my vb code is as follows

Private Sub Command1_Click()
Dim data(4) As Variant
Dim s As String
Dim st(4) As String
Dim i As Integer
data(0) = 34.46
data(1) = 56.78
data(2) = 68.89
data(3) = 45.22
For i = 0 To 4
st(i) = Str(data(i))
Next
s = st(0) + st(1) + st(2) + st(3)
Winsock1.SendData s
End Sub
0 Kudos
Message 6 of 20
(4,938 Views)
Take a look at the attached VI.

I threw in a bunch of stuff that may help you figure out what you you need to do to get your data.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 20
(4,938 Views)
Sorry forgot attachment.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 20
(4,938 Views)
Hi Ben
I have sent the attached VB code and a vi to read through TCTP?IP.
Pls give me a reply.Or Do send me a vi that is reading a float array from Winsock control in Vb.
0 Kudos
Message 9 of 20
(4,802 Views)
Thank u BEN.I saw your attachment.But in that the first data is not coming.34.46 is not coming.
0 Kudos
Message 10 of 20
(4,940 Views)