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

Memory Overflowing

$
0
0

Hello together!

I am currently working on a nasty memory problem that keeps filling up my working memory.

I think I have narrowed the problem down to the size of one array in my subVI (see attached picture).

If the size of this array increases the memory overflow problem increases as well (MB per subVI run).

 

The working structure is the following:

In my main VI an array of "Waveform Descriptions" is created and sent to the subVI. This VI than translates the array into a different array that is than sent to a device. The red-marked subVI in the picture is creating an array that can contain >100000 datapoints. This procedure is called repeatedly about every 10 seconds.

 

During these iterations the memory, Labview is using, increases every step until it overflows. Since the subVI is always called again and should not save any data, I don't know why this memory is increasing.

I also attached a picture where I monitored the memory usage as suggested by NI.

 

I tried so far to put Request Deallocation functions at the end of the subVI and Close References at the .net references. But that did not solve the problem.

 

 

 PerfMon.png

arb1.PNG

 

 

If anybody has any suggestions what I can try to resolve this problem I would be very happy. Thanks!

 


How to programming LabVIEW to create Temperature application like this VDO?

$
0
0

Dear Everyone,

 

How to use LabVIEW create application like this VDO and this picture attachment.

 

Best Regards,

Nirut

Manipulation sous vi labview NXG

$
0
0

Bonjour à la communauté,

 

Je souhaite savoir si il est possible d'ouvrir l'interface d'un sous vi sans passer par le diagramme.

 

Je vous remercie par avance pour vos réponses.

5 -binary modbus registers represented as leds

$
0
0

mod ques.JPG

Hi 

thank you for taking time to read my query. i have a working modbus which can read  the  modbus registers in binary but, i don't know how to represent those binary representation using 16 leads for 0 to 15 binary (1's [led status - on] and 0's [led status - off]) can any one help me on how to do it

 

vi block.JPG

Anyone have experience of validating Labview in a medical application?

$
0
0

As the title says, I'm trying to find how to validate a LabView application used in a medical product.

 

There is endless information on the web about the theory, but I'm looking for the actual nuts 'n bolts of doing it. NI do sell some tools but they are pretty expensive.

 

Does anyone have any examples of what you actually need to do?

 

Thanks

Andrew

 

get the size of front panel in pixels

$
0
0

hello, I have one more question.

How can I programmatically get the front panel window size in pixels? I mean not by VI Properties.

FIFO between FPGA and RT (Compact RIO)

$
0
0

Hi,

I have inherited two Labview codes for Compact RIO. They have quiet similar structure, with some differences. My problem is with the FIFO between FPGA and RT, which passes an array. The actual code is different, as one has no CAN messages and another has 2 CAN channels. In both cases, I had to change the size of the array – it worked with the one without CAN, but it does not work with the one with CAN.

 

The one without CAN is like in attachment 1 (FIFO_Mod4.png).

The input to the For loop is a 1-D array of 107 FXP <+/- 26,5>, which is getting through.

Another one with CAN is like in attachment 2 (FIFO_Mod8.png)

It has two CAN channels and the third element of the array is a bunch of analog and digital signals. The input to the For loop is a 1-D array of 290 FXP <+/- 26,5>, but only 160 FXP is getting through, which is the original size of the array.

In both cases, auto-indexing is enabled.

 

Questions:

  1. May the different structures cause different behaviors?
  2. Are there any other places in the code, where the size of the array can be influenced (defined or restricted) for the second case?

Thanks.

 

Regards,

 

Zoltan

Getting Javascript data to WebVI

$
0
0

I'm just getting started with WebVIs as part of the LabVIEW NXG Web Module and have a basic question:  How do I get data from javascript into the WebVI block diagram?  

 

I have existing Javascript code that generates data but I want to move the processing of that data from javascript to the WebVI.  There are examples on how to include my custom javascript into a webVI, but I'm not sure how to integrate it in with the WebVI code. 

 

At NI week there was discussion of a "Javascript Library Interface", but I can't seem to find any online documentation.  Does the "Javascript Library Interface" solve my problem, or is there some other way, or is it impossible?

 

 


Access Teststand Numeric Limit test Comparison Type in labVIE

$
0
0

What is the lookup string to access the Comparison type selected for a (Teststand) Numeric Limit test step type in LabVIEW?

I tried using the Step.Limits.Comp but it didnt work. Also does it use the GetValString?Comparison type.JPG

 

Teststand Sequence Context reference becomes invalid

$
0
0

I have an Action step VI that calls another VI asynchronously and passes the TS sequence context along. Inside the Async VI, the reference becomes invalid when i check with not a refnum function. 

Async Call.jpg

 The error is: 

Error 1 occurred at Unzulässige Funktion.
in Initialize Termination Monitor.vi->TPL.PXI RF.Interface.lvlib:AsyncObjects_Viewer.vi->TPL.PXI RF.Interface.lvlib:AsyncObjects_Viewer.vi.ACBRProxyCaller.D4A00078

Possible reason(s):

LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.

Async VI.jpg

 

 

How is the  reference going out of memory?

DataPlugin for DataFinder Server using LabVIEW SDK - 32-bit, 64-bit, OH MY!

$
0
0

I just finished an installation of DataFinder Server and have mostly worked through configuring it to index a mix of TDMS and MDF files.

 

I found that the MDF metadata properties meant to be certain datatypes, always get read as, and appear in DIAdem as strings... so I downloaded the LabVIEW DataPlugin SDK and wrote a wrapper for the standard MDF DataPlugin to convert the string metadata to more colorful datatypes, to allow meaningful searches on those properties.

 

Writing the code was easy, working the installer took some time... but eventually I got it to do the job required.  Then I discovered that my testing out on 32-bit DIAdem and MyDataFinder.... doesn't mean I can deploy the Plugin to DataFinder Server, because it is 64-bit.

 

So, I installed 64-bit LabVIEW and DIAdem... built the 64-bit plugin and installer and got it to work right on DataFinder Server.

 

Now I am confused about how to complete this. If DIAdem users install 64-bit and the 64-bit DataPlugin I made, this all works fine when connected to the DataFinder Server.  If those users want to use that plugin within MyDataFinder, that won't work because MyDataFinder is 32-bit.

 

The LabVIEW DataPlugin SDK has instructions for building 32-bit plugins, and a section on building 64-bit plugins... how about a way to write a plugin that is both?  Can you just give the plugins the same name, and have 64-bit and 32-bit point to two different DLLs? (I tried that and it doesn't seem to work, something always hangs up.)  Is there a 64-bit version on MyDataFinder?  (Then just the 64-bit version would be good enough.)

 

I am open to suggestions... but would like to stick with the LabVIEW plugins...

--Brent

 

PSP Variable Process Failure

$
0
0

This morning my laptop updated Windows 10 to build version 17134.48. Since this update, I now get "Process Failure" if I try to look at PSP variables from a cRIO device I am working with in the NI Distribution Manager. What's worse, is VIs that are using the PSP variables on the laptop no longer work, returning default values.

 

The cRIO shows up in the NI Distribution Manager, but no variables or libraries register as being deployed. The code on the cRIO is executing correctly and no warnings are generated when writing/reading from PSP variables in the cRIO application.

 

I've re-installed all software on the cRIO, but that had no effect. I'm wondering if this is an issue with the Windows update and/or firewalls. I have disabled the firewall and allowed all LabVIEW / NI applications through but still get the same issue.

 

Has anyone got any ideas? This has stalled development almost completely!

VI Front Panel text that auto-updates with build version

$
0
0

I had been building and sending out a vi to several of my internal customers, and they like it.

Over time it gets better.  I do what they ask, and make 1-day turnarounds, and they like it.

 

Now we, and by "we" I mean they, are all getting overwhelmed with which version is which, or which copy. 

I didn't tell them how to manage it; I only sent a installation that delivered a built application.

 

So now I want to say "use build 32 instead of build 12".  Manually updating every time before build makes me "human glue" which is bad.

Yes all glue has human glue, and yes good glue needs human glue, but bad glue is 100% human glue, and this is a 100% human glue solution.  There has to be an automated way to cause the build process to update the VI text.

 

So is there?  (yes/no)

If so, what is it?  Is it easy/simple?

Deleting repeated elements in 2D array

$
0
0

Hi all,

 

Would be grateful if there is someone can help me to delete the repeated elements in the 2D array as in the attached thread. Thanks in advance

Array of Cluster slow but faster when surrounded with a sequence structure (optimization)?

$
0
0

Hi,

I'm unable to explain or figure out what is going with the following code (screenshot only).

I was trying to find the cause of the case "Get TC" taking 150ms. So I added some structures in order to calculate the time and once the structure surrounded the unbundle of TC, the execution time dropped to near 1ms. I would have assumed that it would take more time as it adds "copies of data".

 

Is LabVIEW somehow detecting that no change occurred from the previous data copy to the structure? (I'm using LabVIEW 2011)

 

TC is an array of small cluster of 6 strings. The Array is about 9000 elements.

TC array is fixed at that point in the code and doesn't change.

TC is the largest memory allocation of the lower shift register

WTF sequence is faster.png


Set line to logic high on USB-6501

$
0
0

Hopefully this is an easy one.

 

I am trying to write a VI to set a line high and leave it there (port 1 line 6 in my case).

 

How can I do that? TIA.

 

How to show the value and the color simultaneously in an intensity graph

$
0
0

Hi, Friend: 

I'm working on mapping program by labview, and close to finish it. However, I faced a small problem while I'm using the intensity graph. As we know, the intensity graph uses the color to represent the value of z axis. What I want to do is to show both the value and color in the same graph. My design is similar to the attached pic. In the left, I have the data; whereas in the right, I plot the graph. I just want to show them together, could I?

 

Thank you very much.

 

intensitygraphexfp2.png

TDMS Excel Add-in 18 Crashes Excel 2013

$
0
0

I upgraded a couple of computers today to LabVIEW 2018 using the May 2018 Developer Suite.  After the install I noticed that if I double clicked on a TDMS file, Excel would open, start importing it, and then I would get an error from Windows saying Excel had crashed.  The TDMS file is fine, and can be opened in the TDMS Viewer, and imports fine if I uninstall the version 18.0 of the Add-in and reinstall version 17.0.  No error text file was created in the same folder as the TDMS file.  And if I relaunch Excel it has a file recovery dialog where I can recover the half imported TDMS file.  I've also seen this two other computers all using the same version of Excel 2013 some on Windows 7 x64, some on Windows 10 x64.  Same issue on several different TDMS files.  For now I just have been uninstalling 18 and reinstalling 17.  Can anyone else reproduce this issue?  Thanks.

Time format for "Export Waveforms to Spreadsheet File (1D)"

$
0
0

Good afternoon,

 

I have been using "Export data to excel" through waveform graph to record data (see attached 1.tmp, attached VI). I want to use "Export Waveforms to Spreadsheet File (1D)" - however the output format doesn't match. 

 

Can I make output format for this function match the one that is default for "Export data to excel" (4 column, relative time stamp)?

 

Thanks,

Mike

NI GOOP Development Suite Installation Error

$
0
0

Hello

I was trying to install NI GOOP development suite ( which works for all operating system and labview >= 2014 ) from VIPM and am continuously getting this error 8 (  attached image ) which is not allowing it to continue installation. Can anyone please help with this ( I am running it as administrator ).

*Currently running Labview 2017( 32 bit ) and windows 10 OS

 

GOOP.PNG

Viewing all 66826 articles
Browse latest View live


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