LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

image selector according of the configuration of an input

I have a problem, I wish to programmed in LABVIEW but not how to do it  I can explain to you if yoy can help me.
 
I have 6 inputs, according to the configuration of these entries would show certain images in the LABVIEWan example:
I have A B C D E F as inputs,
          - If A and D are 1 Figure 1 show,
          - If A and F are 1 Picture 2 show,
          - If B and C are 1 Picture 3 show,
          - If A and E are 1 show Figure 4.
 
The values ​​of A B C D E F come from a PLC. and I'm keeping this data in a Num Ind. (numerical indicator) in LABVIEW.

 

Can you help me?

 

Thank you!-

0 Kudos
Message 1 of 24
(3,611 Views)

Do you have 4 different picture indicators?

 

If you have singla picture indicator what should happen if the other probablity comes?.

 

Explain little more so that you would get a better solution.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 24
(3,605 Views)

Yes I have 4 diferent image to show.

 

It could be 4 diferente pictore indicators or a single one, It depends of the solution that you can give me.

0 Kudos
Message 3 of 24
(3,601 Views)

In the RING and ENUM palette, there is a thing called the PICT RING.

 

I use one of those to display status: 0 = normal = Company logo, 1 = warning = pict of sign: "Levels Exceeded", 2 = danger = pict of sign: "Danger", 3 = emergency = another pict.

 

Convert your boolean inputs to a number and feed that number to one of these and you're done. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 24
(3,596 Views)

And, Convert my boolean inputs to a number??

0 Kudos
Message 5 of 24
(3,593 Views)

Sorry, I misread your original post. The "and" made me think of booleans.

 

         - If A and D are 1 Figure 1 show,
          - If A and F are 1 Picture 2 show,
          - If B and C are 1 Picture 3 show,
          - If A and E are 1 show Figure 4.

 

Do you mean:

  if (A = 1) and (D = 1)

    show Figure 1

  if (A = 1) and (F = 1)

    show Figure 2

  etc?

 

If that's what you mean, then writing it down as I did should show you the way to go.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 6 of 24
(3,590 Views)

Yes, That is exactly what I want, But where can I write it? what windows or where? And if I put "show picture" where will appear the image?

0 Kudos
Message 7 of 24
(3,587 Views)

I don't understand your question.  The picture appears wherever you place the PICT RING indicator on your panel.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 8 of 24
(3,584 Views)

Where can I put the code as you written? Where Can I program that Code? in the pict ring? or Where?? Could you make a VI proyect to me for undertand the solution??

5 input ( A B C D E)

          - If A && D == 1 

show Figure1 
          - If A && F == 1 

show Picture2
          - If B && C == 1 

show Picture3
          - If A && E == 1 

show Figure 4.

 

? Please??

0 Kudos
Message 9 of 24
(3,580 Views)

Your code is indicative of the nonsense that the C language forces you into - "&&" means treat this as a boolean, but "1" is an integer.

LabVIEW has distinct types: a BOOLEAN is true/false, and an INTEGER is a number. 

 

The first rule of moving from C (Pascal, Fortran, etc) to LabVIEW is "forget all the crap that you used to have to do".

 

Here is a VI that does something like what you want.

 

You didn't cover all possible combinations, neither does this VI.

 

But you can diddle the switches and get different pictures.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 10 of 24
(3,578 Views)