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

Visualizing sine wave on cRIO RT and FPGA

$
0
0

Hi everyone,

 

I have written a LabView FPGA code simply to read input from NI 9223 (I am using cRIO 9082):

fpga.PNG

 

To visualize the analog waveform, I have written a LabView RT code to get the data from FPGA code and display in Waveform Chart:

rt.PNG

 

I connected NI 9223 to a function generator which generated a sine wave of 100 Hz (= 10 ms). When I set the FPGA loop time to 1 us, and RT loop time to 10 ms, the display waveform is as follows:

100Hz_1.PNG

The amplitude is correct, but the period does not make too much sense to me, as why half waveform is displayed for 104 sample steps?

 

With the same function generator input, when I change the RT loop time to 1 ms, the waveform amplitude is not even correct:

100Hz_2.PNG

It looks like to have an outer envelope, which is weird.

 

Can anyone help me to see what is going on?

 

Also, since the loop time of RT is ms, does this mean that Waveform Chart can never properly display any waveforms above 1 kHz?

 

Thank you.


Is it Best Practice to store an instrument list as variant attributes?

$
0
0

To keep a list of instruments and their data I am using attributes (as a one element queue) in a variant.  I am wondering if this is best practice.  Would you please comment and/or direct me to a document that would explain pros and cons of different methods?

 

I made the attached example to help understand what I am asking.  

 

Here is how I initialize the object. 

Mark_L_0-1610747068400.png

 

Getting data from the variant is just a Preview on the queue. 

 

One drawback to this method is the shift register (feedback node) requires the list vi to be non-reentrant.  This means that the VI must complete before any other code can use this VI.  Is there a better way?  Also, if there are large data sets (large arrays for example) in the object does that mean a huge amount of memory manipulation?  I would think there may be a better way to make the code faster.  

 

Frame subtraction from incoming video stream

$
0
0

Hello, I'm trying to use Labview with the Vision add on to capture a single frame, store it in Labview and the subtract that frame from the incoming video. Many replies to previous posts on this issue have had the suggestion of simply using IMAQ subtract to do this. I have tried this  method in addition to the Goden Template subtract in Machine Vision and the IMAQ Image to array function. Regardless of the method, I am continuously running into "invalid image" errors or black image boxes as a result. I think I'm close, but that I'm missing something fundamental. Any feedback would be appreciated. I am using a Flir Chamelion USB camera, RGB U32 format at 5MP.

Thanks.

Programmatically Editing Palettes

$
0
0

I can't get the palette editing functions to work.  No matter what I try, the palette never changes.  What's wrong with this:

pal.png

What is this function after the bundle by name function?

$
0
0

Hello!

I found an interesting video about "Spawn Dialogs" (Link https://www.youtube.com/watch?v=L-hNmzQ9tFc)

However, the YouTuber didn't provide the source file.

I tried to realize it by myself but there are some functions I could not figure out.

Does anyone know what is this function ?

RaymondZhao2017_0-1610760747003.png

 

 

I also attached my unfinished version of the program.

Thank you!

Convert labview 19 to labview 6.1

LabVIEW (which is a programming IDE) with STM32 (which is a microprocessor)

$
0
0

how can i connect LabVIEW (which is a programming IDE) with my STM32 (which is a microprocessor) and program it ?

Serial port - interrupt

$
0
0

Good afternoon,

I have a question, on a project that I'm doing ..

 

How can i stop sending the serial port without disconnecting the serial port?

 

thanks


Is it bad to use cont' sampling?

$
0
0

I trying to structure an application that needs to take a 300 samples from different DAQ channels during a short period of time. This process is made in a of statemachine (loop+case).

Can I start a continuous sampling (1kHz) of the analogue channels and let it run? When I need data I take it from the buffer.

I place the chain of DAQmx blocks outside the statemachine. 

The alternative is to start a finitive sample of DAQ channel(s) in a specific state. This is the way I done it before. Now I want to try another way. 

 

Sorry about the bad english.

 

 

how to save Alarms logs from NI Max to excel file

$
0
0

Hello Friends,

 

I am using Labview with DSC module and Ni Max to view logged alarms.

i want to save logged alarms in excel file on daily basis automattically.

Currently i have to save it mannually on daily and i want it to be automattically.

is it possible ?

 

Thanks,

Asif Iqbal

 

Contrôle de PWM avec LINX

$
0
0

salut! j'ai un petit projet dans lequel j'utilise arduino uno et je veux le contrôler avec linx. fondamentalement, je dois écrire des données dans quelques registres (tccr1b / a, ocr1a / b, tcnt1) et définir la sortie (pinmode). malheureusement, linx n'a ​​pas une telle fonctionnalité (ou je ne los angeles vois pas). le bloc de cycle de provider ne convient pas car j'ai besoin d'une fréquence variable et pour cela, je dois modifier l. a. minuterie. quelqu'un a une identityée comment puis-je le faire? j'ai vu qu'il y avait un bloc de commande personnalisé mais il semble que les didacticiels officiels à ce sujet soient malheureusement supprimés (ou du moins je ne peux pas y accéder). j'ai pensé à l'utiliser, mais je ne sais pas remark, comment générer du code, ai-je besoin de bibliothèques et comment connecter ce bloc. je suis un peu noobish avec labview et arduino, donc toute aide serait grandement appréciée. merci d'avance

Contrôle de PWM avec LINX

PAM modulation

$
0
0

Hi,

I have just one question!!

In NXG, i just sent bits stream received from UDP and unpacked to receiver located in same file using 'MT Modulation PAM'(2-PAM). It transfered to 'MT  Demodulation PAM'.But, after demodulating, parts of bits stream were lost. 
Actually, i send 10528 bits at a time, but 10522 bits are received. 
Why is this happening??????

I do suffer from it.. Pleas help me.. ㅠ_ㅠ

Example file and captured file i did is attached.

How to convert power to dbm in USRP 2900

$
0
0

Hi, I am receiving samples from one USRP to another USRP. Now, once I receive these samples, I am calculating power using moving averages. Now, how do i convert this power to dbm in USRP 2900.

 

Thank you. 

LabVIEW exe file uses a lot of RAM memory

$
0
0

Dear Community.
Thank you to everyone who reads my post.

Have you ever built a 1-second while loop with no action and run an exe file to check the memory?

it decreases slightly after another hour or so.

What I'm curious about is basically why the exe file eats a lot of memory, and if there is a way to alleviate it?

 

I use LabVIEW 2019 (32bit) and Windows 10 Pro 64bit.


What programs and add-ons do I need to install to use cRIO?

$
0
0

Hello?

 

I want to know which software products (including programs and add-ons) should be used to use cRIO.

 

* Products used are as follows: cRIO 9049+(NI 9381+NI 9375+NI9401+NI 9924)

 

So, what programs and add-ons do I need to install to use the following products?

TCP Server Client Communication problem in other systems

$
0
0

hai everyone iam developing a software which would communicate between Server and client using TCP in labview...it works fine in my network...but when i try to run my client from my friend's system there is no communication between client and server...what would be the problem..??is there any solution for this..?? Thanks in Advance...

LabVIEW exe file uses a lot of RAM memory

$
0
0

Have you ever built a 1-second while loop with no action and run an exe file to check the memory?

it decreases slightly after another hour or so.

What I'm curious about is basically why the exe file eats a lot of memory, and if there is a way to alleviate it?

 

I use LabVIEW 2019 (32bit) and Windows 10 Pro 64bit.

 

TestStand Sequence Based on LabVIEW Program built on dLL files

$
0
0

Hi Everyone, 

I have a TestStand sequence. One of the VIs is built on dLL files. I have a problem with looping as the program hang somewhere and either continue working very slowly or exit without completion. 

 

The For Loop is part of TesStand sequence and VI is inside the sequence. 

 

I tried to make the loop inside LabVIEW but it is much worse case where the program hangs earlier (for example at iteration number 70 instead of 100 Using TestStand). 

 

Link for the product to be controlled: 

 

https://www.thorlabs.de/Software/Motion%20Control/Kinesis/Kinesis-labview.pdf 

 

 

Thank you! 

NI 9862

$
0
0

When rebooting my computer, the NI 98621 shows up under devices and interfaces.  And not under network devices in my Cdaq-9188 like it should be.  

If i do a reset from the configuration data it goes back to my cdaq.  But everytime i reboot i have to reset and now it is not working anymore.  There are no leds blinking.  Changed already the NI9862 by another one.  Nothing helps.

Viewing all 67017 articles
Browse latest View live


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