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

LABVIEW

$
0
0

Sequence of (u8) representing codes collected from an 8 bits analog to digital converter. convert the array of u8 samples to dbl and scaling them to represent the voltage levels between 0v and 1V.

 

can anyone help out on this i have doubt how to scaling them to represent the voltage level between 0V and 1V


LabVIEW FTP

$
0
0

Hello All,

 

I'm facing problems in setting up a connection with FTP server.

 

We have setup FTP server with anonymous login enabled and assigned port is 21(default port for FTP).

 

We are able to access this FTP server using windows explorer and internet browers (like - IE & Google Crome).

But, we are unable to connect to this FTP server through LabVIEW .

 

Attached is the sample code used to testing purpose.

 

Here, we are getting following respose - 

A. 220 Microsft FTP Service (in FTP Open Session)

B. 530 Please login with USER and PASS. (in FTP Logon.VI)

 

I've alreday tried using default user name as anonymous and email ID as password.

Microsoft FTP service is running and set to automatic startup.

 

OS - Windows 7

LV - LV2013

 

Any help is highly appreaciated.

 

 

Regards,

Yogesh Sinare

using system exec.vi in a web service VI

$
0
0

Hi,

 

I have a simple web service in which I want to open some third party software. I'm experimenting with notepad right now. See the attached image of the web service code. It uses the 'system exec.vi' to open notepad. This works fine in the LabVIEW environment and it works fine when run through port 8001 as a web service. However, when I try to publish the web service and run it through port 8080, notepad doesn't open. I get no  errors back either. It seems to me that the 'system exec.vi' doesn't function the same when deployed as a web service. Any help appreciated.

 

Thanks,

lms17

Bug (Front Panel)

$
0
0

(sorry for my bad english)

 

This problem occurred while I was coding.
My block diagram was in full screen mode.
when I displayed again the Front Panel, I have seen this "wide black line". (impossible to remove it.)


I have not succeeded to reproduce this behavior.

 

 

Bug_FP.png

 

 

attachment : Bug_Front_Panel.vi - LV2014

 

 

Create an SQL procedure with SQL toolkit

$
0
0

Hi,

 

I'm using the SQL toolkit to get data from a MySQL DB (using ODBC connectors).

I'd like to automatically create a procedure on my DB when lauching my software application, so that I'm sure it exists when I will use it.

But I can't figure out how to do so with the SQL Toolkit.

Indeed, trying to run this script (which works when run on MySQL workbench) returns the following error :

 

DELIMITER $$

CREATE DEFINER=`indus`@`%` PROCEDURE `FPY`(IN START_DATETIME datetime, IN END_DATETIME datetime)
BEGIN
CREATE temporary table ListingUUT
(
UUT_SERIAL_NUMBER VARCHAR (127),
TEST_COUNTER INT,
TEST_TIME datetime,
UUT_STATUS VARCHAR (32)
);

CREATE temporary table Stat_FPY
(
TESTED INT,
TESTED_ONCE INT,
RATIO FLOAT
);

INSERT INTO Stat_FPY VALUES (0,0,0);
INSERT INTO ListingUUT
(
SELECT
UUT_SERIAL_NUMBER, SUM(1), START_DATE_TIME, UUT_STATUS
FROM booster_results.uut_result
WHERE START_DATE_TIME BETWEEN START_DATETIME AND END_DATETIME
GROUP BY UUT_SERIAL_NUMBER
ORDER BY START_DATE_TIME DESC
)
;

END

 

=> Error -2147217900 occurred at NI_Database_API.lvlib:Conn Execute.vi->Untitled 1

Possible reason(s):
ADO Error: 0x80040E14
Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [MySQL][ODBC 5.2(a) Driver][mysqld-5.6.10-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$

CREATE DEFINER=`indus`@`%` PROCEDURE `FPY`(IN START_DATETIME datet' at line 1 in NI_Database_API.lvlib:Conn Execute.vi->Untitled 1

 

Any idea so that I can create the procedure ?

TCP( EXAM QUESTION ANYONE PLEASE CHECK IT ).

$
0
0

Design a TCP server to provide the service exam service on the port 50601 .The server expect to read a message made of N bytes with the following structure:

Byte 0: length(u8)

Byte 1:command(u8)

Byte 2...Byte(N-1): Data Bytes (u8)

The first byte represent the message length(N).

The second byte is the command byte.

The remaining bytes are the data bytes.i.e a sequence of u8 representing codes collected from an 8bits analog to digital converter.

 

The server acts as in the following

1. If the command byte is equal to the hexadecimal code 0xAA the server builds a waveform converting the array of U8 samples (Data byes)to doubles(dbl)and scaling them to represent the voltage levels between 0v and 1 v.Assume for the waveform t0 the current time and dt=1ms .the server plots the samples and save the wavform to the file samples.txt.and  send to the client response DATA SAVED

2. If the 1st byte is equal to the hexadecimal code 0xBB the server builds a waveform converting the array of u8 samples(DATA BYTES) TO doubles(dbl)and sacling them to represent the voltage level between 0v and 1v.THE SERVER Calculates the maximum and minimm and avarage of teh recieved samples,show the result to the user in the fromt panel.

3. Every time a successful connection is closed ,the server saves the date,the time,the ip address of the remote client and the recieved byte(on a file entitled server log text)

4.any error ,the server jst replies the message ERROR OR MALFORMED REQUEST  and drops the connection.

NI Update Service a Virus?

$
0
0

Recently, Norton (Symantec) 360 Premier decided that most installation packages for LabVIEW, the NI Updater and other NI products are high risk viruses.

 

This is clearly not true.

 

Can the NI engineers contact Symantec and ask them to update their definitions?

 

There are far too many files to do the 'exclude' one by one.

 

Do you NI software engineers need more screen shots from me for evidence?

Daq Assist

$
0
0

Has anyone come across, or heard of, the situation where when bringing DAQ assist block under the Measurment I/O, DAQmx options onto the block diagram having the initialization progress bar appear, but the dialog box where you set up the generate/acquire signal information never opens?

 

It did work fine after my initial installation then after a couple updates mainly of the ELVIS software It has started doing this.  My machine is running Windows Vista, which I know is bordering on obsolete now, but still is theoretically compatable with everything.  If I use any of the applications in the ELVIS software like the DMM or Oscilloscpe it recognizes the myDAQ is there, it is just not connecting in LabView.

 

Does anyone know of a fix for this?  I have tried uninstalling ELVIS and reinstalling and that did not help it at all.

 

Thanks


Why odd number of samples in DAQ is not allowed?

$
0
0

Hi there,

  I was using traditional DAQ to write N analog samples to 1 channel for long time, I can output any number of samples to the same channel in traditional DAQ. But after I switch to the DAQmx, and I am using a timing to control the output of AO samples, I observed that it only allows  the even number of samples.

 

For the first try, I setup the following program

 

S1.png

In this case, no matter if the number of samples is odd or even, the code runs without any problem. However, if I use the sampling clock as belows

S2.png

 

The code runs without error if the number of samples is even but it fails if I use odd number of samples. The error returned as

 

error: -200692

DAQmx Write (Analog 1D DBL 1Chan NSamp).vi:1780002<append>
<B>Property: </B>SampQuant.SampPerChan
<B>Corresponding Value: </B>1233

<B>Property: </B>NumChans
<B>Corresponding Value: </B>1

Does anyone has any idea what's going on here? Thanks

how to find time delay between two input channels in ni pci 6036 DAQ card

$
0
0

Hello ,

I have read many related posts about simultaneous measurments of two analoge voltage input channels in  daq card .I know the best hardware is " simultaneous measurments Series of DAQ cards " but I only have pci 6036 DAQ card and I am trying to figure out what is the time delay between reading of the two channels .Is this time always constant ?(does it depend on  input voltage (frequency,amplitude,waveform ,..).I am sending sine wave(s) to both channels and reading off the V values, if they read the same value the difference should be always zero but I am getting -0.002 to 0.002 volts difference (I must find a way to convert this to time) .Attached is a screenshot of my VI.I am wondering how I can measure exactly the time delay between the channel .

I am open to any suggestion , my final goal to read the two channels exactly at the same time ((or find out the exact time delay so I can match the corresponding data considering the time delay))

Read Status of PXI trigger Bus/Lines in a PXI System

$
0
0

Hello Everyone,

 

I'am developing an application in which one of the cards inserted in the PXI chassis will send a trigger signal on the PXI trigger line 0 of bus 1, while another card on a different slot is waiting for the trigger on the specified trigger line. Both these cards are third party cards (Non NI)  which support triggering through its drivers and are inserted in the slots that comes under the chosen trigger bus range.( My chassis has 3 trigger buses). It seems my second card is not receiving the trigger. So i'm not sure whether my first card is actually generating a trigger on the specified line.  So i would like to know whether there exists any technique to monitor the states of trigger lines in labview, so that i can check whether triggering is actually occuring or not.

 

Note: since the cards are third party, I have reserved PXI trigger line 0 in NI MAX settings for my chassis.

 

Awaiting prompt response. Smiley Very Happy

Utilizar datos de combobox solo una vez

$
0
0

Buenos dias, disculpen tengo una duda, es posible restringir el numero de veces que se usa las opciones de un COMBOBOX? Ya que tengo 3 opciones en mi COMBOBOX y deseo que solo se utilicen una vez, de querer volver a utilizar me despliegue un mensaje, es posible hacer esto?

 

combobox.PNG

Combobox data question

$
0
0

HI everyone, I'm trying to use COMBOBOX to select what lamp ON, but I want to do it just once, if I try to ON again the same LAMP Labview will show an error message, Is it possible? Thanksfocos.PNG

Combobox data question

$
0
0

HI everyone, I'm trying to use COMBOBOX to select what lamp ON, but I want to do it just once, if I try to ON again the same LAMP Labview will show an error message, Is it possible? Thanksfocos.PNG

Saving data in keithley 6221 & 2182A sweep mode

$
0
0

I am using Keithley 6221 Current Source and 2182A Nanovoltmeter.
I am using RS-232 serial bus and trigger link to communicate between 6221 and 2182A and GPIB to communicate between 6221 and Computer.
Kindly tell me how to get data from this setup for a Current-Voltage(IV measurement).
Sweep is working fine but I am unable to save data in computer.
If possible a demo LabVIEW vi will be very helpful which can to save 100 points.

 

Vaibhavi Negi
Research Scholar
Delhi; India


Easy text report

$
0
0

Hi everyone, I'm trying to use Easy text report, to create an Excel file, I want to print a table, someone can explain how to do it? Capture.PNG

Aappending segmented 1D-arrays to 1D array

$
0
0

Hello. I am using Labview 2014 and need your help.

 

Please see the attached image which program is for appending segmented 1D-arrays to 1D array.

 

My purpose is to initially choose (or set) the number of controller (or No. of segmentation) so that I don’t need to change the program code to match the desired number of segmentation. For example, the No. of segmentation in the program as shown below is four and should be modified if I need to segment more or less than four.

 

I have two questions,

  1. Do you know how to automatically change the No. of segmentation if I initially set the segmentation number? For example, if the No. of segmentation is initially set to five, the only five ‘start’ and ‘length’ controllers are displayed.
  2. Do you know the easier way to append segmented 1D-arrays to 1D array? I think my code have many duplication.

Thanks,

 

Converser

20150705_135530.jpg

 

invalid roi

$
0
0

Hello all

 

I want to choose an area of the image. But I'd put a value to the rectangle input , I get the following error:

 

Error -1074395720 occurred at IMAQ OCR Read Text 3

 

I'm a new, please help me!

nonlinear system solver more equations than unknowns

$
0
0

Is possible to solve a nonlinear system with more equations than unknowns in LabView. I am doing some triangulation, and have data from several sensors, so I am able to write 6 equations in order to get 3 coordinates (x,y,z) as a solution. In LabView I was able only to solve a system of 3 equations with this 3 unknowns, but I would like to use all of the 6 equations in order to get more accurate solution, since some measurements can be noisy.

 

Thank you in advance

Evaluation of Vi

$
0
0

Hello all. I have nearly completed my first Vi. It does exactly what I want it to (apply 1-5 Volt signal out, read an input voltage in, read a series capacitance in, read the dissipation factor, and place all the results on a spreadsheet which I then open with Excel). Off to the left of the Vi is a sub Vi that is still in the works, it is simply a confirmation that the device is in position for test but haven't finished it yet. Very simple but since it is my first I am pretty most here will say it's crap and could be done much better and that is why I am posting it here, even though embarrassing, so that I may learn what I could do better with the same results. I have been through Core1, 2, and 3 online but this is the only practicle use of my training I have. This might be an unreasonable request however, I really want to learn so all criticism is welcomed. Thank you

Viewing all 69619 articles
Browse latest View live


Latest Images