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

data written to excel string is text rather than double when opened in excel

$
0
0

I have code that combines a time string, numerous double arays and a couple of individual doubles. All seems to work well except when I open the created data file in excel, the first cell after the time string is always a string and not numeric. This is the first value in a double aray and all the other elements of the array are correctly converted to numbers. Only the first element is being interpreted incorrectly. This is messing up an other wise nice spreadsheet.

 

Any thoughts?

 

 


DAQ and Plot data from Photodiode

$
0
0

I am trying to measure the photocurrent of a ThorLabs DET110 photodetector using LabVIEW. I have the detector connected to a NI BNC-2110 box via BNC cable and then to a basic PCI DAQ board. When I access the test panel in MAX (the card is listed under "Traditional NI-DAQ Legacy Devices"), I can select the appropriate channel, then wave my hand in front of the detector and watch the signal move appropriatley.

 

I have not had any sucess in getting a signal to show up in a VI though. I've tried using the DAQmx "DAQ Asst" object, measuring an analog input, current, but I then can see no signal, even inside the DAQmx dialog box (using "run"). I have it set to the same channel as before (in MAX), and have played with the axis range and sample rate to no avail. Anyone have ideas on what I am missing?

 

 

make a waveform graph

$
0
0

  Hello.

   I want make a waveform graph like this(Picture 1), but there are two problems had got in my way. 

   First, Like picture two, I found that the bottom boundary line and right one are quite different  with the top and left one (color),So how to adjust them to be the same??

  Second I wonder have to make the white coordinateaxes in  the picture 1??

stop loop from feedback

$
0
0

Hi,

 

I am very new to LabView and would appreciate assistance in the problem I am having.

 

I have created a pressure testing rig for a tube, where I will be pulsing a pressure from 0 - 250 mmHg with the use of a solenoid valve controlled in LabView. I am using the USB-6009 to control the solenoid valve (normally closed). Additionally I have pressure and temperature gauge controlled by the NI 9237. I have attached my vi of pulsing the solenoid with 5V and 0V with a 1 sec delay in between and put it in a  while loop. I also have another loop where the pressure and temperature readings are displayed.

 

What I want to do:

 

In an event of a rupture of the tube, I want to output a 0V to close the solenoid valve and stop the loop. A rupture or leak can be detected if the pressure does not reach 250 mmHg. But because the test is pulsing the pressure and is not constant, I cannot say 'stop if it falls below 250 mmHg'. So I am kinda stuck with this. Any help would be much appreciated :smileyhappy:

Labview Excel protect worksheet

$
0
0

I need to protect an excel worksheet, and I use "USERINTERFACEONLY" 

As i also require some formatting such as merge cells and other option I use "ALLOWFORMATTINGCELLS"

But I'm not able to run it... it say unlock and than run.... 

I do not want to unlock do modification and than lock method...

Is there an alternative???

robotics

Data transfer test and speed test for an ETHERNET port of embedded board

$
0
0

Hi,

I am working for verification team and currently in board testing level. Our team have developed a embedded board and its have ETHERNET feature. I need to verify the ETHERNET feature like ping test, data transfer test and speed test. I have planned the test cases for ping test and data transfer test using TCP/IP fascility of LabVIEW. But how can I do speed test?

Embedded board support 100Mbps speed. Embedded board have RS232 communication for testing purpose and also have diagnostic software. Let me get a solution for speed test?

superimposed two files

$
0
0

hello everybody,

I want to make a bill preparing program by labview.I made a macro excel file(including headings,formulae etc).I want to take inputs from another file and put into this file and take printout.As labview cannot handle excel file I made a .txt file by labview with all input data with proper formatting that should match with the excel file. Actually the excel file has some blanks and input data can fillup these blanks.I could make the .txt file such that this .txt file and excel file match together and make the bill complete.How do I made this superimposing by labview and make the bill complete?

please help me and give some suggestions.

thank you in advance.....

                              -Sudipta Sengupta.


vi cleanup

$
0
0

Good morning,

            This might be a bit unusual, but I am putting this out there strictly for comments and opinions.  It does exactly what I want it to but I think it looks pretty ugly and am wanting some opinions on how to make it more effecient, eye appealing code, or just 'better'.

 

What I am doing is allowing the user to select from a drop down list of available files , press 'Process' and it reads a CSV file that is two columns of strings, 3 columns of doubles with a header row.  I am wanting to sort the data out to one array of strings for channel names, and a 2D array of strain variables.

 

I am then also allowing the user to decide how many strain channels will be used and if there is a tach channel to be included with the data file, and where the user wants the data file to be saved.

 

All this data will be gathered together into a cluster and sent to the main VI which will then provide the daqmx and display functions.

 

The 'OK' button is the stop button.  I have included the relevant subVI as well as an example CSV file.

 

Thanks for the time.

 

Tim

An array in tab

$
0
0

Hello. I have an array of cluster and its include 20 elements inside. I want in a tab (page-1,page-2) show first 10 elements in page-1 and last 10 elements in page-2 on front panel.

 

How can i do this.

My array of cluster is in attachment.

Thank You.

Zero-crossing function

$
0
0

Hi,

 

I found this zero-crossing function in one of the old forums and I'm trying to understand how it works. In my case I have two sine waves, instead of one square pulse but I can't really figure out how this function works. I know that first, the waves are generated then you get their attributes, the data values go into the zero-crossing detector that controls the case statement but I don't know how the trigger time and time interaval are used to build the array, I think the timestamp outside the 'for' loop is for storing the previous itteration of the zero-crossings but I'm not really sure.I have no clue what happens in the final step before the zero-crossing times are subtarcted, as in the threshold array and so on. I've read how each function individually but I can't add the blocks together.

 

So I was wondering if someone could please explain how this works?

 

Thanks

Voigt profile fitting by Labview or read parameters from origion

$
0
0

I want to analysis the data of the spectra. The peak normally can be fitted by the Voigt profile.

However, I just find the example of Gaussion fitting by labview. The origion also support the transfer  the data from orgion to labview. I also just find how to fiiting the peak as gaussion profile and then read the parameter to labview.

I hope some people can give me a sample for fitting a peak by Voigt profle, reading the fitting parameter from origion to labview or fitting the peak in labview directly both OK.  Thanks.

How to clear screen on eks-lm38962 OLED back to starting point

$
0
0

I am just starting out with LabVIEW for micro controllers and have a project that is about to be due. I have a Stellaris eks-lm38962 board that I download the program to. The point of the project is to draw pixels on the OLED screen similarly to an Etch-A-Sketch. I have everything completed except one small problem. My display is supposed to clear out when i press the select button and then start back at 0-0 (top left). My screen clears but the cursor stays where it left off. I have no idea how to get the cursor to go back to the starting point. If anyone can offer any suggestions, I would greatly appreciate it. I attached a screen shot of my block diagram. Case 16 is the one displayed because that is the one giving me problems. I need some way to tell the clear display icon to start back over at 0,0 whenever I press select. Thanks in advance.

 

 

Error -61207 and DiagramReset did not clear within the timeout period.

$
0
0

Hi,

 

Just getting started with FPGA programming and trying to get my NI-9155 and NI-9223 to capture some simple analogue voltages.

After compiling the NI9223 Getting Started (FPGA) VI to my NI-9155 with NI-9223 I get the following error messages:


LabVIEW FPGA: Internal error: DiagramReset did not clear within the timeout period.
Please contact National Instruments Technical Support at ni.com/support.
Error -61207 occurred at niLvFpga_Open_NI 9155.vi


I have tried restarting both Host and Chassis and also reset FPGA but continue to get this error message.
I am running LabVIEW 2012 SP1 on a Dell Inspiron 1520 (Intel Celeron 540 @ 1.86GHz and 3574MB RAM and Windows Vista Home Basic.

 

I have run on another Laptop (Dell Dimension M6700) and do not get this error, and the project works fine.

 

Any assistance would be much appreciated.

Bob

ActiveX is visible only for administrator

$
0
0

There is an ActiveX that is used in LabVIEW program. However, LabVIEW recognises it only if the user is logged with administrator rights (Windows 7). If user is logged with conventional rights, the ActiveX is not visible for LabVIEW. It does not appear in the list Insert ActiveX Object of ActiveX container. It also disappears from containers where was inserted by administrator.

 

I believe, the problem is in registration of the ActiveX in Windows registry. If so, what should be done with the registry to allow the ActiveX for all users? If not, what could be cause of the problem?

 

Thank you


delete a repeating element from an array

$
0
0

How do I delete a repeating element from a string array. I know the element but don't know the indices of this element in that array.............

Please help me................

LabVIEW 2010: lksock.dll a été supprimé par l'antivirus

$
0
0

Bonjour,

 

En lançant LabVIEW 2010 32bits sous Windows 7 64bits, mon antivirus (pour info avast) a pris le fichier lksock.dll comme un virus et l'a supprimé sans me demander mon accord: il m'a juste proposé d'exclure le fichier des futurs scans (ce que j'ai fait bien entendu).

 

LabVIEW affiche plusieurs messages d'erreur à son lancement: LKSOCK.DLL manquant.

 

Impossible de récupérer le fichier dans la quarantaine.

La seule proposition sur Internet: réinstaller LabVIEW... pas le temps, trop de modules à réinstaller.

 

Heureusement, j'ai installé LabVIEW 2010 sur un autre poste: je suis donc allée récupérer le fichier et je l'ai copié dans C:\Windows\SysWOW64.

 

Au cas où quelqu'un d'autre rencontre ce problème, voici la DLL pour LabVIEW 2010:

   - il faut exclure le fichier C:\Windows\SysWOW64\lksock.dll des analyses de votre antivirus,

   - il faut désactiver temporairement l'antivirus avant de dézipper le fichier ci-joint

   - enfin, il faut le copier dans le répertoire SysWOW64.

 

Plus de message d'erreur au lancement de LabVIEW.

 

Je ne sais pas si la DLL est la même pour LabVIEW 2010 SP1.

 

Pour info: pas de problème avec LabVIEW 2013 32bits mais au cas où voici la dll pour LabVIEW 2013.

 

Bon développement !

conditional loop

$
0
0

I am using Labview 2011

I have an case structure. I want to do some calcutations if it is true and take out the result from that structure but I want to do nothing when it is false......

please help me about that..........

Calculating custom derivative

$
0
0

Hi everyone,

 

I would like to calculate a custom derivative (two-point derivative to be precise) of my data. The two-point derivative means that df(x)/dx = [f(x+h)-f(x-h)]/2h, rather than df(x)/dx = [f(x)-f(x-h)]/h. I am a Labview beginner and have no idea what is the best way of handling this, but I suspect that using a loop with a formula node where the data is being fed via shift registers would be the way to go.

 

Currently, I have my data generated as two 1D arrays (voltage & current) that are converted to a 1D array of cluster of 2 elements and plotted on a graph. Having another graph that shows the two-point derivative would be very useful.

 

Thank you in advance for any help with his.

control myrio over the internet

$
0
0

Hi, 

 

I want to control a myRIO over the internet (not local network). Power on a myRIO make it connect to a WiFi spot automatically with a given password, and controll a variable from the other side of the world.

Does anyone have ideas how to approach this? Any examples...
I know how to use the network shared variables but it's just localy.

 

Any help would be appriciated. :smileyhappy:

 

Thx

Jeame

Viewing all 67331 articles
Browse latest View live


Latest Images

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