LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VERIFY IF THE SIGNAL ACTIVATES

Hi,

I am trying to make a program where if I sent a concrete number plot I want to see if the signal SVRE of the ring activates.

I attach the program.

0 Kudos
Message 1 of 8
(2,775 Views)

Hi 99,

 


@labview99 wrote:

I am trying to make a program where if I sent a concrete number plot I want to see if the signal SVRE of the ring activates.


This ring control named "Ring" is just a control on the frontpanel of your VI. The item "SVRE" will be selected by the user of your VI…

To detect if the user has selected "SVRE" you can use a simple comparison of the ring value with 2, as this is the value chosen for the "SVRE" item.

 

How is the ring control value related to that EthernetIP stuff at all?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(2,756 Views)

Sorry, I haven´t explained well.

I want to insert one number plot ( in the data to set), I want to write 0 2 0 0 0 0 0 0 0 0 0 0 0....

so when I write this I want to verify if  the case 2 of the case structure, which corresponds to SVRE, is activated. 

 

 

0 Kudos
Message 3 of 8
(2,750 Views)

Hi 99,

 


@labview99 wrote:

I want to insert one number plot ( in the data to set), I want to write 0 2 0 0 0 0 0 0 0 0 0 0 0....

so when I write this I want to verify if  the case 2 of the case structure, which corresponds to SVRE, is activated. 


So you send this "data to set" to another device (by EthernetIP). Then you receive an answer from that device.

 

In the next frame a ring control on the frontpanel is read and it's value is used to select a case.

When you want to verify the user of your VI has selected the correct case then you need to place some code inside this case, like a OneButtonDialog…

 

(I still don't get what you want to achieve with this ring control and the EthernetIP stuff.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(2,740 Views)

Yes, that´s it. I send the "data to set" to another device. ANd what I have to see in the answer of the device in the "data received" is 2 64 0 0 0 0 0. And I know that this 2 64 0 0 0 0 0.... corresponds to the case 2 of the case structure.

I hope I have explained better myself.

0 Kudos
Message 5 of 8
(2,735 Views)

Hi 99,

 

then why did you create this ring control?

What is it good for when all you need to do is to compare the received answer with an expected answer???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(2,714 Views)

What I have to do is to put in each case of the case structure the corresponding binary code of the number. For example I have to put in the case 2. 00000010

I put it just like an string constant?

0 Kudos
Message 7 of 8
(2,710 Views)

Hi 99,

 


@labview99 wrote:

What I have to do is to put in each case of the case structure the corresponding binary code of the number. For example I have to put in the case 2. 00000010

I put it just like an string constant?


I don't understand what you are asking here…

You get an array of (u8) numeric values. Why do you think you need to write a "binary code" as selector value in the case structure?

Why do you think you need to use string constants???

(A numeric value is just a numeric value - its representation/formatting in the frontpanel is irrelevant…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(2,676 Views)