LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create ladder diagrams in Labview

Hi All

 

I am pretty new at lab view, I’ve done a few programming’s together with a DAQ.

 

My job(student) is now to simulate a process line. The processline includes the handling of a product from process to process and together with solid works simulate the processes. Because we do not have the tools and machines, we only want to simulate the processline. And because of that we have decided to use Lab view instead of cx-programmer, because we then can have lab view working together with solid works as a simulation.

My problem is I am not familiar with creating ladder diagrams in lab view. I've bin searching the subject but did not find anything useful. Any of you who can help or have any guides ?

 

Sincerely Laws Jespersen

 

Student at Aalborg University 

0 Kudos
Message 1 of 14
(6,594 Views)

@LawsJespersen wrote:

Hi All

 

I am pretty new at lab view, I’ve done a few programming’s together with a DAQ.

 

My job(student) is now to simulate a process line. The processline includes the handling of a product from process to process and together with solid works simulate the processes. Because we do not have the tools and machines, we only want to simulate the processline. And because of that we have decided to use Lab view instead of cx-programmer, because we then can have lab view working together with solid works as a simulation.

My problem is I am not familiar with creating ladder diagrams in lab view. I've bin searching the subject but did not find anything useful. Any of you who can help or have any guides ?

 

Sincerely Laws Jespersen

 

Student at Aalborg University 


I have been coding in LV since the last millenium and the absolute worse nightmare applications that arrived at my desk were developed by Ladder logic programmers!

 

Let me repeat THE WORST!

 

Speaking for the ones I have had to re-write, the developers start to look at LV diagrams as if they are ladder logic on its side.

 

The approach to writting lader-logic and LV are different.

 

So the more sueful thing I can tell you is do NOT try to write ladder logic in LV! (Please please please please! )

 

Search this site for the term "State Diagram" and spend some time trying to understand how to think in terms of "states".

 

You can ignore if you want. That is fine. I have done my good dead for today.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 14
(6,563 Views)

Another warning I would have loved to pass to the developers of the code I have seen.

 

Also note that locals and property nodes are not intended ofr data storage. They should be looke at as if they are I/O devices and only touched when you have to touch them.

 

Learn about Shift Registers.

 

War story

 

In the lsst )pianful) three weeks I have been updating an app that suffered from Ladder-logic thinking. The CLA (cetified LabVIEW Architect) I was working with could barely make sense of what was going on in the code. It took me three days of re-wiring and creating sub-VI to get it down from twelve screen wide sequence structure into something that resembles a State Machine that is not managable.

 

SO please don't try LL in LV.

 

Ben

 

PS Do I sound despearte?

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 14
(6,543 Views)

 

Don't hold back Ben, tell us how your really feel!

@Ben wrote:

Another warning I would have loved to pass to the developers of the code I have seen.

 

Also note that locals and property nodes are not intended ofr data storage. They should be looke at as if they are I/O devices and only touched when you have to touch them.

 

Learn about Shift Registers.

 

War story

 

In the lsst )pianful) three weeks I have been updating an app that suffered from Ladder-logic thinking. The CLA (cetified LabVIEW Architect) I was working with could barely make sense of what was going on in the code. It took me three days of re-wiring and creating sub-VI to get it down from twelve screen wide sequence structure into something that resembles a State Machine that is not managable.

 

SO please don't try LL in LV.

 

Ben

 

PS Do I sound despearte?

 

 


 


Paul
Message 4 of 14
(6,541 Views)

Hi,

 

In addition of what Ben said, you can have a look at the Statechart Module , but it requires a good knowledge of LabVIEW programming and may not be easy to use if you are a beginner.

 

Regards,

Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
Message 5 of 14
(6,531 Views)

Having done ladder logic programming myself, I agree with Ben 1000%.  That language was intended for non-programmer types to create a program.  The concept of throwing switches could be grasped by almost anyone.  The rungs of a ladder are pretty straight forward.  This made it fairly easy for a tech-type to create programs for PLCs.  But Labview is a REAL programming language.  My advice is to take advantage of the full power or Labview and forget ladder logic.

 

- tbob

Inventor of the WORM Global
Message 6 of 14
(6,494 Views)

Wow this post is awesome, i am writing a proyect to present my degree in automation with a PLC siemens, I am simulating the proyect with simulation loop from Control Design & simulation tool kit, I want to create a DSC to monitor all the variables, and this post made me think :S 

 

I know that Ladder logic was created to the technicians for Ford, "a few" years ago, do you think that ladder logic will dissapear in the future ?

 

thanks.

Electrical Electronic Engineering
0 Kudos
Message 7 of 14
(6,449 Views)

I think ladder logic will disappear about the same time that anti-gravity platforms cause ladders to disappear.

 

Lynn

0 Kudos
Message 8 of 14
(6,392 Views)

I disagree with Lynn.  I think ladder logic will still be around even after anti gravity platforms replace ladders.  Smiley Very Happy  There are just too many PLCs out there that still use ladder logic.

- tbob

Inventor of the WORM Global
0 Kudos
Message 9 of 14
(6,380 Views)

>>But Labview is a REAL programming language. 

 

But I thought LabVIEW was just a proprietary, application-specific development environment? 

 

Heh heh ... lets not go down that road again.  Smiley Wink

http://www.medicollector.com
0 Kudos
Message 10 of 14
(6,370 Views)