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

LabVIEW 2020 errors when creating Override for a class in a PPL with debugging enabled

$
0
0

I've opened a support request for this, but I'm going to post to the forum too for the following possible reasons:

  • Maybe I did something stupid and someone can point it out
  • Others might run into this and search online (in which case, it might be reassuring if nothing else)
  • It might be that someone else can helpfully try and either reproduce or fail to reproduce the issue

 

When creating a New > VI for Override in a class that inherits from a class in a Packed Project Library with debugging enabled in LabVIEW 2020, the VI fails to be created with an error 7 in CLSUIP_CreateNewVI.vi

The error occurs inside the "No Error" case (which is why debugging enabled is important - with no debugging in the PPL the block diagram doesn't load and the scripting goes through the error case) when trying to load based on a template VI (the dynamic dispatch VI in the PPL).

OverrideFrom2019PPL.png

 

Initially I ran into this using a PPL built in 2019 - I reproduced it using a new 2020 PPL with only one class and one (DD) VI.

 

Possible reproduction steps are:

  1. Create a blank project
  2. Add a library, then a class, then a dynamic dispatch VI from template
  3. Create a Packed Project Library build specification.
  4. On the "Advanced" tab, set the Enabled Debugging to true
  5. Build the PPL
  6. Create a new project
  7. Add > Item the built PPL from step 5
  8. Create a new class (the new window makes this step much nicer - yay 2020...) and inherit from the class created in step 2+5.
  9. Right click on the class and choose New > VI for Override and then choose the VI that's available.
  10. Get the error message.

Note that if you don't do step 4, there is no error.

The error appears to be the same if you use PPLs that you already have available from e.g. 2019 (in which case skip steps 1-5).

 


Labview-Data acquisition

$
0
0

Hello,
I have a question regarding signal acquisition using LabView 2019 SP1. How can I measure absorbance in real-time but at a selected wavelength of the spectrum? note that I am using the driver for OceanOptics 2000-4000.
Thank you

.NET Framework assembly LabVIEW NXG

$
0
0

Hello,

 

I have a problem and I ask for your help.


I would like to use a NuGet *.dll (Microsoft.Data.SqlClient.dll; https://www.nuget.org/packages/Microsoft.Data.SqlClient/1.1.3).
I have installed the *.dll on my computer. But I can't find or select the *.dll in the .NET assembly of NXG (see image 1).

Bild 1.jpg

 

On classic LabVIEW I can see or use that (see image 2).

Bild 2.jpg

 

Now my question: Is there a way to add the *.dll to LabVIEW NXG ?.
Can you please help me with this?

 

Thanks for your help.

 

Muaadh

Discovering network does not work with CNC (TSN)

$
0
0

Hello all,
I am trying to make a simple network with two IE4000 switches each has an end device and a single controller connected to a switch. I can manually ping all the devices (including controller pc) between each other. But when I am trying to discover topology it stays in (discovering topology state for an indefinite period of time).
I then canceled discovery and went to Devices (in the left menu) And I can see that they have found both of the switches, even if I have given the IP of only the switch which is directly connected to the controller. See the figure.
From here both switches can be sync, connect, and ping successfully. But when I run topology discovery it still does not work. 

Every time before running the topology discovery, I have cleaned the cache, deleted the device.

 

For testing the flow scheduling, even if the topology is not discovered, can I select these switches manually? Please help.

 

Thanks in advance.

 

nah1n_0-1590669181818.png

 

Power Consumption simulation

$
0
0

Hello everyone.

I am trying to make a simulation on power consumption of electric appliances using LabVIEW. The thing I want to do is to create numeric control in which I enter power in watts and if it is in between range of bulb power consumption it will turn on LED. Similarly if if increase power then another LED labelled as fan should turn on at some specific range. The main issue is lets suppose if I put power equals to 3 bulbs power consumption and on the other hand it is also equals to fan power consumption then how my program can decide what is actually on i.e. 3 bulbs or 1 fan. and what approach should I use to make such thing i.e. producer-consumer loop or flat sequence or like what? and what if I turn on three bulbs and then one fan? if anyone have already done some work on it then please help.

Comment exploiter un fichier tableau au format %d ?

$
0
0

Bonjour,

 

J'ai un programme qui créé des tableaux puis les enregistre à différents formats grâce à l'outil "écrire dans un fichier tableur délimité (DBL)". Il existe 3 formats comme l'explique National Instrument (http://zone.ni.com/reference/fr-XX/help/371361R-0114/glang/write_delimited_spreadsheet/#parent

Le format qui m'intéresse est le format %d car il est celui qui créé les fichiers les plus légers comme vous pouvez le constater :Interface programme créateur de tableauxInterface programme créateur de tableaux

Le problème que je rencontre est que je ne parviens pas à ouvrir correctement le tableau dans mon programme d'ouverture de fichiers. Au lieu d'ouvrir un tableau de 40 par 220 000, il ouvre un tableau de 40 par 1 :

interface programme ouverture de fichiersinterface programme ouverture de fichiers

Je pense que le problème réside dans la façon de traiter les fichiers au format %d (entiers).
Si quelqu'un peut m'aider à résoudre mon problème, je suis preneur de la moindre piste !


Merci d'avance !

How to find peak height and check the number of pulses

$
0
0

Hello everyone.
I started studying LABVIEW online.
  I want to write software for finding peak height.
I have the LABVIEW 2020 version.
What I'm trying to do is read pulses from my scoop and check how many pulses I have.
I have several types and widths of pulses.
To find the right number I change the width of the software, but I still haven't figured out how to do it.
I tried using examples but couldn't
I hope to get help and direction what I need to do.
I added file VI

 

Eliran

Populate a ring with an external file after generating the executable.

$
0
0

Hi everyone!

 

I'm doing a little program in labview and I need to be able to populate a ring from an external file. I have not found any difficulty in doing this, but I would like to know if once the executable has been created this procedure can continue to work or not.
I believe it will work, but I would like to know your opinion.

 

Thank you so much!!!


Comment exploiter un fichier tableau au format %d ?

Labview parallel testing

$
0
0

Hi all

I want to build up a parallel test structure as screenshot,my purpose is:

1)scanning bar code check length and start test.

2)which item pass,scanning insert pass item continuous new test.

 

Actually,Which item pass and stuck with the code,please help me point out,thanks in advance!

set Usb3.0 port to Usb2.0

$
0
0

      I need to make the usb3.0 port work in usb2.0 mode, to do some testing, and then revert the usb port to 3.0 mode. can someone help me about this. thanks a lot

Error Code

$
0
0

Hello, I was wondering if anyone could help me with my error. 

Capturee.PNG

The program ran fine yesterday, and there was no modification to the setup from yesterday to today when that error popped up. Also since that error popped up i changed out the DAQ and the chassis that it is on and I still get the same error. 

loading a very simple .dll using vectors

$
0
0

Dear all,

I'm trying to load a .dll  in labview that I generated from C++ using code::blocks.

This simple .dll is just a test copying a input vector to the output (vector also). 

The process crashes during import.

I attached the .cpp and .h file for information

Are vectors handled in Labview ?

Any help would be very much appreciated here

 

PS : it wouldn't let me attach the .cpp file so I copy past the very simple code here bellow ( the header file is in attachment )

 

#include "mainRItoIR.h"


void DLL_EXPORT testInputOutput(std::vector<double> &output, std::vector<double> input)
{
output = input;
}

 

 

 

thanks so much

Oliver

Labview multithread test

$
0
0

Hi all

I want to build up a parallel test structure as screenshot,my purpose is:

1)scanning bar code check length and start test.

2)which item pass,scanning insert pass item continuous new test.

 

Actually,Which item pass and stuck with the code,please help me point out,thanks in advance!

NI ENET-9163 status LED ON and connection problem

$
0
0

Dear all,

I am trying to configure a NI ENET-9163 on Win 10 Pro and NI MAX 18.0

First problem I am encountering is that the statud LED is always ON (orange light). According to the manual this should mean "Device firmware booting or resetting to factory default". However, even after long waiting time (several hours), it never goes OFF which would correspond to normal operation. Does anyone have any hint about this ? Also, I tried pressing the reset button and it does not seem to have any effect (either <5 sec press or >5 sec press).

Second problem (which could be due to the first one of course) is the connection between my desktop computer and the ENET-9163. I am failing to see the device on NI max and when checking the ethernet status on windows I have no packets received from the ENET-9163/ I am using automatic IP adress and DNS server options on the TCP/IPv4 settings. It has come to my attention somewhere that ENET-9163 is only compatible with NI-DAQmx 17.5 or earlier. I have also tried with a 5.0 version but I am having the same detection problem.

Any suggestions ?

Thanks !


DAQ Mode for acquiring 1 signal from each channel every second.

$
0
0

My main focus for this program is to be able to read 1 sample per channel every second and graph them indefinitely, the tests wont run indefinitely but there will be changes to the power input on the wind tunnel every 10 minutes. It looks like it wont keep track of the data after 5 minutes and removes the old data to make room for the new data, never going over a total of 500 samples. I'm just trying to keep it as simple as I can.

My Main questions are:

- Am i using the correct acquisition mode? I've tried others but they are filled with overflow errors.

- Is there a setting to change the total number of logged samples or am I bound to the 500 samples causing this problem?

Anyway to not have hard coded com ports?

$
0
0

A nice simple question for you guys and girls. Is there anyway to programatically find devices that are plugged in through usb without having to hard code the com ports that they are usually in?

실시간 카메라 영상을 3개의 ROI를지정하여 motion인식 하려합니다.ㅠㅜ

$
0
0

A 챔버A 챔버

 에이챔버

문.png                                                                    문

 

B 챔버B 챔버

                                                                               비 챔버

아이고아이아이고아이

 

 

 

 

에이 챔버 : 문 :  비 챔버

3개의 영역으로 나누어서 ROI 설정 후에 

 

motion 감지되었을때 LED가 켜지게 하고싶습니다.

 

ROI 설정예제는 많은데 어떻게 적용해야될지 너무 갑갑하고 미쳐버릴꺼같아서 여기에 올려봅니다. ... 마이 랩뷰는사용했는데 여기는 처음이네요.... 제발..누군가가 답변을 달아주시면 한줄기 희망일꺼같습니다. 에효.......감사합니다.

 

https://forums.ni.com/t5/Example-Code/Motion-Detection-Using-NI-Vision/ta-p/3532423

DAQ Mode for acquiring 1 signal from each channel every second.

BPM calculator

$
0
0

Hey everyone! I have an ECG in a LVM file that I have to convert into waveform (using the Build Waveform function) to show said ECG. After this, I have to find out the R-R interval to find out the heart rate in BPM. However, I'm having trouble using the Build Waveform function and can't seem to figure out how do find out the R-R interval. Can someone help me? 

Viewing all 69500 articles
Browse latest View live


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