LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I can't update or type a number while my VI is running. What is going on ? Can someone please help? I have attached my VIs.

To avoid broken VIs, place all of them in the same folder.

So I am combining two subvis into one main VI. Individual subvis run fine; values can be changed. The problem happens when I combine my subvis into one main VI. I can only increment by 1 by clicking the arrow. I want to be able to type for 0.7 when the main VI is running. It does not work for me. 

 

Capture.PNG

This below is the main subVI front panel, do the following to be able to combine the two subVis:

Capture1.PNG

 

 

0 Kudos
Message 1 of 8
(1,077 Views)
  1. You need to learn about data flow (the 2nd call to "Call file.vi" can't start until the 1st one finishes).
  2. You need to learn about and use event structures
  3. Your code constantly inserts and removes VIs from subpanels (that's why you can't type on them: you click on the number with the text tool, and almost instantly the VI is removed then reinserted.
  4. Your code never runs the VIs in the subpanels.
  5. "Arduino PWM generation1 (2019 LV).vi" has a loop spinning at max speed.  Use an event structure to capture Value Change events on the numeric control.
  6. "UL voltage reading (2019 LV).vi" has an infinite loop, and it's spinning as fast as possible.  You need to code a way to exit, and also put limit the iteration rate.
  7. Also, the arrangement of the subpanels on the FP doesn't match the arrangement of the other controls.

Have you studied the LV tutorials?

I suggest you start over, rethinking your architecture entirely.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 8
(1,059 Views)

I don't have access to courses unfortunately. Maybe you can give me your access or you can start teaching. I'd be glad to join your class. I just use youtube to learn labView. I cannot afford to buy these labview courses. Come on Pau Paul. You should give me a credit for at least being able to write some code without LabView courses.

0 Kudos
Message 3 of 8
(1,052 Views)

Every time the subvi is reinserted, the control is reset. There are two quick-and dirty ways to make it work:

a) into Call file.vi if the subvi is already running, don't remove and re-insert

or, better,

b) insert the subvis once, then manage the Stop button

But of course all Paul's suggestions should be addressed.

I guess that lessons at the NI Learning Center are free (see above the thread list).

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 8
(1,041 Views)

@GRCK5000 wrote:

I don't have access to courses unfortunately. Maybe you can give me your access or you can start teaching. I'd be glad to join your class. I just use youtube to learn labView. I cannot afford to buy these labview courses. Come on Pau Paul. You should give me a credit for at least being able to write some code without LabView courses.


The online tutorials are free (check out the links at the top of the forum).

https://learn.ni.com/

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 8
(1,029 Views)

I do not have access to courses. I used the link you share. I want to learn about architecture; I scrolled all the way down and there is no button that says "start course"

Capture.PNG

0 Kudos
Message 6 of 8
(1,008 Views)

I don't have access. I'm also logged in.

Capture.PNG

0 Kudos
Message 7 of 8
(1,003 Views)

Do you own LabVIEW? If not, some courses have what is called "active product based entitlement". So if you do not own a full purchased version of LabVIEW you cannot access them. If you click the link that says log in to find out if you have access. That will take to your learning dashboard which lists the courses that are available to you.

Creig Mills
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 8 of 8
(982 Views)