Quantcast
Channel: All LabVIEW posts
Viewing all 202249 articles
Browse latest View live

Re: How to open password protected VI?

$
0
0

Open the file. And when you want to see the Block diagram a pop up will ask you for the password.


Linear fit

$
0
0

Hi all,

 

Attached you can find my .vi

I have two 1D arrays called "x" and "y".

I need to do a linear regression of 60 elements per time and determine the maximum and the minimum angular coefficient of the straight line.

The linear regression has to be done as follow:

1) linear regression for the data from #0 to #59, save the angular coefficient in a new array called "CA" in the position (0,0)

2) linear regression for the data from #1 to #60, save the angular coefficient  in the array "CA" in the position (1,0)

3) linear regression for the data from #2 to #61, save the angular coefficient  in the array "CA" in the position (2,0)

... till the end of the data into the 1D arrays.

 

Please Help ME

Re: Linear fit

$
0
0

Hi Gquadro,

 

what's the point to start a new thread for the very same topic?

 


 wrote:

The linear regression has to be done as follow:

1) linear regression for the data from #0 to #59,

2) linear regression for the data from #1 to #60,

3) linear regression for the data from #2 to #61,


Use the PtByPt-DataQueue with a length of 60…

Re: error loading lvanlys.dll in Labview 64 bits

$
0
0

Does anybody have a clue why lvanlys.dll cannot be loaded? It is quite fustrating... I have also tried to change things in the Bios, without luck.

Re: Linear fit

Remote Front Panel Missing IMAQ Image Display in Internet Explorer

$
0
0

Hello!

 

I have an application developed using NI Vision Development Module. One of the functions is web panel to check the results in internet browser. So, I had to create html page according this guides:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LrSSAU&l

http://www.ni.com/tutorial/4791/en/

In most remote PC everything works fine (I can access front panel and use full functionality), but I faced with a problem only on several machines where I can access to front panel but can't use IMAQ Image Display - I have black field without any functions instead of Image control. It seems that somethings blocks some components in IE.

 

So, I have already checked: MS Silverlight, LV ActiveX and IMAQ ActiveX plugins in Internet Explorer. Everything the same like on others machines.
Also I tried this guide:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019M9WSAU&l

 

LabVIEW version: LV18SP1 x64

OS Host: Windows 10

OS Client: Windows 10

Internet Explorer Version: 11.973.17763

Network: Local

 

Hope for any suggestions!

Thanks in advance!

Re: Linear fit

Cannot control the motor motion and the FPGA data acquisition simultaneously

$
0
0

I am a student in the UK, I am trying to control the stepper motor and acquire some data by NI 9215 interface (FPGA) simultaneously. I can control the motor and data acquisition separately. But once I run the FPGA part, I lose control of the motor even if I restarted all systems and there was an error on NI 9512 (-70233). I think I have set cRIO-9037 in hybrid mode. How can I solve this problem? Please see more detail below:

Hardware: cRIO-9037, NI 9512 (stepper interface), NI 9215 (analog input).

 

 


Re: Linear fit

$
0
0

but i can't connect my array with ptbypt data queue

Re: Linear fit

$
0
0

Hi Gquadro,

 


 wrote:

but i can't connect my array with ptbypt data queue


Maybe because PtByPt-DataQueue expects scalar values?!

 

When you already have your data as a 1D array then you could use a loop (without autoindexing) and ArraySubset to read subsets of 60 elements: basic array handling as taught in the Training resources. Did I mention the Training resources before?

Re: FPGA timing different in execution mode and simulation mode

$
0
0

 wrote:

Ok, thanks for the restatement.

 

Looking at your opening images again, I'd be tempted to see if I could rework the 3rd picture (the filter) into a single pipelined SCTL (and remove the outer loop, the For loop and the inner SCTLs).


You actually can't do that as Butterworth filter is SCTL itself and you can't nest SCTLs.


 wrote:

Looking at your opening images again,


I uploaded a simplified FPGA project for GerdW, reuploading it here again somewhere.

 


 wrote:

I will note that writing multiple times to the same FIFO inside a SCTL won't do anything good for you - see the details here: Understanding Arbitration Options (FPGA Module) in particular the end section about "Never Arbitrate" (which is, I think, the only way you could compile multiple writes in a SCTL).


The arbitration option is for SIMULTANEOUS writes - only if you have multiple accessors which could write at the same moment. Functionally, arbitration is just a complex FPGA semaphore frame for FIFO access. Also, when configuring writing multiple elements to FIFO in FIFO properties, you can choose only values like 1,2,4,8,16,32 elements per write,which indicates that the writing is different method.

 

My problem as described in the first post is that in simulation mode I get timing I kind of expect: 30 FPGA ticks per cycle, whereas in execution mode, after compilation, I often found that timing is more than 400 ticks per cycle, resulting in missing every second piece of data. I was told here that it is normal that simulation timing is less than in execution, but I would like to find WHY it goes ten times longer in execution mode. I hoped for some basic mistake in my project.

Re: FPGA timing different in execution mode and simulation mode

$
0
0

I have run into similar issues, with my interpretation of the end result being that all logic on the FPGA chip up to but not including the actual hardware device being controlled is simulated. When I test in simulation mode, I have zero delay between my outputs and inputs when in reality the delay is approximately 30us.

 

Having said that, I program exclusively with SCTLs on FPGA and am only familiar with the simulation timing of that mode of operation.

Re: Mass Hide/Unhide Controls

$
0
0

Every time I return to a project I'm working on I end up finding new functions I haven't explored yet and realise they are a perfect solution to the problem I have.  

 

I've accepted the solution of Tabs as this works perfectly for the scenario I'm in, essentially a panel showing controls only required at the point of data capture.  I do have a several controls which need to be hidden/unhidden on that tab but much more manageable that my original method.

 

Many thanks everyone to the suggestions - I have also looked into Sub Panels which I've not yet used, I just felt Tabs were the easiest solution to my problem.

Error Building Packed Project Library (PPL) in LabVIEW 2020 Beta (20.0b52)

Re: LabVIEW Crashes while using Native NI XML Parser with Exception 0xc0000005

$
0
0

Hi Thols and Billko,

 

Thanks for your reply

 

I am able to run the example "Parse XML String for Multiple Nodes.vi" without any issue. I would like to elaborate on how I am using the NI XML Parser and the issue that I am facing

 

In my project, we have an XML parser which uses the NI XML library to parse an XML file and gives out the data in the form of clusters(Output Data Clusters). We have created JKI unit tests to test this XML parser module. The parser module runs as expected when I call them in a VI but hangs when I run multiple tests from JKI VI Tester. Running a single unit test doesn't hang LabVIEW. Before a month, I was able to run unit tests without any issues. Recently, we have made a few changes in the Output Data Clusters that the parser module gives out(removed few unnecessary items). As changes are minor which removes few items from the output data clusters, I don't see that as the reason for the issue.

 

Even now, I am able to run the VIs as expected and I am also able to run the individual tests as expected and LabVIEW doesn't crash. The problem occurs when I run a set of tests together --> LabVIEW crashes at Call Library Function node of the 'Get All Matched Nodes.vi'. I have also observed that LabVIEW doesn't crash at this VI every time but crashes after calling it a couple of times.

 

Please let me know what might be the reason for this kind of issue.

 

Also, From this page, I see that wiring the inputs is mandatory for a few data types to allocate the memory when calling a DLL.

 

  Monisha26_0-1580732327188.png

 

Could you please help me to understand how memory allocation is handled in 'Get All Matched Nodes.vi' and 'Get First Matched Node.vi' if it is not that case?

 

Thanks,

Monisha.

 


Re: Agilent 33522B Waveform Generator not following Labview input values

$
0
0

Hi mctnn, 

 

The subVIs weren't attached to your post, but based on what I can see in the image, and given the VI that I downloaded (sometimes the VI initially doesn't appear, but then later does - it's a weird forum quirk) I'd guess that they are not triggered together to synchronised in any way, and so the delay between the two is variable, which leads to variable delay on a triggered oscilloscope.

 

Probably the driver includes some method to start all channels at a specific time (together), rather than as soon as you set them.

 

You're also setting them in a loop, which might not be what you want/need.

Perhaps you can implement the suggested State Machine to change the output types, and have some idle or timeout state when you don't change any of the inputs.

Re: Question for Experts: DVRs data pass to C DLL?

Missing dll files

$
0
0

Hello, 

 

i created one project to control TTi power source.

Works fine, but when I create exe, then missing two dlls, IVI.dll and CPX400DP_32.dll.

in dependecies in project, there is this two dlls.

Also i tried to copy beside application, but without success.

proj.JPG

 

Can someone advice how to overcome this?

Thanks.

communication ethernet

$
0
0

Hi,

I am trying to connect with a cylinder with ethernet from labview and I have got it because I have done different functions where I have probed that this connection is good. Now, I am doing a different function and I have found this error and I don´t understand why it apperas.

I attach also the program

error.PNG

Re: Missing dll files

$
0
0

And also, exe throws error missing functions:

CPX400 Close.vi and CPX400 initialize with options.VI, but they are present in depedences also.

1.JPG

Viewing all 202249 articles
Browse latest View live


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