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

Problem using remote front panels on parallels

$
0
0

I am using LabVIEW for windows using parallels on my mac. Whenever I make a website using remote front panels the website address ends up satrtiing with 10.211.55.3, which is the parallels network IP. For example the wesite URL created was http://10.211.55.3:8000/add.html. If I use LabVIEW using bootcamp on my mac i get a valid URL starting with the IP address of the computer. I can then access this website from another computer and successfully control my VI.

 

So my questions is.... does anyone know of a way I can use LabVIEW using parallels on my mac and make a valid website using remote front panels. 


smith predictor

$
0
0

Hey,

Ive been working on large time delay systems, so i have to design a smith predictor to eliminate the time delay factor. I tried to implement smith predctor but I am not sure if its correct or not. I am uploding the screenshort of the same, if any corrections are there pls let me know.

Thanking You.

how to change the decoration edges color

How to create non blocking TCP server?

$
0
0

Hi,

 

I would like to have a TCP server in my application.  It will go about its business as usual but in the background a TCP server is sitting waiting for a client connection.  If such a connection exists, the normal code will send stuff on that connection otherwise it will just not send.  Currently I can not see how to stop it blocking while it waits for a client (TCP Wait On Listener block).  I have looked at the TCP server/clien example but it blocks in the same way.

 

I would appreciate advice on how I would structure such an application.  I would also like to do the same thing on the client side.  Go about business as usual and if a connection is able to be established at some stage then send some stuff on that connection otherwise just dont bother.

 

Regards

 

Ashley

 

Can't activate Labview Student Edition

$
0
0

Hi, Yesterday I requested a 6-Month Evaluation of LabVIEW Student Edition. I got the code, downloaded Labview, but unfortunately I cannot activate it. When I launched labview 2015 SP1 I had 2 products: Labview Development System ; Application Builder. I clicked "Activate Products" -> "Automatically activate through a secure Internet connection" and then I was requested to type in two serial codes (one for Labview and one for Application Builder), I had only 1 code from Labview website, so I put it twice (once for labview and once for Application Builder). Then I logged in with my NI.com account, waited a few seconds and... Only Application Builder got activated. Labview did not, it says the serial numbers are invalid.

 

What should I do? I don't really know what is that "Application Builder", I know that I need Labview for my studies and I have no idea how to activate it. I only have 1 serial code from this website: https://decibel.ni.com/content/docs/DOC-30610

Microcontroller interfacing with labview

$
0
0

Hi, i have a doubt of interfacing micrcontrollers with labview. I need to know can we interface any microcontroller with labview and please specify a very basic requirements that is needed to interface microcontroller with labview?

        Thanks in advance!Smiley Happy

20041Error using Curve Fitting Tool

$
0
0

Hi,

 

 
I am trying to read data from a temperature transient captured in a LabVIEW file and use the curve fitting tool to display the fitted output. In the zip file i have added the data files which the vi reads its input from (only use on at at time any one should work). The function model i need to use  and have inputted in the curve fitting tool is a*(1-exp(-x/b))+c 
 
where:
 
‘a’ is the temperature set
‘b’ is the temperature constant 
‘c’ Is the initial temperature 
 
I have put in some values for each and played around with them to see if they make a difference but still getting the same error.
 
I had a look on the website for some help guidance but didn’t understand it well enough to be able to resolve it. The error code is "-20041 occurred at curve fitting" and the possible reason given is “analysis: the system of equations cannot be solved because the input metric is singular”.
 

Control & Simulation Loop Failed to Compile

$
0
0

Hi,

 

I am trying to create two PI controller loops using the control & simulation add on in Labview and when i try to run the program i get an error sayng control & simulation loop failed to compile i have read some of the guidance information on the NI website but didnt understand it well enough to resolve the problem.

 

The first loop i am trying to create is just a straight forward PI controller with about 5.5 sec deadtime. The second loop i am trying to create uses a smith predictor to reduce this deadtime. Both loops are resulting in the same error. Can anyone help or resolve.

 

Cheer,

 

Tom

 


Spikes while Simulating Resistance

$
0
0

Hi all,

I'm facing a problem while simulating resistance. The device which measures the resistance is sending a pulse signal with 80Hz frequency and 60% Duty cycle, so typically the on time is 7.5 ms and the off time is 5 ms. The signal amplitude is dependent on the resistance and the maximum value is 10V. While changing the resistance we must take care that the switching is happening in the off time of 5ms. As It is giving spikes whenever we are switching during high time. Our resistor simulator also takes 3ms time to change the resistance.

Presently I'm monitoring the pulse signal with a PXI 6259 card. The analog acquisition is in separate loop from the resistance simulator loop running in RT. Both loop are timed loop and running at 2kHz. Increasing the loop rate is not working, that I have already checked.

I'm sending the Boolean data of high or low state using a CVT tag. As expected it has reduced the spikes during switching but can’t omit.

Can anyone suggest any other way to do the same and get a better performance?

FPGA

$
0
0

I am working on a project were i have to redo a part of the project which was done by another author years ago,as they have lost the software but have the hardcopy.

 

I would like to know how to add the Enable Drive/disable drive of Mod3 as shown in the pic.Also the Encoder position as highlighted in the pic.Being new to FPGA project i have these basic questions.Pls guide.

 

 

Error -1074360317 in IMAQdx Get Image vi

$
0
0

I am receiving an error -1074360317 in IMAQdx Get Image vi. The code is attached for reference. I also found a document regarding error which I am experiencing. But if i try to implement what is mentioned in the document then it gives me another error message which is shown below in image. Please guide how to fix this error. Many thanks.

 

Untitled.jpg

 

 

How to write/read ENUM as TDMS Property?

$
0
0

LV2103, Win7

 

Old hand at LabVIEW, brand new to DIAdem.

 

I need to convert a structure of arbitrary complexity into properties, suitable for writing to a TDMS file, in such a way as to be retrievable, and (hopefully) to be human-readable, such as whn the file is loaded into DIAdem.

 

I have most of it working just fine, but I have trouble with ENUMs.

 

An ENUM can be converted to a VARIANT just fine, but writing that variant to a file produces error -68007.

A simple test shows this:

Snag.PNG

 

 

The encoding process is fairly simple - given a generic control Ref, just look at its CLASS ID.

If the ID is one of the basic ones, just get its value as a variant, and append to the NAME and PROPERTY arrays:

Encode 1.PNG

 

 

If the item is a CLUSTER, then just get the controls within it, and do them one by one:

Encode 2.PNG

 

 

If the control is an ARRAY, then it's a bit more trouble.  Since there is no way to get a reference to an arbitrary reference, you have to use the one reference to an element that you have.  To use that, you have to be showing one and only one element.  So this code does that, while restoring the original view:

Encode 3.PNG

 

 

HOWEVER

 

 

The ENUM, as I said earler, converts to VARIANT just fine, but TDMS will not accept it.

 

Here's one technique that works, sort of:

Encode 4.PNG

 

By converting the enum to an I32, you get the numeric value of its current setting, and can put that into a variant.

 

When reading, the numeric value will set the ENUM control correctly, so that's good.

 

The trouble is, in DIAdem, the property will look like:

Whatever_Engine_Cycle        2

 

While that is true, and will read back OK, it doesn't tell the user what kind of cycle it was.

 

The point of ENUMS was to put names on specific numbers.

 

I tried converting the variant to a STRING instead of an I32, but error 1057 (IIRC) happens: "cannot convert variant to specified type".

 

 

A similar issue exists for TEXT RING controls - although they will go through the process without error, what shows up is a number.

 

Any ideas for making DIAdem display the ENUM's string value, instead of a number?

 

The error says "not recognized by this version of LabVIEW" - is LV2015 any smarter about this?

 

reading special file formats

$
0
0

I would like to read in a text file which has a different format from standard text files supported by labview (XML, lvm tdm/s etc.). Basically my interest is to be able to by pass all the uneccessary characters on the header and go right to the channel names and onwards to the actual data.

I know there is a special character that marks the beginning of the channel names in this file.

So i need labview to be able to tell what the channels are (start to end of the channel names) as well the corresponding data following the channel names, (probably by searching /parsing for this special character).

Thereafter i finally want to be able to read the file in just like one can do by using the "read from measurement file" function and output that as a dynamic data signal.

I am not conversant with parsing and reading in text files, so kindly provide as much as details as possible.

Thanks.

apply an arbitrary shape filter to filter a time signal

$
0
0

How do I use an arbitrary shape low pass filter from the Digital Filter Design Toolkit to file a time signal/waveform?

 

Thanks.

 

 

Ian

3D plot hangs with Labview 64-bit, stable and reliably quick with 32-bit Labview

$
0
0
My 3D plot works pretty well with Labview 32-bit, but hangs/slows with the Labview 64-bit. Has anyone noticed this or have a solution?

Problem connecting webcam with dialogue box

$
0
0

Hi Folks.

 

I have the following vi which opens a webcam window and grabs a frame and saves it. It uses dll's instead of imaq. It works well except for some weird connection issues.

 

When I run the vi the dialogue box (shown below) appers and I select my VGA USB Camera but the image is black. However when I unplug and re-insert the camera cable and run the vi the video feed appears and there is no selection process. It is as if there is some sort of memory somewhere.

 

If I choose the other default cameras it is displayed (its actually a grey box because they are disabled) so connects straight away but then I cant remove it and select another without rebooting the machine.

 

Does anyone know how I can reslove this strange behaviour?

 

Thanks,

 

Mark.

 

 

 

Dialogue Box.png

Quadrant photodiode

$
0
0

Hi All,

I am having a problem working with signals from my position sensitive photodiode (PSPD). I have been using the attached FPGA vi to acquire my 3 signals (vertical, horizontal and sum)  then use DMA FIFO to transfer the signals to the host computer for constructing my virtual PSPD (see the attached HOSTT and PSPD files). This works for me but not so well since I have no full control.

I would like to use a Waveform Graph to construct the virtual PSPD. I am using labview 2011.

Could someone kindly suggest to me some ideas or hints.  I will greatly appreciate.

 

Best Regards,

Ben

Array scalar issue

$
0
0

Hi All,

 

I'm new to labview, I have looked a the training material for arrays but I cant get my head around this problem.

 

 

You have connected a scalar (non-array) data type to an array of the same data type. This type conflict may be resolved by building the scalar type into an array. Check for a tunnel on a loop that has indexing incorrectly disabled.
The type of the source is double [64-bit real (~15 digit precision)].
The type of the sink is 1D array of
double [64-bit real (~15 digit precision)].

 

 

How do I convert scalar data so I can store it in an array?

myRIO1900 Analog Input wave problem

$
0
0

Hi guys, first of all sorry for my bad english and for low quality pictures.

I'm here to ask help, because I have some problems with Analog data input of myRIO 1900 in LabVIEW 2015.

I need to acquire a couple of analog signals (voltage and current) and analize them in real-time with the Power suite, and also save every value in an Excel file for later analysis. Using myRIO analog input Express VI, I can acquire data from analog channels of myRIO (double 64-bit real) and display them correctly on a waveform chart (10Hz sine wave). But I need "waveform" type of data to use the power suite VIs, so I tried to create an array containing every value acquired on i-position (with i=index of while loop) and then build a waveform ready to be analized.

My problem: if I plot the result array and save that array in an Excel file, seems like the wave increase continuously her frequency (see attached files, in the Excel file the first 100 values of the array give a sine wave with a lower frequency than the last 100 values).

So I tried to pre-allocate a 5000-dimension array of 0s and replace every 0 with current input value and it works well (for about 5 seconds, until array was filled). Furthermore the pre-allocation spend a lot of initial time, the big is the array and the big is the initial lost time.

Thank you for any help, it will be highly appreciated.

Creating a ENUM from EXCEL Colum

$
0
0

 I am building a generic test programme. The test programme is to test multiple part numbers (Sensors) Each of the part numbers and its variables that will drive the programme are stored in excel workbook. One colum will have part number the rest will be the variables that drive the labview programme. 

 

When the programme starts i want it to populate a ENUM on the front panel with all the part numbers from colum A on the excel work book. Then when the user selects which part number they want to test it returns the row number for this part number from the excel sheet. 

I can most likely figure out how to return the row number but does anyone know how i can populate the ENUM with the part numbers from colum A of the excel worksheet.

 

thanks 

Viewing all 67331 articles
Browse latest View live


Latest Images

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