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

Humidity teste Labview-arduino

$
0
0

Hi.

Currently, working on a way to use Labview and arduino for, a humidity tester.

I am using, a SHT 15 coupled to, an Arduino uno board.  

From the arduino, i use a formula, to convert the numbers from 0% to 100%  to the arduino´s PWM 0-5V.

The PWM is going to, a OP-AMP and capacitor´to stabilize the signal, and then going to. a NI 9201 in a NI DAQ 9172.

In my Labview program i have, a Daq Assisstant, then my formula for converting the signal from 0-5V to a humidity number and then a string display.

 

I have tested both, the arduino code and Labview program and they work fine seperatly, but for some reason i loose some data when i put them together, so the labview shows a humidity about 2-6% less than the arduino. The labview program humidity number i get is very unstable. Also when i measure a humidity on 60% or higher the Labview program goes straight to 100%.

 

I am sorry if it does not make sense what i write and hope some of you have any idea how to help.


Analog gauge with damping

$
0
0

Whenever I place a guage to display analog data, i always feel it should behave like a car speedometer. Smooth with no jerks ... most times the user is interested the level of a parameter and it makes no sense if the needle flutters reacting to all data variations.

 

I have tried a concept with shift registers as below and it seems to work - but the downside is the number of shift registers cannot be altered by the end user as its hard coded.  Ideally i would like to have a control called "Damping Factor " which the user can adjust depending on the raw data. Like for instance there is little to gain by damping a Temperature reading which anyway does not change fast.  Here is the Sub.VI that does it  :

 

DampingIdea.png

Write a XML file

Updating an Analog Signal with a trigger signal (DAQ: USB6001)

$
0
0

Hello, 

I have a working VI (attached) it is a modified version of the help/examples. 

I utilized the "Digital Start" and it works as expected. 

What I would like to add is instead of just starting with the trigger signal, updating my inner for loop for every rising edge of the trigger. 

I know it is an open ended question but any suggestion guiding me to right direction is greatly appreciated. 

Thanks

Application Web Server not accessible from remote system

$
0
0

I am very new to web publishing and application server, I have created a project (attached) for web server. where I have created a application web server , which i can access from local system or the remote system present in the same network and getting the result properly. but when I am trying to access the URL from remote system outside home network , it saying page can not display .... I am trying with the following URL : http://127.0.0.1:8080/web/HTTPMethod_1?IN=0

also tried with http://192.168.43.172:8080/web/HTTPMethod_1?IN=0 neither access the XML, suggest me what need to be done ??

Labview program for C-863 DC Motor controller

$
0
0

Can anyone guide me how to create a labview program for controlling PI M-531DD stage with Mercury C-863 DC Motor controller.  My main aim is to interface the controller with the labview. 

Exécuter une partie du programme une seul fois en fonction d'une commande

Convert string array to enum at runtime

$
0
0

This question have been asked before, but I know but I don’t understand the answers.
Therefore, I have to ask again.
Is there a way to convert string array to enum at runtime.

I have to use a ring control, I think.

But how?

 


Delete or insert a record into a database table

$
0
0

Hello everyone.

I am trying to include or delete the nth record of a table in a database (database connectivity toolkit).

Any ideas?

Thanks in advance. 

 

Scaling Problems with USB 6000

$
0
0

Hi,

 

i have a real big Problem with custom scale and a usb 6000.

i have different pressure sensors. one is 0-10v direct Output, three i´m measuring about a 500Ohm resistor.

The power source is 24V. Plus are connected to 0,1,2 and i took gnd from power source to the measurement device.

In DAQmax i see the correct voltage on every channel. But i´m not able to make a scale. I tested every Version (linear, table etc). I´m getting error -200077

What can this be? How can i create my Scale?

error 74 (Unflatten From String )

$
0
0

I want to capture a video using labview 2015 and then sending to labview communication using UDP, using the OFDM example implemented on labview comm(TX,Rx) after this process we then send the video back to the normal labview 2015 using again the UDP,  the problem is that when we run the two programs there is an error 74 (Unflatten From String ),and there is another something occur that the output display that receive the video it give an output only when we press right click on the display indicator otherwise there is no output,so i want to know the meaning of this problem. there are two attachments(screenshot for the code implemented in labview 2015 ) which show you the the capturing of the video and receiving it from labview comm.

any one can suggest a solutions for these problems.

thanks a lot,error 74 BD.pngerror 74.png

Frecuency Bands with Wavelet Transform

$
0
0

Hello
I´d be thankful if someone could help me. 

I need to know the frecuency band, I have the best three in LabVIew in the example Wavelet-Entropy Selection.VI

You can fin it at LabView Examples after install Advanced Signal Processing

So I want to know the frecuency band that the coefficients of the three belong to. 
Regards Smiley Happy 

Emotiv toolkit connection issue

$
0
0

Hi all, 

my research is to calculate the user`s engagement using emotiv headset. I tried the emotiv toolkit from here with the community SDK, since there is no research SDK anymore. I subscribed with their monthly subscription to acquire raw data, and activate the license. however, I still can not get any output values. I ensured everything is connected in right way ( the control panel is opened and I signed in and even did the training, the EDK.dll path is correct)  I tried all example provided with the toolkit and the connection is good but no output value. after tracing the code I found out that the userID is always zero is that the cause? I would appreciate any help, the research is so important for me.

emotiv task out.PNG

Understanding DVRs

$
0
0

LV2013, Win7

 

I'm an old hand at LabVIEW, but brand new to Data Value References (DVR), and I'm not understanding what I am seeing.

 

I have a class, that contains one I32, and has one method to increment and display that number.

My main program has what i think should be a SINGLE INSTANCE of that class.

 

Main can launch any number of "Child" VIs, each in separate windows.  The child VI is reentrant.

 

When I launch a child, I create a DVR to the one and only instance of the class, and off you go:

DVR Test Main.PNG

 

The child VI is set to OPEN FRONT PANEL WHEN CALLED.

 

It has a GO button, and when you click that, it dereferences the DVR, and calls the INCREMENT method on that class.

 

 

DVR Test Child.PNG

 

 The class method is simple: DVR Test Dialog.PNG

What I EXPECT to happen is that there is ONE and ONLY ONE instance of the class.

The children get a REFERENCE to that class, and operate on the REFERENCE.

So therefore, the I32 in that class would get incremented by a call from EITHER child.  And they both operate on the same instance of the same class.

 

BUT NO.

 

What ACTUALLY happens is that it appears there are TWO instances of the class.  Each child "owns" its own copy and they are independent.

 

 

The class method is NOT reentrant.

The class is set so that RESTRICT REFERENCES TO CLASS METHODS is OFF, so that I can create the reference at launch time (is that a problem?)

 

Here's a JING showing what happens: <http://www.screencast.com/t/2gN64oWF>

 

Attached is a project.

 

if I launch 3 or more instances, there are 3 or more different integers.

 

What's wrong with my thinking?  Why aren't the two children referring to the same instance of the class?

como exporta datos a excel en determinados tiempos ?

$
0
0

buenos días soy nuevo en esto de labview necesito  exportar 3 datos como Fecha, Presion en Bar, Presion En Psi y Temperatura, de estos datos necesito exportar 10 veces de cada uno pero en un determinado tiempo como el 10%, 50% y 90% del tiempo que son (300 segundos) y entonces seria el 10 % es igual a 30 segundo, 50% es igual a 150 segundo, 90% es igual a 270 segundos, y entonces me piden que que cada 30 segundo se tomen 10 mediciones y así por igual los otros 2 y aun que ya resolví eso , ahora el problema seria que los 3 datos de cada porcentaje se  exporte en un solo archivo de excel,  ya tengo el programa de exportar los datos pero no sabría como exportar los 3 datos  al mismo tiempo y no se si me deje el programa, aquí les mando lo que he hecho, espero que puedan ayudarme y les mando un cordial saludo buen día. 


cDAQ based DATA ACQUISITION SYSTEM-MULTICHANNEL CONTINUOUS SAMPLES MODE

$
0
0

Hi, All

 

I build a multi-channel daq system based on daqmx , and I set to continuous samples mode(rate=1000,sample per channel=1000). After two days, the system was stop and show the error that increasing the buffer size and read more frequency and so on. Could anyone give some suggestions that how to fix it? Thank you so much.

 

Thanks.

lh

Initial decay increasing with sampling rate

$
0
0

Hello everyone,

 

I'm experiencing an initial decay in my signal that increases with increasing sampling rates. I've included my acquisition code and examples of acquiring the signal with 1 kHZ and 10 kHz sampling rates.

 

I'm acquiring three physical channels using a USB-6003 DAQ board. By the time I run my code, the amplifier is already working and sending data to another computer through a RS232 cable.

 

I'd love to know what could be causing this, since the code is very simple. Could it be a hardware issue?

 

Thanks in advance,

 

Lucas

Maximum XNET Sessions

$
0
0

I am getting Error -1074384879 at XNET Create Session:2080003. Possible Reason(s): NI-XNET: (Hex 0xBFF63011) The maximum number of sessions was exceeded. Solution: Use fewer sessions.

 

What is the maximum number of sessions? Is closing a session with the XNET Clear.vi enough, or is there further steps to purge the session from memory that must be taken? This is for an application that is running 24/7 that creates and destroys sessions for every 'sequence' start, which is about once every three minutes. I am properly creating the sessions, and closing them at the end of every 'sequence' with the XNET Clear.vi, but am still getting this error.

Best way to build a path when "Application Directory" returns VERY different locations

$
0
0

Hi there,

 

I'm having a problem building a path to my config file because it gets called from TestStand, allow me to explain. Normally for LabVIEW development I have a disk hierarchy like this:

 

- Project Folder

     - Project.lvproj

     - Config Files

          Config.ini

 

Then when I use "Application Directory" I get back "Project Folder" and can easily build the path to my config file. When I build the executable, I don't need to change anything, and the disk hierarchy looks like:

 

- Application Folder

     - Application.exe

     - Config Files

          Config.ini

 

Now the application directory is "Application Folder" but I still build the path to the config file the exact same way.

However, when I call the code from TestStand, the application directory is that of the TestStand executable. I forget exactly what it is, but for the sake of discussion let's say "C:\Program Files (x86)\National Instruments\TestStand\" which is nowhere near my config file...

So should I get the path of the VI, and strip the path until I get back up to the .lvproj directory? This could cause problems if I ever change the disk location of the VI that loads configs. Any other suggestions?

 

Thank you,

Gregory

Option between choosing of controller in Final Year Project

$
0
0

I am wirelessly monitoring over current ,under voltage faults>which controller i should choose between myrio and arduino.Need detail information about myrio wireless characteristics?Please help me.I will be yhankful to you.

Viewing all 66688 articles
Browse latest View live


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