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

I want to ON an LED when a switch is pressed and remain ON after switch is OFF and want to OFF LED when the same switch is pressed again, Help me.....

$
0
0

I want to ON an LED when a switch is pressed and remain ON after switch is OFF and want to OFF LED when the same switch is pressed again.

I am already tried by using flip flops but i am failed. I am using Lab View  2012 version.

Help me.....


Adquisición continua de audio y exportación de la señal adquirida a formato .wav y spreadsheet

$
0
0

Buenos días,

 

He creado este post porque me han surgido la siguientes dudas.

Estoy intentando utilizar la Tarjeta de Sonido del ordenador como tarjeta de adquisición de datos de bajo coste, y para ello voy a conectar un circuito hardware a la entrada mic-in del ordenador (una señal de máximo 300mV) y capturar la señal como si fuese audio.

Para ello estoy diseñando un VI que adquiera audio de manera continua del propio micrófono del ordenador para luego exportar esta señal a formato .wav y a formato spreadsheet. 

 

No he tenido problema en realizar una adquisición continua y representarla en un graph, pero a la hora de guardar el archivo en formato .wav no tengo claro como hacer para guardar todos los datos adquiridos (el programa está dentro de un while loop, pero sólo capturo el sonido de la última iteración).

Para pasar los datos a formato spreadsheet utilizo un "invoke node" en la gráfica que muestra la señal de audio adquirida que exporta los datos a excell. Evito que se ejecute desde el principio metiendo el invoke node en una estructura case que se activa al pausar el botón de paro del loop while y parece funcionar correctamente.

 

Alguien me puede ayudar? Realmente no necesito guardar los datos en formato .wav para realizar correctamente el propósito del trabajo, pero me gustaría aprender a generar archivos .wav desde una adquisición continua.

 

Hay una segunda duda que no sé como solucionar.

Quiero diseñar un VI que multiplique los valores de una de las columnas del spreadsheet generado (la amplitud de la señal) por un coeficiente, de tal manera que traduzca la señal de salida del circuito hardware a los valores físicos reales que mide (lo introduciría en el segundo case del VI que adjunto).

Es una simple multiplicación a todos los valores de dicha columna, pero ahora mismo no consigo hacerlo.

 

Si queréis que explique algo más a fondo o tenéis alguna consulta no dudéis en plantearla.

 

Gracias de antemano por vuestra ayuda y disculpad mi ignorancia respecto a estas dudas.

AutoCAD file to PDF convertion

$
0
0

Hi,

 

Is it possible to Convert CAD file i.e .dwg file format to pdf using LabVIEW Activex?

If please tell me how i can do this.

 

Regards,

Ali

Generating Excel graph problem

$
0
0

Hello, I am trying to generate a report for my vi and I have some problems when I generate graphs in Excel. The png file shows the problem. Every single graph that I create from labview has those huge blank spaces that so far I can't eliminate. In the top righ there is a graph generated from excel, Is there any way that graphs generated from labview look like that one? If not at least I would like to know how to eliminate the blank margins. I'm using Labview 2016 and office 2016. Maybe a compatibility issue? Because I have tried the labview examples and I have the same problems. I also attach the xlsx file 

Time delay.. for repeating array

$
0
0

I want to give an array lets say 3,4,6,9

then starts like this

send 3 digital signal to daq -- stay 15 second

send 4-3 = 1 digital signal to daq -- stay 15 second

send 6-4=2 digital signal to daq -- stay 15 second

send 9-6=3 digital signal to daq -- stay 15 second

 

currently, 15 second includes the time to get to the next level ( let's say it take 100 ms for daq to relay each signal to my device for each signal). how can i make it that at first runs the signal sending loop, then wait 15 second then read the next array value

How to measure temperature variation by time using two voltimets (agilent 34410A and Keithley 2400-C.

$
0
0

Hi everyone,
I'm starting to work with labview and I'm having trouble creating the diagram to perform this task, please.

Any help will be appreciated.

Thank you very much

Read data from oscilloscope to computer via a RS232 cable

$
0
0

Hi everyone,

I am trying to read voltage values from an oscilloscope (ATTEN ADS1102C) to my PC via RS232-RS232 cable, and then use labview to process and save the data. I am wondering if someone has similar experience? Thanks!

 

 

How to write certain mathematical functions in the formula string of the downhill simplex nD i

$
0
0

I am just looking into using the downhill simplex nD vi and would like to know how to enter certain mathematical functions into the formula string ( functions like integral over a certain interval, derivative ) in this formula string. I am thinking that's why the levenberg M Nonlinear fit vi has an option to add a vi to describe the model. 

 

Can am anyone please help explain how to enter certain mathematical functions ( as described above) Into the formula string. Thanks


time to timestamp, wrong convertion

$
0
0

Get at wrong convertion using this code to convert time to timestamp.

I can't figure out why?

The wrong result is in the constant in the to right corner.

snip.png

LabVIEW Environment Display

$
0
0

Hello together,

 

I'm looking for an Environment for LabVIEW User for an User Interface of a Mechatronic System.

 

I would like to send and recieve data from an external system.

 

So my first thought was a Windows Tablet, where i can run the LabVIEW Programm.

 

But ist that really necessary? The User Interface has just to run the LabVIEW Applikation, i don't need a hole Tablet for doing this, or? I need something like a Display, which is allowed to run the labview Applikation developed on the PC before.

 

I hope my english will be understand and you know what i'm looking for. 

 

Thank you for your help :-)

 

King regards,

 

Simon

tabcontrol locked, can't change page

$
0
0

Can't figure out why this tabcontrol is locked. I can't change page.

 

snip.png

Strain gauge-based Load Cell

$
0
0

Hi guys,

 

I have a load cell (full bridge) which has the following characteristics:

 

Min. Input Signal = 0

Max. Input Signal = 2500 kN = 2500000 Newtons (Compression)

Excitation of 10V is provided internally by the module

Sensitivity at 10V = 20019.8 microvolts

Input impedance = 1050 ohms

Output impedance = 1050 ohms

Output without load = -137.367 microvolts

 

I use DAQmx to model the load cell. The load cell certificate doesn't provide any details regarding scaling that needs to be entered in LabVIEW. I have calculated the following: 

 

Considering load cell supply is 10 Volts for max. signal of 2500 kN, and since sensitivity at 10V = 20.0198 mV, then

 

20.0198/10 = 2.00198 mV/V. So scaling information is: 

 

0            mV/V    -   0   Newtons

2.00198 mV/V    -   2500000   Newtons

 

LC.PNG

I am not sure If I need more values in the scaling information in DAQmx or these two values should simulate the load cell at its full capacity. Any thoughts should be much appreciated. 


Thanks. S

 

 

HTML table does not show up on webpage

$
0
0

Hello All,

 

I recently switched from Labview 2011 to Labview 2013 and also changed my machine. I copy pasted my codes from the previous machines and now I am having some trouble making them work.

 

I am using Labview 2013 and Internet ToolKit 2012. I am using Internet Toolkit and CGI to run a VI from the web browser. Basically that VI (aracgi.vi) takes data from 2 shared variables namely:

1. cgi_tabledata

2. cgi_tracedata

which are being filled in ara2.vi (a separate vi). I have enabled aliasing for both the variables and are bound using PSP so that I can view them remotely. I have set my Laptop IP to a static IP 192.168.1.21 and added to the list of available machines using DSC. And I have bound the shared variables with PSP under this IP as that is the home IP.

 

The aracgi.vi should take data from these 2 variables and make an HTML table with current values of all the parameters which should look like this

htmltable.jpgplot.jpg

 

And when I should click on on one of the parameters it should open the waveforms as shown above.

 

I always start the G web server at the start of the VI. My G Web Server port is independent of my Labview server port. I have my set G web server to 8082 to avoid conflicts.

 

I set Document Root to the folder which contains this project and the cgi-bin folder.

 

The problem that I am having is that when I open the webpage using this URL in the internet explorer: http://192.168.1.21:8082/cgi-bin/aracgi.vi

 

I just see a blank page.

 

In the aracgi.vi I have the Keyed Arrray Index Wildcards.vi. If I set the case matching to a==A the VI does not work at all. If I set the case matching to a!=A or system then the VI loads on the webpage but is completely blank? Can any of you please guide me on what the possible source of the problem here? And how can I have the html table show up on the web page.

 

I have attached the folder which contains the project and all the VIs.

 

calling a vi in a project from another vi

$
0
0

Hi,

I am not very good at labview. someone shared the attached files. I can use this project to send files via FTP . There is a file 'test.vi' ( under Labvolution.sftp) which i want to call from another vi running separately. Does anyone know how to do it? i cannot run 'test.vi' as a standalone vi(  vi throws an error saying that the specified class of .net is not available in labview, but i can run this file from the project).

Please help.

Thank you.

Incorrect answer in 2017 CLAD exam preparation guide

$
0
0

Hey guys

 

I am currently studying for the CLAD exam which I will be taking in a couple of weeks. Using the updated preparation guide I have found two small mistakes. I am not sure where to post this so I will post it here

 

The first problem is with question 5 in Labview Programming Environment. The answers should be 20000 columns, not 2000 columns. The second problem is the answer to Question 6 in Labview Programming Fundamentals should be B. The answers page says it is C which I find impossible.prob2.PNGprob1.PNG


How to specify equality constraints in constrained nonlinear optimization

$
0
0

Dear Members,

 

I am trying to solve a constrained nonlinear optimization problem, which involves 6 variables (and possibly more). Attached is the problem formulation. I started writing a program using the example VI "Find Global Min on Surface.vi". I assumed that though this VI is written for 2 variables, it will also work for larger number of variables. The sub VI "Find Global Min On Surface_Func.vi" shows a template of how to define the objective function and equality/inequality constraints. However, it does not really provide much documentation on how to specify those constraints.

 

There is another example "Linear Programming Simplex Method.vi", in which it is relatively clearer how to specify the equality constraints using matrix M and vector B. However, "Find Global Min on Surface_Func.vi" does not have similar matrix/vector type of inputs to specify constrains. I am also not sure if there is a way to somehow use "Linear Programming Simplex Method.vi" to implement the constraints in "Find Global Min on Surface_Func.vi".

 

I also looked at another example, “Linear Programming for nD Variables.vi”, which gives a very good facility to describe the constraints in string format, which are then parsed into appropriate equations. However, I cannot easily use this VI, because the function in the instant case, is quite complex involving about 30 constants and higher powers (up to 7) of independent variables. It will really be a long string, which I will have to change programmatically every time.

 

Any help would be greatly appreciated.

 

 

MN optimization problem formulation.jpg

 

 

DAQmx not showing terminals

$
0
0

DAQmx is not showing terminals....I have checked ActiveX box, applied UAC changes and double clicked on DAQ assistant but still missing the terminals....Please help me...

VIPM failing to build package due to "missing files"

$
0
0

Unfortunately, I've needed to start using LabVIEW again for a project. After working around the intermittent crashes in the latest version of LabVIEW when trying to align items, I'm ready to publish the first release of the application.

 

The trouble I'm currently having is with VIPM, which is failing to package my application so I can hand it to a colleague. When trying to build the package, the build will abort with the message that "source VIs or libraries are missing", referencing a number of VIs with GUID names, apparently located under my actual VIs (i.e. it seems to be treating my actual VIs as folders). See below:

VI Package Manager_2017-08-21_08-20-23.png

 

All the files listed are either test or example VIs - this means they share the common property of being "top-level" VIs. That's the only thing I notice about them that they have in common.

 

If I click "OK", it brings up the dialog shown below. Here, it lists all of my actual VIs as callers of these missing GUID-based VIs:

 

VI Package Manager_2017-08-21_08-30-20.png


For what it's worth, my project is structured as shown below:

$ tree -d
.
├── build
│   └── test
├── examples
├── src
│   ├── CAN Database Builder
│   ├── CAN Database Types
│   │   ├── CAN Database
│   │   ├── Checksum Message Field
│   │   ├── Message Definition
│   │   ├── Message Field
│   │   ├── Receive Message Definition
│   │   ├── Rolling Message Field
│   │   ├── Transmit Message Definition
│   │   └── Virtual Message Field
│   ├── TestCAN Controller
│   │   ├── TestCAN Controller
│   │   └── TestCAN Controller Messages
│   │       ├── Add Checksum Message Field Msg
│   │       ├── Add Receive Message Definition Msg
│   │       ├── Add Rolling Message Field Msg
│   │       ├── Add Transmit Message Definition Msg
│   │       ├── Add Virtual Message Field Msg
│   │       ├── Load Database Msg
│   │       ├── Reset Database Msg
│   │       ├── Set Message Definition Activation Msg
│   │       └── Set Message Field Value Msg
│   ├── TestCAN Controller Mediator
│   │   ├── TestCAN Controller Mediator
│   │   └── TestCAN Controller Mediator Messages
│   │       ├── Add Checksum Message Field Msg
│   │       ├── Add Receive Message Definition Msg
│   │       ├── Add Rolling Message Field Msg
│   │       ├── Add Transmit Message Definition Msg
│   │       ├── Add Virtual Message Field Msg
│   │       ├── Load Database Msg
│   │       ├── Reset Database Msg
│   │       ├── Set Message Definition Activation Msg
│   │       └── Set Message Field Value Msg
│   ├── TestCAN HTTP Client
│   ├── TestCAN Utility API
│   └── TestCAN Web Communications
│       ├── TestCAN Web Communications
│       └── TestCAN Web Communications Messages
│           └── Transmit Message Msg
└── test
    ├── API Tests
    ├── CAN Database Builder Tests
    └── Mock Web Communications

 

different worksheet for every loop

$
0
0

hi, i want to save data in different 47  worksheets in single workbook of xlsx file for every  loop ie. 47.

but the problem is that it saved the data in same worksheet 1 for every loop 

please help me to sort out this problem,thanks.

 

Labview password is crackable

$
0
0

I want to password protect my vis so I was searching to see if labview password is crackable. It turns out it is! I found this website http://www.labview.help/decode that actually cracked three files that I uploaded. The website is in Chinese so I will show you how to register in order to upload your file to test its function.

On top right of the page, click on this1.pngthese two characters mean to register

 

from top to bottom, enter 

username(only support letters and numbers)

password(letters and numbers only)

email address. then click on the button on the right to send a verification email to your inbox

enter your verification code. the code is a combination of letters and numbers

enter the code shown in the picture

1.png

then click on the button that has two characters which say "to register"

 

then the page will automatically jump to the log in page. just enter your username, password, and verification code shown in the picture. then hit enter

 

1.png

find this on the top of the page, click on this one1.png, these two characters mean to crack

 

1.pngclick on this button to select your .vi file, these two characters mean to browse. the website says if your file is bigger than 20kb, you have to talk to the administrator to get the cracked file. so you can just upload some random file.

 

1.pngclick on the button beneath it, these two characters mean to upload.

after your upload is finished, a windows pops up, it probably just says the crack is finished, hit enter to dismiss the pop-up window.

1.png

 

notice the part in blue that looks like a hyper link? that is the cracked file. download that and you can see your password is actually removed!

 

I'm a labview developer myself and I uploaded all these pictures just to show that the password is not safe!!! I'm not sure how they cracked the password but there is obviously a fast way to crack the password. I hope NI can pay some attention to this issue

Viewing all 66787 articles
Browse latest View live


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