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

Nonlinear Prediction Intervals

$
0
0

Hello LabVIEW community,

 

Under the Mathematics > Fitting > Advanced Curve Fitting > Nonlinear Curve Fit Intervals.vi does not provide a drop-down option for prediction intervals. It appears by default that the results may only be the confidence intervals. Is there an existing VI, or a simple way, to obtain prediction intervals for nonlinear curves in LabVIEW?

 

Thank you,

 

Scott


Getting LabVIEW to interface with a leak detector

Labview with Labjack T7

$
0
0

Attempting to write to a Labjack T7

I've got reads working I need some help moving boolean values into an array of doubles

I'd like the switches and indicator array to write to the 3rd element of the Values In Array

 

Newer to Labview and could certainly use the help

Labjack T7 writing to array elements

$
0
0

I'm struggling to write to array elements.
I've got a boolean switch array that I'd like to convert to a double array and move to the 3rd element of a 2D array.  I'm going to attach a file and see if I can get a point in the right direction.

PXI 6683H

$
0
0

First, please open the following web.
http://www.ni.com/tutorial/53115/en/.
When I went to step 4 based on this post,I met a question.
I did not find the Oscillator and  PXI_Clk10 in the source.I also did not find the ClkOut and  BoardClk in the Destination.
Thank you very much.

LV 2007 doesn't start

$
0
0

Hi everyone first of all,

As the topic name says i own LV 2007 version on a new pc, why it doesn't start?

We had an equipment using a VI with this labview version, the computer is now damaged for other reasons,

we had another HD as backup, then now we're triying to re build a new computer with the same drivers and VI's,

everyone looks fine in the new computer with a new hd, but when i try to open the vi we used to work with, it doesn't open

the image of the vi opening shows up but suddenly gets closed and nothing happends, same with LV, when i search for the NI folder

the LV executable icon doesn't open neither, looks like LV hasn't been installed, so i have to re install LV 2007 once again?

Now with this new HD i have no info about the license, i can't open LV and the files in NI folder looks incomplete, what shoulld i do to know my serial number?

Does anyone have any link to install LV 2007? 

Thanks for reading!

ループ処理中のデータ表示について

$
0
0
Labviewの動作について教えてください。
 
ループ処理中に得られる計測データを、
ループ処理実行中に、ループ処理の外部にある表示器に表示させることは可能でしょうか。
やりたいことは、
シーケンス動作を行うサブVIを製作して、MainとなるサブVIから、
このサブVIを実行します。
シーケンス動作を行うサブVIでは計測を実施していき、
MainとなるサブVIに配置するチャートや表示器に、
計測したデータを表示していきたいのです。
ただ、シーケンス動作を行うサブVIはループ処理を伴うので、
ループ処理が完了するまで、データが出てこないので表示が出来ません。
何か方法があるのでしょうか?
それとも、この考え方はできないのでしょうか?
宜しくお願いします。

How to Nuke DSC Data

$
0
0

TL;DR: How do I completely remove all DSC related data from my machine?

 

I have several DSC processes running in my application. They have been fine for months. Suddenly, the process called "Relays" will crash the NI Variable Engine when deployed (all other processes will cease to run, if opened in Distributed System Manager the +/- tree shows nothing when clicked) (Variables are unavailable, will throw errors if attempted to read programatically). If I then Undeploy the "Relays" Process, stop the NI Variable Engine, and restart it, the other Processes run fine until I then attempt to deploy "Relays" again.

 

I tried looking at the variables to see if anything was aliased incorrectly - it all looks good. I tried rebooting, reinstalling, reinstalling with the /reinstall option on the command line, with no help. Interestingly, if I change the name of "Relays" to anything else (without changing any of the actual tags, database, settings, aliases, etc.) it will work fine. Changing the name of the Process in my project would be a giant PITA and is not really practical at this point. 

 

I'm running labview/DSC 2018 on a Windows 2012 Server machine. I actually have an identical machine with identical processes etc. as a backup that works fine (both machines are required for the total project to be successful) with the process named "Relays".

 

I'm assuming there's some file somewhere where the process called "Relays" has some corruption which is killing everything. I tried deleting every folder I could find on the system with National Instruments involved with no luck.

 

Any thoughts?


difficulties when calling excel ActiveX

$
0
0

I use the diagram below to set the range "A1" background color to be Green.

微信截图_20190516083618.png

As you can see ,the first two blocks I use the report builder blocks which were built in LabVIEW, it works well.

 

but sometimes , I need to call other applications ,not so simple as Excel  , and I need to build the reference all by myself, such as below:

2.png

and then ,as a practise, I tried calling Excel by the second method , but ,when choosing the ActiveX class, I was strongly puzzled ,there are so many ActiveX classes and I don't which one to choose , from which one to begin.  I can disgunish them only from their names , no more instructions.

3.png

 

what shall I do ?

any suggestion will be appreciated~~

ループ処理中のデータ表示について

TDMS in labview

$
0
0

while reading a TDMS file, it is showing memory full. how it can be solved?

LabView Arduino Led Control

$
0
0

Hi

I need to control 3 Led with Labview over Arduino.But i cannot figure out i made 1 Led control how can i add 2 more Led on this Arduino code and Labview vi.

Thank you

 

My Arduino Code.

 

int led;
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop() {
if(Serial.available ()> 0)
{
led = Serial.read ();
if (led == '1')
{
digitalWrite (13,1);
}
else if (led == '0')
{
digitalWrite (13,0);
}
}
}

 

protection of vi by mac address

$
0
0

Hallo,

 

I am new to labview. I am trying to protect a VI by mac address so that it can be used on a single PC only. I searched for tutorials, but I got nothing. Is there any tutorial or example VI from where I can get some help.

 

Thank for your support. 

 

 

CPU and memory usage of subvis in an exe with windows task manager

$
0
0

 

Dear Community,

Is there a way to separately show the memory and cpu usage of a/multipe running subvis of my application in windows task manager?

Thanks in advance for any ideas.

Are there any known advantages of using JSON in a labview project ?

$
0
0

Hello,

I have a command queue  over which runs the commands and data to a function block. This I impement using clusters.
What I am trying to figure out is that whether replacing clusters with JSON give any specific advantage to the project in a long run.
Clusters can be made quasi-dynamic by making them generic and using array elements.(that's my argument about cluster.)
And data needs to be packed in JSON and unpacked at other end.
Has anyone used JSON extensively in LabVIEW Project to povide better flexibility & data handling in communication within the project.
Can you share your experience.

regards,
Akshay


parallel loops run abnormally

$
0
0

Hello!

    In my VI, I use parallel loops structure to implement the application. One of loops for controlling four motors, the other for reading data through UART.

    But there is a problem, when implementing the program, sometimes both loops work normally, but sometimes, one of loops is not executed(usually the UART reading loop).

    I want to know why it happen. I upload my program below. The problem VI is quadrotor main(alt hold single PID).vi. By the way, my LabVIEW version is 2015 and the VI is implemented in NI myRIO controller.

Thank you for your great help.

  

 

Tracking Movable Objects – the coordinates of the objects are not correct

$
0
0

Hello

 

I would like to track movable objects in Labview. I use Shape Detection module for spherical objects tracking. I noticed the following problem. I have two objects. A launched a sequence of 5 frames. At the first frame the XY coordinates of the object 1 are taken from the object 2 and vice versa. The other frames are OK. How to resolve this error?

 

Thank you

Data acquisition and logging of a Dynamic signal acquisition module(NI-9234) using an FPGA(NI cRIO 9041)

$
0
0

I have an accelerometer coupled to a compact RIO controller cRIO-9041 via the NI 9234 module. As this module is a DSA module, one needs to start and stop the acquisition to make sure that it is scanning. I have currently set the data scan rate, set the acquisition to start and use a FIFO buffer transfer it to the RT host to plot it on a

waveform chart and simultaneously log it to TDMS file.

 

Having followed an older example (compatible with LV 2012) here:

https://forums.ni.com/t5/Example-Programs/Acquisition-and-Data-Logging-of-Vibration-signals-on-CompactRIO/ta-p/3491019?profile.language=en

 

Any insight on where I am going wrong is highly appreciated.

 

I have managed to get the module to acquire readings at a deterministic rate. While the FIFO buffer isn't overflowing, the recorded values are not right (i.e, a flat line even when I am shaking it).  

 

The FPGA.vi:

FPGAviforQ1.png

 

The RT.vi on the x86 host:

RTviforQ1.png

 

As for the FIFO buffer used, the data type is set to Fixed point with signed 26 bit word length and 5 bit integer length. 

 

My reasoning behind the choice of FIFO Read parameters is:

1.  There are three inputs scanned @ 1.652 kHz simultaneously, i.e., there are roughly 5000 samples (~4956) captured every second. In other words, around 500 samples every 100 milliseconds. Rounding to the nearest multiple of 3, I have chosen to read 501 samples.

2. The timeout is the standard recommendation from the documentation page.   

Convert LabVIEW NXG Project to LabVIEW 2018

$
0
0

Hi everyone,

I have created a Project in LabVIEW NXG and would like to convert it to LabVIEW 2018. Are there any possibilities to do so?

If it is not possible to convert the whole project, is there at least a way to convert the VIs?

 

So far I have only found informations about how to convert from 2018 to NXG or from 2018 to older versions...

 

Thank you very much,

 

Jonathan

Separate array 2d and save

$
0
0

Hi, I need to get an array of 2 dimensions below and put each variable inside an array. It would separate this array with all information in multiple arrays, with information only from the corresponding variable. In the end I need to save these array.

 

Array

CUSmiley SurprisedK

CU:ERROR

FIBER_C:H

FIBER_D:H

HALOGENSmiley SurprisedFF

THARSmiley SurprisedFF

THAR_T:0

THAR_C:0.66

HALOGEN_C:-0.17

MOTORS_C:-0.12

Viewing all 66970 articles
Browse latest View live


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