LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a calibration code ?, How to build a GUI?

Hello everyone.

I'd like to know when it's appropriate to build an event-driven code.
And when to build a diagram code.

I have two tasks to learn.

 

1. Build an automatic calibrator code:
Processes in order from first to last, without user interruption.
I read data from Scope and calibrate my system.


For example:
I check the height of the signal coming out of my system, and raise the current to the appropriate height.

Is this code correct to use a diagram?
Is it right to switch to code-driven event writing?

 

2. I have a GUI that is built in diagram form, is it correct to change the code to prevent events? Here I interact with the user

 

I have added a sample image

Thank you for the explanation and direction for me.

 

Eliran

0 Kudos
Message 1 of 4
(2,536 Views)

If you'd like some help with your program, then please attach an actual VI.

Attaching screenshots of mostly empty partial diagrams doesn't show us anything.

 

I can give you one tip.

Get rid of those stacked sequence structures.  I do see a 13 frame stacked sequence inside a 4 frame stacked sequence.

Deeply nested code like that is difficult to program and make modifications to, let alone see what is happening.

 

There is a reason NI has dropped the stacked sequence from the palettes.

 

Look up "state machine architecture".  That will likely be the core of your tasks.

 

"Is the code correct to use a diagram"?   I don't understand what that question means.  Your block diagram is the place where you construct your code.

0 Kudos
Message 2 of 4
(2,493 Views)

I understand the pictures for the example. I will change my questions.
I am new and studying LABVIEW.
I still don't know all the right concepts.
This is a code I got ready.


I have a GUI. I read data from my system and allow to write commands to a system.
There are data that is constantly updated, and there are data that only when I read or write.

 

Pictured: stacked sequence structure
The program is built from while loop
In which loads of stacked sequence structure diagrams
And in them there are still in order of preconceived actions.
Is this the right way to build a GUI?

 

Pictured: case structure \ event structure
More appropriate method?
What are their differences?
Are they both used together?

 

Thank you for an explanation

Eliran

0 Kudos
Message 3 of 4
(2,470 Views)

I would recommend you learn more about LabVIEW from here. How to Learn LV

0 Kudos
Message 4 of 4
(2,441 Views)