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

I would like to modify a VI from an official library: any suggestions on how to do that without destroying the original file?

$
0
0

I would like to modify a VI (Unconstrained Optimization.vi). The reason is that I need non only the final result, but also the intermediate results iteration by iteration. 

The problem is that I don't want to ruin the original files, I would like to have a modified personal. 

I don't know how to do that. The "Save as" is disabled. What is the safest procedure to do that? 

I am using LV 2015 SP1 64 bits.


Another XY multiplot issue

$
0
0

I can create multiple plots if I do it all at once by using an array of clusters.
However, I want to create a second plot *after* the first plot is created and plotted. I cant seem to get this to work correctly.

 

Capture.PNG

 

On a side note... how do you make the images that you can drag from here onto a block diagram?

Please convert labview 4.01 VIs to 16.0

$
0
0

These are VIs for a 2000 - 2004 era motor controller called a Velmex VP9000. If these could be converted to something that will work with 16.0 I would greatly appreciate it.

 

Thanks.

3D Vector Data using Quiver Plots

$
0
0

I need help finding the best way to represent 3D magnetic field data taken in 3D space.

 

I will start out with a spreadsheet of 3D magnetic field strength taken in various 3D locations.  There won't necessarily be any order in the data taken.  It will be sets of linear data taken down the columns of the spreadsheet.

 

I found the Quiver example, but I am having difficulty understanding how I need to search/manipulate my data to generate the possible inputs for the Quiver Data Type Plot Helper.

 

I think the best way to look at the data would be to slice the 3D locations into individual 2D plane and then attach the 3D vector arrows to the 2D location points.  Let me know if there is another/better way.

 

I don't think the best 2D plane to slice this 3D location in would be the horizontal plane, but I guess that would depend on the user of the program.  So I guess I would need to have that selectable (X,Y,Z) if needed.

 

If the Quiver example isn't the right way for this please let me know.

 

Just a bit out of my area of expertise.  Thanks for any help you can provide!!!

visa

$
0
0

bagaimana cara menampilkan sinyal hasil program, disini saya menggunakan sinyal input suara dengan interface arduino, dan bagaimana cara identifikasi sinyal suara tersebut?

ini adalah program yang telah saya buat., apakan ada yang salah atau yang ditambahkan?

Why my XY chart does not work?

$
0
0

I have the following diagram which is supposed to show two charts for the Sine functions (working) and also XY on another chart. The tunnels are indexing and the output goes through DDT as you can see.

VI

 

This is what I get on the XY chart:

XY graph

 

This is not what I was expecting. I'll appreciate it if anyone could help out - thanks!

Can we trigger a signal on a AI with the NI 9215 module ?

$
0
0

Hi everybody !

I got a little problem right now !

I need to gather a signal from a tektronix tds 2004 oscilloscope with the NI9215 (chassis: NI cDAQ-9172) and I would like to trigger this signal with one of the four analogic input . I don't think this is possible but if someone egot a trick Smiley Wink

Thanks for you help !

DAQ assistance missing

$
0
0

The DAQ assistant missing from function of LabVIEW 2017. (I first install NI-DAQmx driver before install LabVIEW). What should i do to fix this problem ?

Thanks.

(I have LabVIEW 2017 and DAQmx version 17.0 as shown in attached files)


Download Vision Development Module Run-Time 2017?

$
0
0

Hey

 

Where can I download the new Vision Development Module Run-Time Engine 2017? Can't found it.

We wan't to distribute the new Run-Time-Engine in our production.

Understanding producer consumer

$
0
0

Hi,

 

i´m trying to make first experiences with producer, consumer loops and event state machine with queues

Unfortunately my consumer loop doesn´t run as while loop.

Can someone explain it?

MY SUB VI DOESN'T WORK.

$
0
0

Hello,

I'm creating a sub VI, where there's a radio button related to a boolean case and there's an another boolean case under it. in these cases I put the main commands and functions with their local variables. so, when I use this as a sub VI when I'm changing from case to another it doesn't work for example case 1:
x * my = z case 2:
z / x = my case 3:
z/y = x each time a case selected there is one command must not change, but it should give the result

 

Display a PDF file in a Window within VI FP.

$
0
0

Am using LV15 on a Windows 10 machine. 

 

I am looking to create a standalone VI that will help the user to choose a PDF file and then display it within the Front Panel of the VI.  SO why would I want to do this ?  For a particular product line that we deal there are some 300 plus data sheets and I should be able to call up a particular Data Sheet  based on the first few characters of the relevant PDF file. 

I looked upon a example here : http://forums.ni.com/t5/Example-Program-Drafts/Display-PDF-in-Dialog-box-in-LabVIEW/ta-p/3506322

 

But that one is not very consistent and worked once or twice.. but always when STOP was pressed, it kind of froze.  Any better methods or VI examples exist ?? 

How to know the clock that is working PCI NI-8517?

$
0
0

Hello Everybody,

I have syncronized cDaq 9188 with FlexRay. I am sharing the clock therefore I am sending 10MHZ from cDaq (I am using PFI1) to NI PCI NI-8517 (FrontPanel1).

I asking myself if there is a way o XNET to check that the clock of NIPCI -8517 is working appropriately.

Any help. it will be very helpfull.
Regards

 

Trigger function not working?

$
0
0

Hi there,

 

I'm not quite sure why, but my whenever I execute my trigger function, my waveform disappears. (I'm still new to LabVIEW, so I'm sure it's an easy fix; I just haven't found the right solution, yet)

 

I have attached my troubleshooting VI. This VI is just a part of the bigger program. The whole program actually has another trigger function that works fine. 

 

Any guidance would be appreciated. 

 

Thanks so much!

 

Transpose 1D Array

$
0
0

Can somebody explain this function to me? (I'm looking for creative answers here.)

transpose 1d array.png


Something akin to Hardware Timed Single Point for cDAQ in DAQmx

$
0
0

I have a cDAQ-9188 with a 9375 DIO module (3 of them actually) that I need to output a constant value on but then change that value on the fly. The changes may happen rapidly, on the order of 10 ms during a test. Ideally I would use the Hardware Timed Single Point sampling mode (DAQmx Sample Clock vi) because it would output the same value continuously until changed without a buffer, but unfortunately cDAQ does not support this sample mode. I don't want to just fill up a large buffer because I may need to change the output value's rapidly (and the value of the output may not be known far enough in advance to fill a buffer of the appropriate values).

 

Any suggestions?

 

LV 2016, 32 bit

Best practice ... structured programming in LabVIEW?

$
0
0

In structured programming, it is suggested to put the things that get changed a lot but don't transform the fundamental process of the software, the dials and gas pedals of the code, in a particular location with good annotation.

 

I'm not sure how to think about that with data-flow in LabVIEW.

 

Is it best to put the control adjacent to the code that consumes it, or to put it all on the left side in a box with annotation.  Aesthetically the latter might be more appealing, but it interferes with data-flow.  Is this thought of more like an electric circuit diagram where there are tabs to "ground" or "power" wherever it makes sense? 

 

What is the current best practice?

What motivates that as the best practice?

quiver plot

$
0
0

I need help understanding the quiver plot. What is the purpose of the length vectors in the quiver plot? Trying to decide if i need to use them or not.

Creation of excel File: write to measurement File timestamp

$
0
0

Hello,

I have a Problem regarding to Write Configuration file and time consumption. I am reading measurements from different devices (4 x ni6008 rate 1250Hz, continuos samples, 100 samples/channel;  cDAQ9174, using as a ) so at the end I have 50 measurements in every iteration of the loop. I checked how much time every device Needs to read in the channels and the "slowest" Needs Maximum 300ms (between 280-290ms), the other devices are quite fast (10ms). I have also inside the loop a elapsed time block (sometimes I want 1 Minute of measurements, sometimes 1h) and I want to log These measurements into an Excel file

 

I would like to have These measurements, at maximum, every 0.5s (if it is faster, better, but I guess the Maximum for my Hardware configuration is 300ms) stored in an Excel file, with the timestamp, and I am using Write to Configuration file.

 

The Problem I have is: The first second of the measurements, I write data every 0.3s, and after that, every second. If I Change the time of the loop, doesn´t matter, first second I log data every 0.3 and then every second (you can see this behavior below, untitled is the time of the loop, in minutes). Why this Change of Speed of writing? Is a Problem of open/Close the Excel file in every Iteration of the loop? if it is this Problem, why I can write so fast at the beginning?

Is a Problem of the reading from the devices? The configuration of the Analog 1D DBL NChan 1 Sampl is timeout to -1, but I am not sure "how to Play" with this Parameter. I define the channels of the devices much before than coming into the loop, could be that the Problem that then the devices wait until they get the 100Samples?

(from the help: timeout specifies the amount of time in seconds to wait for samples to become available. If the time elapses, the VI returns an error and any samples read before the timeout elapsed. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to read the requested samples and returns an error if it is unable to)

 

Should be 0 and put lower samples per channel?

 

Thanks in advance

 

 

Here the output excel

TimeUntitledUntitled 1Untitled 2
08.06.2017 16:33:41,2491000
08.06.2017 16:33:41,5281000
08.06.2017 16:33:41,7881000
08.06.2017 16:33:42,0491000
08.06.2017 16:33:42,3881000
08.06.2017 16:33:43,3891000
08.06.2017 16:33:44,3891000
08.06.2017 16:34:16,3841100
08.06.2017 16:34:16,6311100
08.06.2017 16:34:16,9221100
08.06.2017 16:34:17,3871100
08.06.2017 16:34:18,3881100
08.06.2017 16:34:19,3871100

Unable to locate the LabVIEW on Linux

$
0
0

Helo, 

 Sorry for my english

 

I compiled attached "WhileLoop.vi" file in LabView 2016 32-bit  into appW.exe file on my Windows 10. 

I would like to run this appW.exe on Linux (Fedora 25).

Because appW.exe is not for Linux ..

I used wine application on Fedora and Install LabView real time 2016 from 

http://www.ni.com/download/labview-run-time-engine-2016/6064/en/

and have installed: 

labView-2016-rte-16.0.0 -3. x86_64

labView-2016-rte-32bit-16.0.0.-3.i386

 

After I use  # wine appW.exe  command the Labview error occured ( In attached)  

 Unable to locate the LabVIEW Runtime Engine. 

 

How Can I fix this bug, what can be wrong set?

 

Thank you for any help you can provide.

Michal

 

Viewing all 68969 articles
Browse latest View live