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

IMAQdx Acquisition - grabbing not fast enough

$
0
0

Hello,

I'm triying to capture images as fast as possible.

The USB3 camera should allow 200 fps, NI MAX gives an attribute of 222 fps.

However trying to capture every single frame and saving it afterwards only reaches 140 up to 170 fps.

max_fps.pngI'm not sure what slows it down.

I create the time array to get to know the exact capture time.


Does anyone know how to accelerate it?

 

Thanks a lot

Stefan


Generate frequency sweep using daqmx write and also perform read operation in same code.

$
0
0

Hey All, 

I have made this code which can transmit a signal through output channel of the board into the water pipe from one end and then receive the signal from the other end of the pipe into the input channel of the same board. The write and read operations in my code are synchronized. Currently, I am sending a sine burst of 1msec duration followed by 1 second of zero voltage. So, my daqmx write task is sending this wave (sine burst+DC) repeatedly. But I want that mmy output channel should be able to do frequency sweep, ie my first output signal should be sine burst (5KHz) of 1msec + 1 sec DC, immediately after this next signal should be sine burst (6KHz) of 1msec + 1 sec DC......upto sine burst (50KHz) of 1msec + 1 sec DC. Basically, I want to sweep frequency using sine burst (with 1 sec gap between two burst) in step of 1KHz and simultaneously perform the read operation too. I have attached the vi. I have also attached the image which shows the desired output at the output channel. 

How can I continuously update the daqmx write after running the vi so that it can send the desired signal rather than repeating the same signal again and again?

Defining separate Z marker values for separate rows of a 2D array plotted on a single intensity graph

$
0
0

let's say I have a 2D array containing three rows and five columns. First row has elements 1,2,3,4,5,

second row has elements 6,7,8,9,10 and third has 11,12,13,14,15. I want to define Z marker values separately for each row but all within the same single intensity graph plot. How do I do that? Altenbach your input would be greatly appreciated too Smiley Happy

update problems

$
0
0

i have labview downloaded but it is not letting me update it. it keeps saying that there is an error with the first update that is trying to download, and each time i just hit start over and try to download the rest of them, so i can deal with the one that wont download later, its telling me that the next one is having and error and so on so forth

What is Best Practice for how to move VI from Parent to Child Classes?

$
0
0

I have a project with one Parent class and two Child classes.  I have a need to move a VI from the Parent class to a child class and move the VI from the other child class to the Parent class.

The Project example looks like this:

 

Project.png

 

Is there a way using the Project to easily move the VIs with a minimum number of steps?  I can move them and reselect the lvclass control.  I can accomplish this with more steps than what I would like.  (moving in the project, pointing to the new class, applying library icon, moving on disk, making SVN know what happened, etc.)

 

What I am asking is the easiest way to do this.  What is the best and easiest method?

 

 

Need help with VI

$
0
0

So basically I need to generatre a series of random numbers at a given user defined frequency and convert the generated data into customized string data, and then store the data to a file using low level file i/o function. The front panel should look like the picture in attached files. 

 

What ive done so far, I got the random number to be generated, and user defined frequency. and the I was able to write the generated data into a file. However, It only shows 1 value of the data. I need to have series of values. 

 

Front Panel.PNG is what the front panel should look like

Module is what ive done so far

and Resulting text file is what the text file should looked like (It doesnt have to have same numbers, just same format).

 

 

how to code labview from Aruino to 3d Surface

problem with creating subVI

$
0
0

Hello I am building a program. My problem is mentioned below: 

I am writing similar program like this picture. Iam able to make the diagram as shown below. One of the subVI is not going to change.It remains almost same. I want exactly as the first image. How can i do it?My obtained image is given below:

 

 


problem with subVI

$
0
0

Hey can someone help me to make the block diagram exactly as this one calles yep.png image?

 

 

 

 

 

I tried to make exactly the similar one but I am not able to change this subVI. I mean the subVI should be exactly the same as yep.png image but I am unable to achieve it. My obtained image is no.png image which is attached on this document.I will be waiting for someone help.

 

 

FPGA how to power external sensor

$
0
0

Hi all, im totally new here. I just bought the Labview rio evaluation kit with sbrio9636 and wish to connect this sensor to board 

  • KY-038 microphone sound sensor

it can be powered by 3,3vdc, as i see this board has couple of them. My question is, can i use these DO numbered from 0 to 3 to powerup this sensor?  i tried to enable do0 using i/o node but all i got is 63mV;p probably i did everything wrong;/

I will be grateful for any help

Read XML data

$
0
0

Hi all,

 

I'm new to Labview so apologies in advance if this seems like a simple question, but I have a configuration XML file that i will set various parameters within to control measurement equipment.

 

I have tried reading this XML file but i'm really struggling! I need to read the contents of the individual elements, and where applicable also count the number of elements.

 

Is there an easy way that I am able to achieve this? I've been playing around with this for a few days now and I still can't get what i'm looking for.

 

I'm currently running Labview 2016 (32 bit).

 

Thanks in advance! Smiley Happy

Connectin' FBG Interrogator via Ethernet to Labview

$
0
0

Hello everyone. I have an FBG interrogator that senses the reflectivity and transmission of a pressure sensor. I would like to receive the reflectivity and transmission datas from the Interrogator via crosscable. I cant find the interrogator in NIMAX (not so sure should I use NIMAX or not). I need kind help of you. Your effort will be highly appreciated.

Why is indexing conditional tunnel 3x faster than shift registers

$
0
0

Why is indexing conditional tunnel 3x faster than shift registers?

It must have something to do with somekind of optimization code managing the array allocation, but why can't it do it in both cases?

 

Run attached example.

Connect Non-TTL rotary encoder to USB-6356 (preferably counter)

$
0
0

I have a rotary encoder with complementary outputs (datasheet). Its maximum output frequency is 125kHz.

 

Because I don't understand how to appropriately use and size pull-up/down resistors, I'm unable to get this to interface nicely with LabVIEW code and DAQmx. (The crucial point being, I suppose, that the input voltage is 12..24V (I have 17V since the power supply is also controlling some load cells/amplifiers requiring 14..24V) and the output seems to be around 12V high and ~350mV low with no external resistors pulling in any direction).

 

Ideally, I would like to (using as few additional hardware components as possible for a good solution) connect my encoder output to my NI USB-6356 DAQ board and then have it count edges using DAQmx.

 

Currently, I have to use an AI Voltage channel, after connecting PFI8 (the Counter0 terminal) and the AnalogComparisonEvent, then a separate CI Cnt Edges read. This isn't too terrible, but it's quite a bit more to set up (boo-hoo) and more importantly, requires the use of an AI. The speeds make it more challenging for me to get reliable results (perhaps because my code is bad) when using a comparitively slow AI, instead of the very fast digital counter inputs.

 

What should I be doing here?

Problem setting 3D Graph Value Pairs Properties - Setting Y/Z Value Pairs sets X Value Pairs

$
0
0

I am attempting to programatically set the X/Y/Z Value Pairs properties of a 3D Graph in Labview 2016 64-bit.

 

I can sucessfully set the X Value Pairs using the appropriate property node, but wiring the same same data to either the Y or Z Value Pairs properties has has no effect. In fact, when setting just the Y or Z axes Value Pairs programatically, it is always the X axis that is updated! 

 

The attached VI demonstrates this peculiarity - when setting the Z axis Value Pairs, the X axis is given the corresponsing ticks on the graph, and the set values appear against the X axis in the Value Pairs tab of the 3D Graph properties window. Strange.

 

Am I using the Value Pairs property incorrectly or is this a bug?

 

SetZValuePairs.png


Problem on reducing the SPI communication time delay with HSDIO

$
0
0

I am working on implementing SPI commands into LabVIEW to use PXIe6555 (HSDIO) to test a chip. Now the vi I designed could work, but it doesn't meet the time requirement, between each byte of MOSI signal, there should be a less than 2us SCK hold time.  

 

The problem is that for each byte of MOSI signal, there should be a MISO acknowledgment to determine the next step.

For example, I have a command to do ADC reading. The first MOSI byte command is to check the register whether the data is available. And if it is available it will do the ADC reading command. But the oscilloscope shows the time between these two bytes is around 3ms. That might be the time for HSDIO read the register's status and send it back to LabVIEW on my computer, which makes a judgement and then send the next byte to HSDIO.

 

I also tried the hardware compare but the delay is still ms. Because even though the hardware still can not do the determination for next step.

 

Does anyone have any idea to solve this problem? Please help. Thank you!

 

P.S.

I have attached the prototype vi of 'reset' command with two bytes MOSI. 

I also referred the examples in the following.

 

SPI Digital Waveform Reference Library

http://www.ni.com/example/31163/en/

 Serial Protocol Communication Reference Design for Digital Waveform Devices

http://www.ni.com/example/31200/en/

Do my VIs live on my Real Time target?

$
0
0

Hi,

 

If I build a real time appliaction program with "Enable Debugging", does that mean that the source files will be available for anyone who connects to it with Labview to debug?

 

I want to leave debugging enabled as a just in case option for the future but not if there is any chance that my block diagrams will be exposed.

 

Or is it like normal debugging where you can only step thorugh the original source code if you have the files?  I did a find on the Linux file system for *.vi and no results.  But when I connect to debug remotely it says it is uploading all my VIs!

Customize array shortcut "Insert Element Before",can't find it.

$
0
0

Hi

I have a qusetion when I want to operate on array like below.

I want to customize the name of the shortcuts "Insert Element before" and "Delete Element",but these two menus are not like others that they can't be found in the "Run Time shortcut Menu" editor.

Maybe I can do it in a complicated way that I get the mouse click position and insert a menu programaticly.Other than that is there a simple way to make it happen?

Thanks,

array shortcut.png

Solar Panel system improvement (i am very new to this)

$
0
0

The main purpose of this program is to simulate night and day. In the day, there is sunlight and there's no need for a light to light up the room. In the night, the solar energy that was collected in the day will power up the LED. How do I simulate charging up a capacitor with solar energy collected in the day and also simulate the capacitor discharging voltage to light up LED. I have a solar panel, led, NI myDAQ. My prog is attached.

voice processing

$
0
0

Hi guys,

 i would like to know how to get a sampled voice signal in labview for the program i am working on.

I would also like to know which VIs to use.

thanks in advance

Viewing all 67294 articles
Browse latest View live


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