LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate "signal" from process

Hello all,

 

I would like to "simulate signal from process", which will come from OPC server(from PLC). It's 0 or 1.

Because I don't have it right now and I must make labview program, I need some input "over time" so I can prepare everything when I get access to OPC server which is connected directly to PLC. So what I need is for example 0,0,0,1,1,0,0,0,0... something in this way, like ON/OFF, changing between 0 and 1 can be random.

 

Is there any example or anything which is already done.

 

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 1 of 7
(2,948 Views)

Anyone?

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 2 of 7
(2,941 Views)

Hi!

 

If I understand well, you would like to have randomlly created two numbers (0 and 1). This should not be a big issue. I created a VI (you can see in attachment Print Screen of this one). With timing, you can determine frequency of genetration of those numbers.

 

This is one idea, there  is planty of another ways to do this.

 

I hope that this will help. 

 

Regards,
Sofija Poledica

0 Kudos
Message 4 of 7
(2,918 Views)

Hmm, why you add 2 loop? I need output random generated 0 or 1 at same output.

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 5 of 7
(2,906 Views)

Hi.

Sorry because I confused you.

This is one loop, but I put same loop twice to show two states of case structure (True and false).

Here is another Print Screen.

 

Once more, sorry because I was not clear.

 

Have a nice day!

 

 

0 Kudos
Message 6 of 7
(2,884 Views)

Is this all you need?  I suggest you check out some LabVIEW Basics tutorials.

rnd.JPG

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 7
(2,869 Views)