Quantcast
Channel: LabVIEW topics
Viewing all 69263 articles
Browse latest View live

Control Logic of speed of a servo motor

$
0
0

Hi guys,

 

A problem has been confusing me when I'm doing some test with NI9514 and AKD servo drive: I used Straight-Line Move to give a certain velocity to the motor which is configured with velocity mode in servo drive, and the motor ran properly. But in the axis configuration there is only position control loop, so where exactly did my velocity input go into, and is there anything to do with the position PID controller here? If I choose to control the position, does it mean both the position control loops in this axis and servo drive will work at the same time? The axis configuration and block diagram of position and velocity mode in the servo drive software Kollmorgen Workbench are shown below. Any answer is greatly appreciated!

axis config.PNGposition mode.PNGvelocity mode.PNG

Best Regards


PPL class context help

$
0
0

Hello,

 

Working with source code, when the mouse hovers over a class wire, class control, etc., the context help window displays information about the private data cluster of the class. For descendant classes, it displays the descendant's details plus the ancestor's details.

 

When the class is built as a packed project library (PPL), the information regarding the class' private data is not visible in the context help window. Is there a recommended workaround for this? I am aware that private elements are not exported when PPLs are built, but I find it a big drawback for documentation purposes, that a PPL class is missing such information.

 

Thanks, 

Vision Acquisition Express must be launched from LabVIEW error

$
0
0

Hi,

 

The program I am trying to run is using vision acquisition express VI. But when i try to change the properties of the block is gives me error 1. The thing is when i had VAS 2015_08 installed it worked to open the properties and so on. But the camera in use was typ USB3 so VAS 17.5 or higher was needed for the drivers, since VAS 2015_08 didn't allow the computer to detect the camera. I use LabView 2015. I have reinstalled LabView and VAS 17.5. Do you have any ideas of what i should try next? 

Labview: (Hex 0x464) VI is not loadable.

$
0
0

I have an LabVIEW 2018 executable built on a Win7 pc. It runs fine. I ran it on another Win7 pc and a Win10 pc and it runs fine. However, another Win7 and Win10 machine have the following errors. The PCs that fail do not have the LabVIEW 2018 Development installed, only the 2018 Runtime Engine. The app has the following dll dependencies, Advapi32.dll, kernal32.dll, lvanlys.dll. Any suggestions how to fix this? 

 

 

 

qq.jpg

TTL signal output issue from NI9401

$
0
0

Hi everybody, I am having issues producing an output TTL signal from the module.

 

I can't seem to figure out what is causing the problem.  I am currently using the cRIO-9042 with an NI9401 module. The module is under Real-Time Scan Resources and I have configured the module properties to output for DIO7:4.  When I put a True signal to turn on the output, it stills remain False. 

 

Any help or advice on this particular issue will be greatly appreciated! This problem has been hindering my progress. Thank you!

labview y 6008

$
0
0

Hola. Tengo un 6008 y Labview 2014. Labview no me reconoce el dispositivo 6008. Que puedo hacer? 

How to auto-index arbitrary dimension of a multidimensional array in a for loop ?

$
0
0

Hi,

 

I want to use for loop to execute something on each page of a 3-dimensional array, but the auto-indexing only seem to work on the first dimension of arrays.

 

Also, there is no permutation function in labview, so I cannot rearrange dimensions beyond 2d arrays.

 

What I need is best described by the matlab code:

 

for i = 1:size(A,3)

A(:,:,i) = fun(A(:,:,i),i)

end

 

Any suggestions besides indexing it manually ?

Labview HELP

$
0
0

Create a VI that plots sin θ versus cos θ for 0 ≤ θ ≤ 2π. Display the output on an XY graph. Label the x-and y-axes “sin(theta)” and “cos(theta)”, respectively. Add a cursor and a cursor legend to the plot. Using the cursor, verify that when sin θ = 0 (along the x-axis) that cos θ = 1 (along the y-axis). What geometrical figure results from running the VI?

 

I need help with having the  0 ≤ θ ≤ 2π be executed into a graph. Any point in the right direction would be greatly appreciated


Front Panel (.exe) disappears when loop is initiated.

$
0
0

Front Panel (.exe) disappears when loop is initiated. However, in LabVIEW development Front Panel remains displayed.

Lab use write spreadsheet

$
0
0

I need some help writing to a spreadsheet. I’m working on the following example http://www.ni.com/example/31405/en/ 

 

for part 8, write to spreadsheet, I can’t get it to work. I add the vi into the loop( it’s the write to delimited spreadsheet vi) but it won’t recognize any file.  When I run without a file location and it prompts me to pick a file, nothing is selectable. I end up just closing the screen and getting error 43. Any hep would be appreciated. 

Multiple vi's exe installer ??

$
0
0

Hi everyone, I created a program with 4 vi's, They are relative each other, The main vi calls other vi's in need, ( you can see the image). My question is how to build executable installer with that vi's together as a standalone executable ? Thank you.

img.jpg

 

 

 

Sinusoidal Linear Actuator Control - Help Needed

$
0
0

Hi,

 

I am trying to get a linear actuator (Haydon-Kerk Ametek 3H4A-2.33-815) to move with sinusoidal motion but am unable to figure it out using the driver files provided to me by the company I ordered from.  The IDEA drive is Haydon-Kerk Ametek PCM4826E-K. The communications manual here (https://www.haydonkerkpittman.com/-/media/ametekhaydonkerk/downloads/products/drives/idea_drive_communication_manual.pdf?la=en) provides the command sets for use with this drive.

 

I have been able to get the linear actuator to move in one direction, either forward or backwards, until I hit the stop button or until it reaches its max/min position.  The problem I am having is trying to get it to perform continuous movement going forward and backward in a cyclic regime until I hit the stop button.  After talking to several people experienced in LabView, they seem unsure whether this is possible using the files provided by the company which I have attached in a zip file below.  It includes 5 .vi files for different functions  (read, write, parse position, parse max current, and find drive) and a sample program that combines all of these functions.

 

I have also attached a .vi file called "While_Loop_Movement" which moves the linear actuator with the 'M' command to a specific position.  I programmed the loop to read out the position of the actuator before the loop is executed and after the stop button has been pressed. 

 
The Case_Structure_Movement .vi file has three 'cases' for the linear actuator to move: forwards (using the 'M' command), backwards (using the 'M' command), and a default stop case (using the 'E' command). 
 
While these modified files do work in moving the actuator, they are mostly a result of me messing around with the original files Ametek provided in order to get the actuator to move.  Please note that the 'positions' referenced with the 'M' commands are all relative, and not absolute.  I currently do not know how to get an absolute position value.
 
Ideally, the goal is to get the actuator to move in a sinusoidal motion and to be able to control the displacement amount as well (in millimeters).  Furthermore since I am not sure how to obtain an absolute position value from the actuator I am not sure how to control the displacement (as it is reading in as bytes and it is not saving its previous position before executing the next movement; the actuator just moves a distance relative to where it was already at).

 

If anyone could help with (1) the problem of getting sinusoidal motion rather than movement in one direction or (2) the problem of how to get an absolute start position and tell the actuator to move an absolute number of steps it would be greatly appreciated!  Thanks

Continuous graphing of two (or more) signals from the same DAQ

$
0
0

Hello,

 

I am very new to Labview (building my first VI) and I could use some help.

 

I am using a PCIe-6321 receiving two analog voltages from a BNC 2090. I have used DAQ assistant to generate continuous waveform charts from each channel and placed them inside while loops.

 

When I run the VI, only one or the other loop runs, seemingly selected at random. I am interested in both why this is happening and, more pressing, how to get both charts to display the waveform concurrently. 

 

Later I will be trying to add more signals in the same way and log the data, but just getting them to work at the same time would be a great start.

 

Thanks

Reduced time duration problem in arbitrary signal generation

$
0
0

Hello,

I am trying to generate a trapezoidal signa using labview(Analog output,NI 9263).I am able to get the desired amplitude but the time duration of the particular signal(when viewed on Oscilloscope) is not as specified.I tried playing with the timing sextion 'dx' in signal definition window.What I found is that timing dx =.005 reduces the time duration of signal by 5 times.Same is the case with dx=.003,it reduces the time duration by 3 times and dx=.01 by 10 times.

Can anyone please help me with it?

I am attaching the Vi herewith.

Regards,

Pieterson 

Controlling Variable Frequency Drive (Optidrive E2)

$
0
0

Hi Folks,

I am currently a student and working on a project where I need to control a motor speed through Optidrive E2, which is connected with CPU through speedy and Ethernet cable. I am wondering if someone has already worked on something similar? Is it possible to control the VRF (variable frequency Drive) by LabVIEW through speedy.. ?? Speedy is a device by Driveweb.. https://driveweb.com/speedy-embedded-automation/

Thanks in advance!!


Broken wire in Excel Library routine

$
0
0

I have an application that works under the development system, but I get the following error when I build.

 

A VI broke during the build process from being saved without a block diagram. Either open the build specification to include the block diagram of that VI or enable debugging to include the block diagrams of all VIs in the build. Report this error to National Instruments technical support.

C:\Program Files (x86)\National Instruments\LabVIEW 2018\vi.lib\addons\_office\excel.llb\Excel Sort Data.vi

 

If I "Enable Debugging" for the build, the build error goes away, but I get an execution error that the Excel Sort Data.vi has a broken wire. Opening that VI shows that there is a property node that has required inputs unassigned. How do I recover from this?

when spliting data, how to ensure which channel it comes from?

$
0
0

I input signal from two channel and split the data with split vi, usually, the upper wire connect to the ai0 while the lower one connects to ai1, but sometimes it will reverse, what can i do to fix it?

屏幕快照 2019-03-12 下午4.53.38.png

Real time low pass filtering

$
0
0

Hi,

I am trying to apply real-time law pass filtering for my experiment. I have prepared a code using an artificial signal and adding noise. But when I add the code in real-time data acquisition system (code), it doesn't work well. Both codes are attached here.

 

Would anyone explain the errors or problems or miss connection, please? 

custom PATH for application

$
0
0

Hi everyone,

I am trying to adjust the windows PATH environment variable for my application, but I do not want to modify the global PATH. Is there an option in the build specification that I don't see? Any other built-in method?

One way to do this is to launch the application with a custom shortcut like this. Another way would be to start the application from a bat file that sets the PATH. Both would need to be created from a post-install script which proves rather difficult Smiley Wink


For context: this issue comes up because I want to ship an embedded python environment with my application. For the Call Python Node to find python, it needs to be listed in the PATH.

Cord

code image processing

$
0
0

hey guys 

i am khalil from tunisia . i have a big problem with my project 

i am building an uderwater robot and i need a shape detection program with labview to detect triangles , rectangles and cercles 

thanks .

Viewing all 69263 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>