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

how to find maximum and minimum number of 14 constants

$
0
0

I have total 14 numeric constans in my code. which are of global variable.

 

Now i want find max and minimum , out of these numbers. so how can i do it.

 

I saw array which can find max and mini but how to copy these 14 constants to array?.

 

Regards

Punith


how to find greater among two time/date string

$
0
0

HI All,

 

if I have two Date/time string  , In that how to find which is greater time and smaller time ?.

 

How to substract smaller time from greater time and result should be in seconds.

 

Kinldy suggest me , if anyone tried this.

 

I calculated the current date/time string  as shown in vi.

 

 

 

Regards

Punith

UI formatting issue

$
0
0

We have been having an issue with a VI that we use for calibration of our test racks. The original VI was wrote in 8.6, and then updated when we converted our machines to Windows 7/LabVIEW 2010. Everything was ok during the first calibration. But on the second, which was 6 months later, we started having formatting issues. I was able to correct this 6 months ago using LabVIEW 2013 (Original Code SS.png).

 

Last week when the techs went to start running cal again, the formatting issue was back.  We have tried loading and modifying the source code, and building the .exe on multiple machines, with no success (Attempt2, 3, 4.png).We have even tried changing from the system to both modern and silver, in the small hope that that would do it. We also have tried adjusting the screen resolution on the monitors to match before building the .exe. 

 

We are at a loss at this point. We are hoping that it is a simple setting within labVIEW that is causing it, or a Windows setting that can be corrected.

 

Thanks for your time.

 

Original Code SS.png

Attempt3.pngAttempt2.png

Attempt4.png

 

How can I check to see that a spreadsheet (comma delimited) contains only numbers?

$
0
0
I'm writing a VI that checks the validity of a user-specified database for merging with a known good database. It basically checks that the path they specified exists, and that the spreadsheet within that files has two columns. It's passed every test (bad delimiters, too many columns, too few columns, etc) except where I put in two values, comma delimited, where one value is 115 (good) and one value is dog (bad). The format specifier on the spreadsheet opener is %f. I've attached the VI to this post. Any help is appreciated.

Multiple Input Multiple Output Fuzzy Logic Controller

$
0
0

I am designing an autotuning PID temperature control system whose PID gains are adjusted using a Multiple Input Multiple Output (MIMO) Fuzzy Controller. I am unsure how to set up specific inputs and how to use specific outputs when there are multiple inputs and outputs. Specifically, my Fuzzy system has two inputs and three outputs.

 

 

For the input, I have two 1D arrays of scalars (doubles) which I have used to build an array and concatanated the inputs to the array. How do I configure which values of this array are used as each specific input value to the fuzzy system?

 

Similarly, for the output, the fuzzy system gives three output values which are used as the PID gains. How do I configure these such that they are in the right order to be used as the PID Gains of the PID VI?

How to control a VI (with a while loop and an event structure) from another VI

$
0
0

Hello


I have the principal VI whose I want to control it from another VI. But I cannot do this and I do not know what is happening.


For example:In VI Principal I have a while loop with an event structure, there's a boolean controller that control a boolean LED, which is inside of event structure. And the other VI, there are just a boolean controller and the applications functions to open the Principal VI.

 

How can I control the boolean LED in Principal VI, changing the state of the boolean controller in another VI?

 

 

Thanks.

Match Pattren Problem

$
0
0

Hello,

i am using Match pattern String Function in Labview to Search the String. the Problem i am getting is Say i have strings in the order

 

ABC

Test1

Test

 

 

If i give Test has Regular Expression to Match, i am getting Matched Output for Test1 , i mean Before Substring is  ABC, Match Substring is Test and After Substring is 1 Test.  i am lookinh for the 3rd line. i dont have any commas or dot in the end of the string. Please help

error (1046) using matlab script

$
0
0

Hi ,

im trying to use matlab script Labview , i've got matlab installed.

when im running the VI , i'm getting an error 1046 , i tried to search the community ,

and i've been told to check the "choose script server" , i dont know why , but i it's "grayed" ,

and i cant change anything.

 

capture.jpg


Lab-View Controlled Relays for 480V

$
0
0

Good evening,

 

I'm currently working in instrumenting an electrical motor test bench that is going to be used to test a specific Electrical Motor. This bench works with 480 V line fed motors and I was looking forward to shut them ON and OFF using some LabView controlled relays. I currently have an 8 slot Ethernet cDAQ with a Digital I/O module. I was looking to see if someone, based on past experience or personal knowledge, could help me on which hardware could be the most useful in order to control the powering of the motors. I saw NI has a relay board module that is usable on cDAQ but i'm not sure if this is the best way to go or if it be useful at all for such high voltages.

 

Thank you in advance for your time and help.

TCP/IP coupled Hardware (@ Labview)

$
0
0

how is the way to develop external Hardware (with proprietary TCP/IP coupled Hardware) in Labview.

daqmx simulated digital input

$
0
0

I'm having trouble using the simulated digital input feature.

 

I create a simulated digital input in MAX - a simulated NI PCI-6534, single channel, port 0/line 0, acquisition mode is 1 Sample (On Demand)

 

When I click the "run" button I see the indicator flash on and off as I would expect.

 

However, when I bring this task in to LbView, I can't get the indicator to flash no matter what I've tried.

 

No doubt I've missed some basic concept. Can anyone tell me what I'm doing wrong?

 

(VI attached).

error 200303 buffer digital generation PCI 6229

$
0
0

We are attempting to install a PCI 6229 board to replace a PCI 6220 board which we had installed.  The program we had written to control the PCI 6220 (and two PCI 6711 boards) which we are using is not working with the new board.

 

We have connected the board in MAX to our RTSI cable.  We have changed all references to the board from the old PCI 6220 to the new PCI 6229.  However, we are unable to control our new board through our LabVIEW program.

 

The latest iteration of the error is that we get an error -200303 when the program attempts to write values to the PCI 6229.

 

 

exe installer for 32 bit windows

$
0
0

hi all, i've made an exe installer with labview 8.6 in a computer with windows 7 (64bit)

When i try to install it in a computer with windows xp 32 bit, i can't do it

i have this message: (attached)

How can i do to make it work?

Real-Time Grayscale Image Writing

$
0
0

Greetings,

 

I started learning LabView a little less than two weeks ago for a research project that I am working on, and have been writing a program while learning. The code I have, which can be found in the attachment below, in summary collects the peak intensity value of a 10ms range for every 50ms of audio input, and then adds the peak to an array. The array is then normalized for 16-bit grayscale imaging, and is sorted into a 200x100 matrix. Using the IMAQ VI's available through the Vision Acquisition software pack, I then converted the 200x100 matrix into an image which is produced at the end of the program's cycle.

 

I am currently using an audio signal because I have not received the devices though which I will be collecting data yet, so the sound format is simply set at 100,000 samples per second, 2 channels, and 16 bits per sample.

 

Moving forward with the program, I have been trying to figure out how I can alter my code so that the image produced at the end updates in real time as the data is collected, as opposed to just at the end of the data collection. And I would like to do this without jeopardizing the speed and efficiency of the program. If anyone might be able to help me figure out how I might be able to do this, the help would be more than welcome and greatly appreciated. Typically, when I am just test-running the program, I will set the iteration count of the first loop from 100,001 to a smaller value such as 1,001. In general, any suggestions for improving the code's efficiency would be welcome as well, although the real-time image updating is my primary focus at the moment.

 

Regards,

Nicholas

Normalized Frequency Analytic wavelet transform

$
0
0

Hi, 

 

I am new to Labview and Signal Processing. For my work (file attached), I want to see the frequency component in detail, by using AWT Scalogram method available in signal processing toolkit wavelet transform (file attached). Signal data is read from text file and I get the frequency distribution on the scalogram. What I want is to normalize the frequency such that 50 Hz is eqaul to 1 on the y-axis of scalogram. So that total 0-1000 Hz on the y-axis shown in 0-20 values. According to theory available the normalized frequency shows scale from 0-1 but I don`t know how to do so, Need guidline in this regard.

Urgent help will be appreciated. 


Image from RT to FPGA

$
0
0

hi

i use cRIO 9068, i read  image with imaq and i want to send this image to FPGA with FIFO but i don't know how ?

thanks for help 

Problem in display of HEX

$
0
0

I have send a hex code as shown in diagram.By the output I am getting in array Is coming out as shown.I want the output also to be displayed in HEX (ie same format as i have send ).What is the error.?

please help... 

Build Array Function to create 3D array?

$
0
0

Well in Labview, I can create a 2D array just fine. But I am having trouble building a 3D array. Is there a means of doing this through the Front Panel like one would go about creating a 2d Array? Or can I use the Build Array Function to do this?

Synchronize Counter input Analog input

$
0
0

Hello,

 

I am trying to mesure the velocity of a motor by counting the edges from an encoder that output a 5V TTL signal, using counter input of a NI 9401. I am also trying to mesure the torque of the motor by using analog input of a NI 9251. The thing is I couldn't manage to acquire the two data in the same time domaine and write to a text or tdms file. 

 

Anyone has any idea how to do so? I have attached my vi. I am open to any suggestion!

Query regarding data sending through VISA

$
0
0

Hi,

I have to create a program through which I send a Query from one port (1st port ) to another port (2nd port)in form of Hexadecimal array using VISA Read/Write function and when it is recieved it gives out a respone in form of another hexadecimal array to the first port.

I have no idea how to do it.Please Help.

Thanks.

 

 

Viewing all 69285 articles
Browse latest View live