LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to edit a Vi so you could add an input to it?

I have a VI already made by someone else and I would like to edit it so that I can add another input to it. I'm fairly new to Labview and I never done this before. Any help would be appreciated it.

 

Thanks

 

Moe

0 Kudos
Message 1 of 14
(3,540 Views)

This is done by assigning terminal to controls. It is explained in the LabVIEW Help, and is one of the topics in the tutorial(s). Assigning Terminals to Controls and Indicators.

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

Message 2 of 14
(3,538 Views)

but I have an DAQ assitant that is going to input into that VI. Its a little different. How could I add a control of that type in the VI?

 

Thanks

0 Kudos
Message 3 of 14
(3,522 Views)
Thi is the VI I'm talking about.. The 'Do Reading' Vi currently has the DAQ assitant in it but I want to take it out and have it in the same vi that the 'Do reading' vi going to go into but the 'do reading' vi has to have an input to dyanmic data from the DAQ assitant. I can't seem to know how to do that?
0 Kudos
Message 4 of 14
(3,501 Views)

You didn't initially mention that you're trying to use dynamic data. This is important, and changes the whole ballgame. Smiley Wink You didn't include the VIs, but it doesn't really matter. There is no dynamic data control. You have 3 options:

  1. Use an array and then use the Convert To Dynamic Data function. Note that when you wire an array to an Express VI with a dynamic data input this function gets inserted automatically.
  2. Cheat. Basically this involves greating a graph indicator for a dynamic data wire and then copy and paste the graph onto the subVI and change it to a control. This may lose some of the information in the dynamic data "package", but I have no idea what will get lost.
  3. Don't use Express VIs.   <---- My personal favorite.
Message 5 of 14
(3,487 Views)
this is the vi that I need to add an input to that is dynamic data
0 Kudos
Message 6 of 14
(3,481 Views)

Oli Oli Oxin Free wrote:
this is the vi that I need to add an input to that is dynamic data

Well, that does not really help. Where should the dynamic data be used on the diagram?

 

(btw, I am sure you don't need all these local variables, just wire to the terminals. Your middle case has three instances of the same code, differing only in a single diagram constant. Typically all you need is a case structure containing the diagram constant and one instance of the shared code ouside instead.)

Message 7 of 14
(3,470 Views)

I need a control input for a dynamic data so I could input a dynamic data from the DAQ assitant into the power spectrum. So the DAQ is not going to be there after I put in a control input.

 

Thanks for replying

 

Moe

0 Kudos
Message 8 of 14
(3,429 Views)
As far as I could tell, your VI doesn't even have a Power Spectrum. Are you sure you uploaded the right VI? It doesn't really matter, because like I already said, there is no dynamic data control. Use one of the methods I outlined before. If you convert an Express VI to a regular VI you will see that it uses a graph. Thus, use option (2).
0 Kudos
Message 9 of 14
(3,422 Views)
I am still stumped as before, but here's your VI with a dynamic data control (LV 8.5.1). Maybe you can take if from here. 😄
0 Kudos
Message 10 of 14
(3,416 Views)