10-31-2011 05:33 AM
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.
10-31-2011 07:09 AM
Anyone?
10-31-2011 08:19 AM
11-02-2011 07:55 AM
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
11-02-2011 04:08 PM
Hmm, why you add 2 loop? I need output random generated 0 or 1 at same output.
11-03-2011 05:30 AM
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!
11-03-2011 09:39 AM
Is this all you need? I suggest you check out some LabVIEW Basics tutorials.