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

Audible clicks using NI 9260

$
0
0

Ok, Not sure where to post this as I'm unsure if it's hardware or software, but I'm going with software for now.

 

I am using an NI 9260 to generate various acoustic test signals.  However at the beginning and end of each signal there is an audible pop.  After a little hunting round I came across this post which describes and on the face of it solves my problem.

https://forums.ni.com/t5/LabVIEW/Audible-clicks-in-noise-generation-acquisition-vi/m-p/1555188#M573607

I have been using LabView off and on for almost a decade now and still rely on the DAQmx Express VI's (sorry Coq_Rouge).

The problem I am running into now, trying to move away from the express vi is when the sequence gets to the "DAQmx Wait Until Done.vi".

If I match the duration of the test signal to the number of samples in the 'Create Task' section I get the following error.Error1.PNG

If I make the duration of the test signal shorter I get.

 

Error2.PNG

 

The VI's I have attached are intended to work in the following way.

Speaker driver.vi - This is what I started with and was producing the pops.  After reading the above thread I decided to try and split the Express VI into three sections, the initialisation and shutdown of the NI 9260 module was moved into Test sequence.vi.

 

Test sequence.vi just passes a list of filter midband frequencies into the speaker driver(2).vi, but now I am also trying to get it to initialise the NI 9260 so that in theory I only get the pop at the beginning and end of the sequence rather than between each signal, if the pop is due to the NI 9260 switching on and off.


Tips and Tricks for Front Panel

$
0
0

Hi All.

 

Just completed my very first LV Application and one issue that I have seen is to understand what guidelines there could be for designing a Front panel

my confusion or I need help to understand the following

(1) My applications as small applications that control specific parts therefore I have only a small number of controls and indicators on a Front Panel my issue is to judge the size of the panel example full screen  looks bad as you search for the few controls and indicators ,may be it is better to set the Front panel to maximum ,I dont know these things and are looking for help .

(2) should the developer first assign the size to a Panel and then place the controls etc.or place the controls and increase the size as it progress?

(3) Where is the 0,0 origin of the Front panel,it seams that if you double click a control in the Block diagram to high light it in the Front panel the origin of the Front panel move as well ,not sure about this but it looked that way a few times with me .

If you guys can help me with some documents or whitepapers that describes a basic procedure for creating Front panels I would be very happy .I found some papers on the NI web that shows how to set the Vi properties for size and Run time position etc ,which helped me mo create my first executable running on another machine however 

The panel can be a much more improved .

 

Regards 

QMESAR

 

 

How to encrease operation speed when measure with Keithley 6430

$
0
0

I need to use a Keithley 6430 as current source and voltage measurement device. 

It is connected by RS232 with

  • 9600 baud rate,
  • 8 data bits,
  • 1 stop bits,
  • none parity

I need to continuously change the DC current and measure voltage by 4 point method. The picture below shows Keithley 6430 code. I send command to wait 5 ms before after changing current value. I  measure voltage several time for each current value (small loop on the second picture) and out put arithmetic mean.

 

For 2 current values and 10 voltage measuments the program spend about 30 s. I think it is too long.In future I should do measure voltega for 100 current values at least.

 

Could you please help me to understand how encrease operation speed of the program?

 

11.png2.png3.png

 

 

How to separate,displace,integrate and aplicate the FFT of the data obtained from the mpu6050 (Arduino). Using LINX

$
0
0

Hello Everyone!!!!, I'm making a project to measure vibrations of a system with Arduino + the accelerometer MPU6050 + LabVIEW + the library LINX.

 

I new using Labview, but I achieve to do this program with a tutorial :

 

CAPTURE.png

If I Run the program give me this output: 

capture7.png

All seems to be excellent, but I want to improve several things : 

1) Separate the different accelerations: I want that the acceleration of Z to be in one graph, the acceleration of Y in other, and the acceleration of X in other. How can I do this? 

 

2) Elimite the offset of the gravity: Once that the graph of Z will be alone I want to move the graph to 0 since I will be using the sensor in a unique position. 

 

3) Integrate the accelerations: I was thinking that to do this I can use the function "Time domain math" to obtain the velocity but I was reading about this, and on some websites it says that do this process can result in some accumulative errors like drift, but I see too that this can be fixable, it is true? , Can someone give me an idea of how do this?  or the unique thing that I need to do is use the function "Time domain math" ? 

 

4) Use the FFT to every graph: Can give some help with this? , maybe some tutorial to do it? 

 

Labview - WebService - Using the same vi for Login and checking email + password

$
0
0

I have a method of using a vi as Login and another one as a Check_pass, but I want to be able to use just one vi that does all the work. Just like any other page that requires an email and pass, I want an error message to be shown on the same page, that's why I'd rather have a vi that handles everything on its own.

ADO270.CHM Error for mySQL Database

$
0
0

Hello Everyone

 

I am facing some issue while opening database connection using OLE DB as well as in ODBC  also

Currently i am using Labview 64 bit version and using ADO functions (ActiveX Function) i am getting following error. Check Attachment

Error -2146824582 occurred at Exception occured in ADODB.Connection: Provider cannot be found. It may not be properly installed.Help Path is C:\WINDOWS\HELP\ADO270.CHM and context 1240655 in AUTOMATION 64BIT.vi

 

Any link to similar kind task or tutorial for study are most welcome.

Thanks.

 

Encryption using Fast Fourier Transform

$
0
0

Greetings to the NI community

 

I am to transmit an encrypted text file and receive the decrypted text file using USRP 2932. I am a student beginner to the LabVIEW. I found a paper on the FFT encryption of a text file which can be found attached. I am struggling with its understanding as it does not contain copious documentation of the VI's. It is a humble request out there to kindly help me explain the Encryption and Decryption VI's. I am attaching the SC of the VI's also. I know it's a shot in the dark but i would really appreciate any help.

 

Thanks and regards

"Intelligent" unique array

$
0
0

Hello,

 

I have several arrays (grouped inside a cluster) with two columns : header is in the first column, value in the second column.

Capture d’écran 2018-05-20 à 18.36.04.png

 

I want to have an array with only unique headers, and values.

 

Capture d’écran 2018-05-20 à 18.38.49.png

 

I manage to have unique headers, but the problem is unique data. I've attached the VI. I think the problem may come from "insert into array" which I believe cannot insert on a row that doesn't exists yet?! Can you help me?

 

 

 

 

 


Discrete digital input time stamp/compressed digital waveform

$
0
0

I would like to timestamp changes on my digital inputs using change detection and store that to a file.  I know I can just sample the inputs, but my 6281 card is already running analog input tasks at a lower rate than I need for the timestamp resolution for the digital inputs.

 

My current thought is to create a timing source tied to the port change detection then use that to drive a timed loop (LabVIEW RT) which would timestamp and store those to a structure via a RT fifo.  Does that sound like a reasonable thing to do?

 

On a related note, is there a common structure that is used for storing digital data?  I know and have used the digital waveform structure, but that isn’t compressed (dt based, not discrete timestamp based).

 

Thanks,

 

xl600

Find control reference and change color

$
0
0

Hi,

I want to find control reference by label and later change it's color. The thing is I can't. I would love to know:

- why?

- how can I get reference which will allow me to do that?

Closing the Front Panel with Event

$
0
0

Hi All.

I have been reading in the forum and on the web however I seam not to get how to close the Front panel with an event ,I have the similar issue when my executable runs and the user press the stop button the Vi stops however the Front panel stay on screen and just change to the normal Front panel with all buttons and menu's similar to the one in the editor.I have seen various ways here in the forum to close the panel but fail to understand how to correctly setup an event .

At the moment if I can just use the stop button to stop the Vi and close the panel will be fine as a next learning I will then look deeper into using the X button as  standard windows.

I have placed a event structure in the main loop with a time out(to avoid the event wait for ever and block the main loop) I the set up the Stop button change value event and a Panel close event .

a.jpg

 

do I need to place any code in here ?as my stop button state is read from a local variable in the main loop and the 2 parallel loops.

b.jpg 

 

What should I do inside the panel close event to close the panel ? (the shift regeister in the picture is for the state machine states)

I apologize for my ignorance I am lost here !

Regards 

QMESAR

cRIO v/s cDAQ

$
0
0

Can anybody help me out when to use cRIO system as cdaq can also be used for most of the control applications.

 

Chirp spectrum

$
0
0

I am facing certain problems regarding the chirp signal. To start with, why the power spectral density of inbuilt chirp signal has time vs. amplitude plot and not the frequency vs. amplitude.

Read file to multiple plots and timestamp to x-asis

$
0
0

Hello everyone,

I know that there are a milion different topics about this, but I can't seem to get it to work with the ones that I've been looking at. 

 

I save data in a file. After that, I want to read the file in a different place and plot it in a graph. 

As you can see in the file "values", the 1st row is names and the collumns are the values that belong to them. (there are many more, about 120 columns)

 

  • I've taken the first row, used a property node and used it to add the names to the correct plots.
  • I can get all the values in the graph correct.
  • What I can't seem to figure out though, is how to take the first column (originally a timestamp, now a string) and use it to make a correct x-axis. 

 

So, the problem is theoretically very easy, but I just can't get it to work! Can anybody help me? 

I have LabVIEW 2017, 32-bit.

 

Best regards,

elicom

user interface creation

$
0
0

I want to build a user interface that helps me to run the different VIs of my project

look example below


Property Nodes Labview NXG

$
0
0

Ok so I started playing with labview nxg looking at the properties for specific controls and indicators a lot of them are missing. E.g. The property "plot.name" for a waveform graph, but its missing in NXG, is this something that will be added in the future or am I looking for it in the wrong place?

 

Thanks.

Web server - The server does not disconnect the client after a given time limit

$
0
0

Hi,

we are trying to control an experiment in optics with the Web Server functionality.

We succeed taking control with a first client. If any other client connects it is queued. However the server does not disconnect the first client after the time we set in the Options  Panel. Therefore all other queued clients never get access.

We use Labview 2012 and access to the We server by means of Internet Explorer.

Does anyone know how to manage this?

Thank you in advance,

Optics_Guy

 

Can't find my 9401

$
0
0

Hello everybody.

 

I'm trying to read the frequency of one signal with the module 9401 but I cannot find it in the DAQassistant. I do think I have all the software installed. The cRIO I use is connected to the computer by ethernet. Did I forget installing one driver? Has the ethernet anything to do with it?

 

I'm lost after following all the guides and help files I found about. Thank you very much in advance.

Closing the Front panel

$
0
0

Hi All,

I am having an issue when my executable start it is running fine when the stop button is pressed then the Vi stop however it seam like the debug page that opens ,I have checked under build specification >> advanced that the Allow debugging is not checked and also in the Vi Properties I have now unchecked allow debugging,

How can I close the Front Panel when the stopped button is pressed ( I know it is preferred to use the X as in widows  however on my level the button is fine for now )

 

Normal Running VI(App)

 

a.jpg

Stopped Vi(App)

b.jpg

 

All help pointer and critics are appreciated 

QMESAR

Please convert LV2016 to LV2011

$
0
0
Merged with request on Version Conversion board
Viewing all 66793 articles
Browse latest View live


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