LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

codes for labview

hello folks of master users,
 
i really need some helps with the code for labview, where do i search to find ( ai multi pt, pid.vi)?
any helps would do, thank you
0 Kudos
Message 1 of 14
(4,469 Views)

I'm not sure I understand..  Are you talking about a topic such as discussed in this thread?

As for doing a search, simply ask a question in the box left of the GO button above, as shown in the attached image.

A seach on PID can be found HERE

Message Edited by JoeLabView on 06-27-2007 11:50 AM

Message 2 of 14
(4,464 Views)

ok, here is what i have, by the way i dont know if im at the right forum, but if you have knowledge, the pls help, thank you.

 

i have a pid.vi, but how do i change it into an icon to put in the circuit.?

0 Kudos
Message 3 of 14
(4,441 Views)

Do you mean how to place it within a block diagram?

If so, there are 2 ways:  1 (simplest?) open the VI you attached below.  Have the destination block diagram opened.  Use the mouse cursor and click on the connector pane (icon of this vi) and drag it into the destination block diagram.

2. (more comprehensive) :  From your block diagram, in the Functions Palette, click on "Select a VI".  Browse and select your vi.  It will place it one your block diagram.

Message 4 of 14
(4,436 Views)
Message 5 of 14
(4,434 Views)

Message Edited by JoeLabView on 06-27-2007 01:24 PM

0 Kudos
Message 6 of 14
(4,438 Views)


@NW wrote:
i have a pid.vi, but how do i change it into an icon to put in the circuit.?

"Circuit" is not a LabVIEW term. Most likely you want to use it as subVI in another diagram. You're almost there. All your connectors are hooked up.

There are many ways to place it on another diagram:

  • Simply open a new (or existing) diagram then go to the bottom of the functions palette and select the pid.vi.
  • If your pid.vi is already open, you can just grab the icon of pid.vi in the upper right corner and drag it to the new diagram.
  • If you have an explorer window open with pid.vi visible, just drag it onto the desired diagram.
Message 7 of 14
(4,433 Views)
I just had a quick look at your vi..
 
are you intentionally leaving the shift registers uninitialized?  if so, they retain the last value each time the vi is called...
that means, everytime the vi is called, whatever value was last put into the shift register will still be there when the vi is called later (except when released from memory or completely exiting LV, etc)...
0 Kudos
Message 8 of 14
(4,408 Views)


@JoeLabView wrote:
are you intentionally leaving the shift registers uninitialized? 
I am pretty sure that's intentional. PID needs current and previous values to decide how to regulate (not that I am an expert here). Also the loop only runs once per call. 😉
Message 9 of 14
(4,404 Views)
We'll have to call you "Hawk-Eye".
 
I missed that one...

Message Edited by JoeLabView on 06-28-2007 09:41 AM

0 Kudos
Message 10 of 14
(4,370 Views)