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

Excel csv format

$
0
0

Hi I am recently having a problem to writing to a spreadsheet file. Currently I am using the Export Waveform to Spreadsheet File.vi and it is working correctly except for the fact that the time column never changes. I think maybe the dt value is so small that time stamp does not have the required resolution. I got some advice to use a number (increment) instead. I found there are more file functions available for more options (write to spreadsheet, write string to spreadsheet) but the problem is I don't know how to implement this to my VI. I have attached the current VI which is still in progress and needs more work as to displaying functions(vpp,rise time, frequency) and want the .csv file to be more detailed and show date and time correctly (which right now the time is in 24hr instead of 12hr).  Is there a way I can have the VI set to a specific instrument such as "INST::7" which that is number to communicate with my 54645d scope? I used the instrument driver 54645D and using a GPIB cable to communicate with scope. Thank you in advance.


Setting X-Axis of Chart

$
0
0

I am trying to give my customer the facility to set the X-Axis maximum as he needs from 1 Hour to anywhere upto 24 hours.

 

The VI is attached. I am ble to do this but the values beyond 24 should roll over and start from 00:00 instead of continuing as 25:00 ...26:00 etc.

 

Any idea how to do this ?? ( The VI is in LV12 )

Sort data with display each move

$
0
0

Hy, 

I need a VI witch sort data with 2 aray .

2 array.JPG

 

In this image i have first aray and after sort, first column is position of cd in rack and second column is number of cd.

For sort i use position 6 in rack, this position is free.

For this situation array such as :

1 --- 6

3 --- 1

5 --- 3

4 --- 5

2 --- 4

6 --- 1

 

These are the moves you made ... i need a VI which makes it.

 

EX: 

exemple.JPG

 

Have a nice day .

 

reading textfiles

$
0
0

Hi, 

 

I'm using a data logger to get some data and a software package that write the data continiously in a textfile.

 

Now I want to read the real time data from the continiously changing textfile, with labview.

 

So I want to display the real time data continiously while the data logger is getting the data...

 

How is this possible?

 

 

Thanks

//escalader56.rssing.com/chan-24376853/article7665-live.html

UDP RT-Host connection problem

$
0
0

Hello,

I'm writing here asking for help in UDP connection between RT and Host.

When I run Simple UDP NI example that sends data between two ports on the localhost everything works fine. But when I move Sender vi to RT target I get 59 error (LabVIEW: The network is down, unreachable, or has been reset.).

It seems to be a problem with IP address. Does anyone has any idea what I do wrong? I attach the code: Simple UDP Receiver und My Computer, and Simple UDP Sender under the target.

I found this post: https://lavag.org/topic/16630-network-discovery-via-udp/ but it seems that the author tried to establish UDP connection between sender and receiver located (both) on RT target, while I try to write from RT to the PC.

Thank you for your time

Menu Separator Oddity

$
0
0

LV2013.1, Win7

 

I'm an old hand at LabVIEW, but new to using run-time menus.

 

I have a project with several windows, and I want a WINDOWS menu in each window.

 

I am early in development, and I'm still adding new windows.

 

Rather than duplicate the list of windows in each RTM, I have code to add it at ACTIVATION time:

Menu Code.PNG

 

All the different windows call this code at ACTIVATE? time.

So, when I add a new window, I add the name and tag to this list, and everybody gets it.

 

In most places in my project, the RTM has the WINDOW item in the menu bar, and there is nothing under it.

In those cases this works fine.  By running the above code, the WINDOW menu shows up with CLOSE as the first item, a separator, then CONFIG, etc....

 

However, there is one case where I want additional items in the menu before the standard ones.

 

In that one case, the RTM looks like this:  Note that it ends with a separator.

 

Menu 1.PNG

 

 

When I run it, that separator at the end SHOULD appear before the CLOSE item, but instead it disappears:

Menu 1a.PNG

 

The separator from the code is there (AFTER the CLOSE), but the one from the RTM is not ! 

 

Why not ?

 

If I add a dummy item after the separator in the RTM:

 

Menu 2.PNG

 

, then it works as expected:

 

Menu 2a.PNG

 

 

So, apparently, there is some rule that an RTM cannot end with a separator. Except that I can open the RTM up again and the separator is still there, it's not like LV deletes it.

 

My point is that I want the separator there, if it's NOT an empty menu to start with, but if it IS an empty menu, then I DON'T want to start with a separator.

 

Is this another case of LabVIEW trying to be "helpful" because it knows I made a "mistake", or something else I am missing?

 

I can change the code to detect the empty menu and decide for myself, I suppose, but why doesn't LV do what I ask?

 

Blinking led using a state machine

$
0
0

I need to blink a led two times and then turn off, after the second led has to do the same, I'm using a case structure and shift registers but it only stays in first case, I need to do this change automatically,  this is my VI, thanks :smileyhappy:


Create array of different property clusters

$
0
0

Hello All,

    I'm creating a VI which will read Excel sheets.  Each Excel sheet has multiple columns of data corresponding to measurements taken on various tools.  For example in the same sheet I'll have a Voltage vs. Current data, Current vs. Temperature Data, and Capacitance vs. Temperature data.   I would like to create a cluster array where each spot corresponds to a column of data regardless of the type of data.  So the first index may have information about a single Current vs. Voltage measurement, and the second will have information about a Temperature vs. Capacitance measurement.

 

The problem is that each of the measurements require different information so that the cluster at each spot in the array will have different properties (i.e. some may have 3 doubles and a double array while some will have 1 int and 2 double arrays).  Is there a way to accomplish this?

Control stepper motor with coordinates

$
0
0

I am a graduate student in University of Peireus in Greece , my teacher want to create a project with 3 controlling stepper motors (3 axis x,y,z ) to  get airborne measurement of an air tunnel  , also he want to control the steppers motors with labview specifically with coordinates x , y , z . I have no idea about the programming for this kind , so I want your help because I am helpless in this project . If I success in this project I will get my degree.

 

I have x3 stepper motors 4-wire , x3 usb-6009 .

 

I want help about the programming , I have no idea to programming in Labview .

 

I know how to connect the electrical parts but I dont know to programming this project , If you have any idea I want it .

Is there an updated solution to the AF Hands-On Exercise%3F

$
0
0

Hi All.  I'm attempting to work through the AF Hands-On exercise found at https://decibel.ni.com/content/docs/DOC-23893. I got up to 3.c in the instructions, Testing the Water Level actor.  I don't see the expected results, and noticed that the Water Level Test vi uses the "Lauch Actor" vi, which has been superceded by "Launch Root Actor" and "Launch Nested Actor".  I could not figure out how to use either one in the Water Level Test.

 

Is there an updated version of the AF Hands-On Exercise using the new VIs, or can someone tell me how to modify the Water Level Test vi to use the new actor launching VIs?

 

Thanks,

-Jamie

Wrong object file in cintools directory for LabVIEW for MacOSX?

$
0
0

I downloaded the evaluation version for LabVIEW for Mac OSX and am trying to use that to compile a framework shared library that also call LabVIEW manager functions.

 

The evaluation download claims to be LabVIEW 2014 32 Bit and I setup a frameowrk project in Xcode that should result in a framework for the i386 architecutre. But when I try to link to the lvexporst.a file in the cintools/Mac-O directory, Xcode complains that the object archive is not in the required architecture (i386). Looking at the lvexports.a file with "otool -vt <file path>" shows various object files in there with x64 as part of the name!

 

Could it be that LabVIEW 32 bit for MacOSX is shipping with the 64 bit versions of those object files??

Programmatically update Combo box won't update its Local variable

$
0
0

Hello all,

I followed a tutorial from NI website and programmatically edit items in a combo box. It worked successfully but not for the Local variables. Local variables still retain items that it had before.

Any suggestions ?

 

Thanks !

 

Hice un semaforo con flat secuence y quiero implementarlo con arduino y linx pero no puedo escribir las variables sobre arduino

$
0
0

Hola gracias de antemano por permitir consutar.

hice un semaforo con flat secuence y un while loop, ahora quiero implementarlo en arduino con linx, pero lo he intentado de varias maneras y no puedo leer las variables para escribirlas en arduino.

Lo intente en while loop, ahora dentro de las secuencias, pero nada.

aqui les dejo unas fotos del ultimo intento, estoy intentando almenos encender una luz de para probar.

 

ejercicio semaforo panel frontal.pngejercicio semaforo flat secuence.png

 

por favor ya no se me ocurre de que forma hacerlo.  Necesito una orientacion al respecto, gracias

 

Ennio

fpga FFT Length 8 problems?

$
0
0

So I am developing using a PXI-7953R and I am trying to get some FFT calculations done inside the FPGA where the source data comes from the host computer.  Things work fine when I use the FFT Express VI and set it up for "Inside Single-Cycle Timed Loop", "Single Channel, Single Data", but only when I am doing so with a fft length of 16.  Once I configure it to be of length 8, the FFT just does not send anything out.

 

I have re-written (or re-drawn) my code several times and still nothing works.  The only thing that I have gotten to show values is when my input data is a fixed-size array on the FPGA, but not when I am using a FIFO to send the data into the loop that contains the FFT.

 

In the attached source code, see the vi named "Host-Top-Level-Fft-8-Inside.vi" and you will see how the program flows.  I was wondering if anybody knew any "pertinent" information that I may have skipped over in the documentation such as about using a feedback node somewhere...etc

 


generate double exponential waveform

$
0
0

Good Day

 

How can i generate double exponential waveform using labview?

 

Best Regards

Ahmad Tarmimi

join number

$
0
0

I used the join numbers function as below:

1.JPG

It works well at most time, but some times I got an incorrect data. Such as: The data from visa is 01, 02, 03, 04.....and I should get 0102,0304; but I got 0102, 0403 sometimes.

I don't know if it is because the visa or somehting elsa.

Queued Message Handler: how to get a Subvi to continuously run while the queue goes on.

$
0
0

Hello,

 

I am still somewhat new to Labview and currently writing a program that utilizes the Queued Message Handler for automation. When the user presses the "start test" button on the main VI, a message is sent that closes some relays. Once the relays are closed, a message is sent calling a subVI that, when called, opens its front panel and steadly increases the RPM of a DC motor until it reaches synchronous speed.

 

Once it's at synchronous speed, a true value is sent to the stop condition in subVI's loop and the front panel closes, and the next message is sent, which calls a second subVI.  In order for my program to function correctly, when this second subVI executes, the DC motor must still be running at synchronous speed.

 

The issue I am having is that once the first subVI finishes executing and a message is sent to the second subVI, the speed of the motor does not stay constant and starts to decrease.  I would like for the first subVI to continue running so the motor will stay at synchronous speed.  How can this be accomplished? Any help or input is greatly appreciated. 

Pass Data outside For Loop

$
0
0

Hi 

 

How do we pass a particular data outside the 'For loop' after one iteration ? I would like to access the value of the tunnel after first iteration and not after the 'For loop' runs out completely.

 

Thanks 

How to generate specific pattern of square wave form in lab view

$
0
0
Hi,

I am testing an serial output adc using the Pxi machine with lab view code.

In order to test the device I need give a serial input pattern to one my pin to operate the device in particular mode.

I need to generate specific digital input pattern using Pxi and lab view .


Can anyone has any ideas or code to do that.

Thanks in advance.
Viewing all 66855 articles
Browse latest View live


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