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

Event Structure will not execute multiple times until all events have ran

$
0
0

Hello all,

 

I have a VI that features 3 event structures that trigger on button presses of the front panel. 

 

The events are:

Initialize Laser

Begin Test

Disconnect

 

I would like to be able to change my testing parameters and then execute the Begin Test section of the code, then change the parameters again and execute again, etc.

 

The problem is LabView is only executing the Begin Test section once. If I trigger the event by pressing the button it is added to the queue but it does not execute. However, if I trigger the Disconnect section it executes and THEN the Begin Test section will execute and be removed from the queue. 

 

How do I get LabView to execute an event multiple times without needing all the events in the VI to be executed? 

 

 


Modbus communication error via USB connection

$
0
0

Hello,

I have  a Jumo ctron device that has a USB/TTL convertor to connect to PC. This is recognised as COM port in MAX. But when I try to test this connection via Visa test panel, I get the following error. read notok visa test panel.PNG

The final application of this would be to control temperature (both i/p and o/p). 

I have attached the related documents regarding to the configuration of the Jumo cTron. Additionaly I have also attached the modbus interface description.

Quick VI Version Check Help Needed

$
0
0

Hi,

 

I have a few VI's that I would like to know the source version of since I intend to install the closest version of Labview to these VI's to minimize compilation errors (knowing they're old/outdated). However, since I currently don't have Labview installed in order to determine the version, I was hoping someone on these forums could kindly conduct a quick version check for me so I don't have to install Labview twice.

 

One method to check the Labview version is as follows: 

"Under File»VI Properties. The Source Version appears under the General Category in the drop-down menu, as seen below."

Source: http://digital.ni.com/public.nsf/allkb/0C72D335AA87DD6486256FC40069C17F

 

Thanks in advance,

Jeff

Servo Motor Control

$
0
0

I am trying to control a servo motor with angular positions. 

 

I have determined the angular positions of the servo motor that correlate with the duty cycle, and used the linear interpolation function to determine duty cycle values between the standard angles (90, 45, 0, etc.). The function is working fine, however, I want the output duty cycle to be dependent on the angular position on the front panel. For instance, when I change the position, the duty cycle does not change with it. How do I make one indicator dependent on the other? (Attached front panel screenshot for visual)

 

ALSO, I want the determined duty cycle from the interpolation to be the input duty cycle to the PWM function to control the servo motor. How do I do this? When I index the array, how do I get it to index the current indicator value rather than just the first value in the array? 

 

Thank a ton!

Linear Displacement sensor data to RPM

$
0
0

Hi guys i am attaching my VI here and i am trying to implement FFT analysis to check if i can get the frequency so that i can convert the frequency to RPM. Can someone please help me in implementing the logic so that i can get RPM 

Labview Code for motor shaft movement monitoring using proximity probes

$
0
0

Hello Ni Community,

I am working on a project that requires monitoring of motor shaft movement. My monitoring sensor is a proximity probe that outputs voltage. I have two of these probes which are 90 degrees apart. The aim is that one probe will monitor horizontal movement while the other monitors vertical movement. The prove is connected to AI module N9221 whose range is +/- 60V sitting in NI- cDAQ-9174 chassis. I am using LabVIEW version 13 since this is version that has  Sound & Vibration toolkit installed. Data collected should also be plotted orbitally using LabVIEW code. Does anyone has a code or idea of how I can get this done?

EtherCAT trouble converting from LV2013 to LV2017

$
0
0

Updating a working LV2013 program to LV2017.

I think this is the last kink to work out.

 

Code is intended for an RT box (PXI 8196) but fails to compile.  The error is "Polymorphic VI cannot accept this data type" and this wire is broken.  

I'm scanning the EtherCAT chassis for what modules are where.  I have installed Ni Industrial Communications, v. 17.

 

No code changes - this code compiles (and runs) fine with LV 2013.

 

Here are three similar VIs.  The one for MASTERS doesn't compile. Notice the broken wire trying to typecast the "child" to a master and checking for error.  This is what was suggested by NI several years ago.

The others compile fine.

What has changed?   Any ideas? 

 

Screen Shot 2017-07-19 at 6.15.14 PM.png

COM ports not showing up in distributed EXE

$
0
0

My serial VI's always work fine on my own development computer. I created an EXE for one of our suppliers and although the device shows up in windows as a COM port, my VI doesn't see it, so it generates the -1073807202 error. He's tried unplugging/plugging, restarting, etc. It's the FTDI adapter cable, which I've always had very good luck with, brand new, so it's got the latest driver.

 

When I search the forums, I see references to MAX. Is it possible that my supplier will need to install MAX, in addition to the LVRTE? It seems preposterous, but, then, it's labview.

 

Any help is appreciated.


Banco de datos con lecturas de voz

$
0
0

Hola a todos,

 

Alguno de ustedes podria apoyarme o darme guia para saber como puedo creas un banco de datos con lecturas de voz de 3 diferentes voces (5 lecturas de cada una de las voces) para comparar e identificar cada voz

 

Gracias,

LS

 

Clipfile addition error

$
0
0

Hi All,

 

With FPGA Target PXIe-7966R and IO Module (NI-6581) I am trying to add the attached clip files,

But it shows the following error

 

niFpgaIPINodeGetDllError.vi:3960001<-niFpgaIPINodeGetPortsInfo.vi:2590001<-niFPGA_ClipGenerator_DoFuse.vi<-niFPGA_ClipGenerator_WizardPage3.vi
<APPEND>
<b>Additional Information:</b> Undefined error. If this error persists, contact National Instruments technical support.

C:\Program Files (x86)\National Instruments\LabVIEW 2017\vi.lib\rvi\IPIntegrationNode\IPINode_Dialog\niFpgaIPINodeGetPortsInfo.vi

 

What could be going wrong, I need your support.

 

Regards,

Chinna Thambi M

Data was overwritten before read by system ->NI -6221 ( Error - 200141)

$
0
0

Hello All , 

I am using NI 6221 card in my application . Whenever the application starts within few minutes it throws the error -200141 stating that Data was overwritten before read by the system in the counter.vi . i have attached the screenshot of the error , counter.vi and 6221 card with TB . what is the thing i have to modify in that VI .. pls help me to ressolve this issue 

Control VI through Python script

$
0
0

Hello,

 

I am working on a project in which I have to launch a VI (Labview program) through my GUI wrote in python. I have not the administrator rights so I installed PyCharm Community with the JetBrain Toolbox and python 3.3 with a msi file.

I read on internet that to do what I want, I need to install the pywin32 extension (https://sourceforge.net/projects/pywin32/files/?source=navbar) but when I launch it, it doesn't find my python installation.

 

So, my question is : is there another way to control VI from python ?

 

Thank in advance for your answer. I am a beginner in both language.

How to test SQL connection with Sql authentication excluding Windows authentication?

$
0
0

I have to connect to a SQL db with db connectivìty tool via ODBC.The server will be external and now i'm testing with a sql server installed into my pc.

I've set my sql server on a windows/sql auth. mixed mode.(there is not  a sql auth. only mode).
How can i be sure to perform a sql authentication excluding the windows authentication?

Integer Graph Labels on Error Bars

$
0
0

Hi,

Trying to do a relatively simple stats VI which displays the mean estimates and the error bars associated with them.  When I set the x-axis on the error bar graph to

         Properties - Display Format - Type - Decimal

The tick marks appear like 

         0 2 2 4 4 6 6 8 8 ... 20 20

Rather than the increasing sequence

         0 1 2 3 4 5

The floating point representation is displayed ok, but it would be better to have integer values.

Any ideas?
Thanks, Martin

How to pass a NULL string into a .net method

$
0
0

Hey everyone,

 

grafik.png

 I am trying to use this method, and it wants a NULL to query all.

grafik.png

What do I wire into workspaceName? Empty String ("") does not work, just a constant with no characters inside does not work. Creating a byte array with 0 and converting to string does not work. With "does not work" i mean i get an empty array of workspaces, just like when i enter a notexisting workspaceName. I do not get an exception.

 

The method is working when entering an existing "workspaceName" into the input.

 

Thx in advance


Display portion of windows desktop on LabVIEW frontpanel

$
0
0

Hi, 

 

I'm looking into doing something which is currently beyond my reach, so would like to know what others think and welcome any advice.

 

I've been looking at a 3rd party application (cloudcompare) which has lots of nice features that I would like to integrate into a LabVIEW application. Cloudcompare can be used to visualise and manipulate very large point cloud data sets. The user can use their mouse to zoom, pan, rotate etc the data, similar to the behavior of a LabVIEW 3d picture control.

  

What I would like to do, is to run cloudcompare out of the bounds of my desktop (i.e. render it off-screen) and cast just a section of its GUI on a LabVIEW frontpanel. I also wish to ensure any mouse events in the frontpanel make it back to cloudcompare. The target operating system is Win7.

 

I'm against the clock and this is just a nice to have feature, so the simpler the solution the better, but this strikes me as something which could be useful in a number of circumstances.

 

Thanks,

Tom

Two FPGA bitfiles running parallel on sb-rio 9607

$
0
0

I am developing a small scale microgrid system which I have to run two bitfiles run on the FPGA target simultaneously. I tried putting two separate FPGA VI references on the same RT application, but it seems like only one of the two references is running. Could anyone help me with this issue? or Is it even possible to run multiple FPGA bitfiles simultaneously? 

Replace a first line (txt file) with another (write in file)

$
0
0

Hi,
how i can replace a first line (txt file tabulaton for example) with another,
example:
Test.txt ( tabulation)

AsZ             Baz             eC             Deaz             Eazd
4             5             4             2             1
12             41             41             1             2

 to

A             B             C             D             E
4             5             4             2             1
12             41             41             1             2

And write that in the file ,
Thank you ,

How to Fit-To-Pane for VI in SubPanel

$
0
0

Hi everyone,

 

i can not figure out how to fit-to-pane the vi inside a subpanel.

what i want, is that the subvi uses all the space available in the subpanel.

but neither invoke nodes nor property nodes seem to have what i am looking for.

 

attached is my test vi and a test tdms

(the path to the subvi may vary. i use the "TDMS - File Viewer.vi" from the utility library)

 

i would love your suggestions.

 

regards

 

Automatic rewire of control through structure

$
0
0

I recently switched from LabVIEW 2015 to 2017 and noticed that in this version when you move a control from inside to outside of a structure (like a case statement or whatever), it will automatically rewire so it is still connected to other contents of the structure.

 

I thought i liked this at first until i realized how often i grabbed objects and moved them outside of a structure for the purpose of breaking all the wires.  Is there a way to turn this new feature off?  

 

I'd prefer if it worked the way it always has and if you wanted to have it automatically carry the wires you could hold down ALT as you dragged or something.

 

 

Viewing all 69019 articles
Browse latest View live


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