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

the strategy by which each VI's component wok how they bring out the essential detection and validation results

$
0
0

Hello all,

 

 

How to find out the strategy by which each VI's component work how they bring out the essential detection and validation results, basically the exalanatio of each vi compoent in the functions palette the programming palette of the block dagram and front panel.


enable, disable and re-enable an event

$
0
0

Good evening, I have a question:


You can enable, disable and re-enable an event in an event structure in Labview ?, I managed to turn it off but I do not know how to re activate it in the same run, I thank you a sample program that can guide me,

 

Thanks.

Advice on code structure please

$
0
0

Hi,

 

I am a newbie to labview but not to programming.

 

Here is what I want to do:  Simulate an object moving on a conveyer that has optical sensors, and then develop my program that does some measurements based on when the sensors change.

 

In my main VI I have a while loop that executes every 10th ms.  It calls a sub VI that updates the conveyer position and the state of the sensors.  All works well.  Now I want to work on my application which in the real world could sit and wait on the state of the optical sensors.  Of course, if I wait on anything while including my simulated conveyer then my conveyer does not get updated!  So, I need to effectively execute my conveyer update and control code in parallel.  I want to avoid doing any server/client type thing to keep it simple for learning.  Is the best way to handle it to use a state machine in my main while loop to keep checking the optical sensors then change state when required?  That way it does not have to wait/block on anything.

 

Any advice appreciated.

 

Thanks

 

Ashley

 

Serial data Read in using RS 232

$
0
0

Hi Guys,

 

    Am trying to read data using Arduino. <LVL 1010> <LVL 0101> this are the data am passing from my arduino. When I pass this data, only <LVL 1010 > is processed in my labview where <LVL 0101> is ignored.

This are the different types of data, am going to pass from my arduino

<LVL XXXX>

<FED XXXX>

<ENS XXXX>

<TSS XXXX>

<RLY XXXX>

<LED XXXX>

<MSL XXXX>, where XXXX correspond to the binary value based on the status of the component attached to my arduino.

Please help me to fix this guys. I have attached my program snippet for your referene. Thank you in advance.

new installer remove older exe

$
0
0

Hello

I have one installed program generated by labview .

when i generate another installer file with different destination and name after installing the old one removed!

why it's happen ?

 

 

Best regards

1-d digital digital array to analog

$
0
0

Dear All,

I'm not professional in LABVIEW and you can consider me as a beginner. Regarding my problem I do have NI ELVIS II connected to the PC and using DAQ in LABVIEW to read 3 pins digital DATA and it is reading them perfectly. I was using the "Sample on Demand Option" and I used the "chart" to display my data after the conversion to number. Now I'm using an external clock so the output data type is different, the output is not a DIGITAL waveform, it is a 1-d array digital data. Now I want to take continously the three bits and convert them to a number to be plotted and the graph should continously ready my digital input and convert to a number (Like ADC). It is not working with Analog to digital converter block becuase my output is not a waveform, it is an array. Any help will be highly appreciated. One last note is that I can display the signal as three digital values on graph as zeros and ones, but I need them in numbers 0,1,2,3,4 ....,7 and it should be on a graph continously updated

comsoft

$
0
0

Hello Guys

 

I have a simatic IPC 847C Industrial PC with inbuild Profibus CP5611.

 

i have installed Comsoft software and loaded a gst file also but profibus device is not showing in NI MAX and Comsoft

 

any one faced this problem ????

3D mesh object libraries?

$
0
0

Hi, I am playing with 3D objects and wonder if there are any object libraries online that contain the mesh coordinates that could be used with the create mesh function. I'm particularly looking for anatomical segments - arms, legs, head etc, and their textures if possible.   

 

Failing coordinates, then file format conversions that work with 3D objects would be great!

 

Thanks

Graham 


How to print a dynamic image array?

$
0
0

Hello.

 

I would like to print (in PDF, Excel sheet or else, then on paper) a dynamic Image Array (its number of elements can change).
I use the Report Generator tool to print in PDF, but the problem is I end having cut images in my report, since the array does not fit the printing page.
I think there is a solution with number or string arrays through Excel, but is it also possible with image arrays?
For instance, I joined, in my example, 3 arrays (choose 1 to 3 for test and also, show the layout options then choose your printer) but please have in my mind that my real structure is more complicated than this array (1 big cluster with different arrays, each one containing various number of images).


Can anyone help me?

 

Thank you in advance.

How to interface i2c accelerometer with LabVIEW and myRIO

$
0
0

This is a general question about the i2c VI and how I can use it to read the xyz linear acceleration data from this accelerometer: https://www.sparkfun.com/datasheets/Sensors/Magneto/LSM303%20Datasheet.pdf 

I understand the slave address, which for my case should be 0011000 (or 18 in hexadecimal) I believe, but I can't figure out what the Byte Count or Bytes Read pieces mean. I am guessing that the Byte Count might be 6 for my case, if I want to read both components of the linear acceleration on each axis, but I can't seem to get any confirmation on that from anyone. Any general help would be useful!

 

If it helps, my specific purpose is to read the accelerometer data using a myRIO and use that information to limit the speed of a motor. I know how to hook up the device to the myRIO.

Which FFT to use?

$
0
0

Hi, I know there are several ways to perform fourier transform in LabVIEW but I do not know which to use correctly.

 

I have a signal that is in array and I want that signal to be analyzed using fourier transform.

 

I've tried the Spectral Measurement Express VI, Power Spectrum.vi, FFT Power Spectrum and PSD.vi, FFT Spectrum (Mag-Phase).vi, and FFT.vi (don't know the correct FFT size to use here, I just used 128).

 

 

Which should I use?

 

 

Thanks!

FIle path issues in EXE

$
0
0

Please unzip and see the attached Project file. A simple Main and SubVI project to aquire data in main and pass to sub. ( WIN 7 / LV2012).

 

1. The EXE when built, works  only when the  "Use LabVIEW 8.x file layout" option in Advanced option. I also know why this happens - a subVI ( Close Main & Call VI to be loaded.vi) which is inside a folder does not get called if this flat file layout is not chosen.   So what is the way out if i do not have to use the flat file layout ?

 

2. The second thing : If you notice i am passing the data from Main to Sub via a Queue. Is the most efficient method for this and how does it compare with a FG or quite simply a Global variable ? If there any limit to the size of the cluster that i can thus pass via a Queue ?

 

Thanks in advance

Raghu

labview standalone application - not in the list

$
0
0

Hi,

 

I want to build a standalone application(EXE) using Labview 2015 Evaluation version.

 

In tutorials, I found that I build a standalone application with evalution.

 

However, I cannot find the application (EXE) option in the list as shown in picture below.

 

Would you please help me?

 

 20160327_155020.jpg

LabVIEW and Multisim Co simulation Error 2366

$
0
0
Hey All! I am importing Multisim Design in LabView as an external model through Control and Simulation Loop. The Problem is every time I run my simlation in LabVIEW, it gives me an error "Error -2366 occurred at External Model in Single_Phase_Inverter_NI_Project.vi/Control & Simulation Loop" with possible reason being unupdated extrenal model which is not the case . Will some one help me ? I'm atttaching my files, too . Regards,

edit control

$
0
0

In LabView project how to edit the user created control for example I I following Control and And want to change its Magnitude  from 5,10,15,...,35 to 2,4,6,..10

please help


Creating a DLL or EXE from a VI

$
0
0

I have a VI which is including sub VI's and ftd2xx.dll for communicating with the USB and CPLD.\

 

1. The VI works fine in LABVIEW envioument, but when I am trying to create a DLL or EXE file from 

the main VI i don't get a desired functionality.

 

2. I am using LABVIEW 2015 64 Bit and application builder tool in order to create the EXE file.

 

3. I am adding all the desired header files to the build.

 

I appriciate any help regarding this issue.

 

Best Regards,

Nirco11

error in terminal of a shared variable

$
0
0

I read in the Labview help that the "Error In" input of a shared variable provides "standard error in" functionality. What I am unclear about is that if an error occured before this shared variable, will this cause the shared variable to NOT to do what it is supposed to do? If an error is passed to the "Error In" input, will the shared variable node still read/write as normally?

Download 8510C Raw Data File via GPIB

$
0
0

Hello all, hoping that someone can enlighten me a bit here.

 

I have an old HP8510C Vector Network Analyzer that I'm trying to automate raw data dumps from.   Currently, the operator has to insert a 3.5" floppy into the VNA, then name and store each file individually....over 50 times.

 

Ideally, what I'd like to do is bypass the 3.5" floppy, and take the Raw Data file via GPIB directly to a modern host computer.  That may not be possible?

 

I have downloaded the current Plug and Play drivers (located here) for LabView 2014...but have some questions about comments around this forum:

 

1)    Several posts refer to a "Getting Started.vi".....  I could not locate that file in this Driver set.   Was this example file removed, and perhaps resides in an earlier version that I could still download?

 

2)   I appear to have a good setup to configure the VNA remotely, and I found a function OutputRawData.vi that I believe contains what I need.   Is there a help file for this VI that could give me enough information to configure this, and create an equivalent test output file?   

 

3)  Can I force menu inputs into the VNA (particulary set & increment filenames), and then prompt the User to save the file to the 3.5" disk instead?

 

Any advice would be appreciated.    Thanks,

 

 

change string indicator border color

$
0
0

捕获.PNG

捕获1.PNG

does anyone know how to change the border color of a string indicator to white,just like in this image?it's a string indicator from classic pallete.But normally,its border color is black,and it border line is very slim.And its content part,as u can see,is transparent.However,once I change the color of string indicator to transparent,its border disappear as well.As follows,捕获2.PNG

I had thought that would be very simple,but now,I am really puzzled.Can anyone help me?

how to save multiple sheets in excel to a pdf in labview

$
0
0

Hi,

 

I am having one xl with three sheet, i want to create pdf from that excel.

 

I tried and i am getting pdf with single sheet only.

 

I want pdf with all three sheet.

 

How to od that?

 

Please suggest the possible ways.

Viewing all 69601 articles
Browse latest View live


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