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

Image in front panel gets overwritten by the next VI

$
0
0

I need to display an image before and after the threshold, but my issue is when using the same image path, the threshold VI will overwrite the first image indicator. This is a simplified version on my code. Why is this happening and how do I resolve this?

 

Kwan90_0-1576737068585.png

 

I attached a random grey scale image as well. Why does the image look like the quality has been reduced after the first image read?

 

Thank you in advance,

Kwan

 


Multisim with LabVIEW:a problem about Control Design and Simulation module

$
0
0

Sorry to bother you.

I'm trying to use Labview with Multisim. And I've installed NI LabVIEW-Multisim Co-Simulation Plug-In during the installation of Multisim14.2., and have installed LabVIEW2018 with Control Design and Simulation Module(the module's version is also 2018).

But after builting the Multisim circuit,  I switch to labview in the Control Design and Simulation\Simulation\External Models, I'm not able to find "Multisim»Multisim Design" as the exmaple descripted in Introduction to Digital and Analog Co-simulation Between NI LabVIEW and NI Multisim . What can I do to solve the problem?

Moving Front Panel objects to particular position

$
0
0

Hi all,

         I am having a front panel with six boolean controls. In my front panel, I am having two rows each row is having three sets of boolean control.

I need to place all the controls from the origin with the same setup as I mentioned above using the property node.

 

If someone knows the solution Please help me to solve this.....

XNET Read database of multiple frames and signals

$
0
0

Hello everyone,

 

I am trying to understand the communication flow of the XNET plugin for LV. I created a databse with two frames

  • Frame1: 3 Signals
  • Frame2: 3 Signals

After reading the bus using 'Frame CAN' I trying to decode the frame according to their signals (see picture). How does LV choose which frame to decode? The frame array holds 2 frames and only the last entry will be analyzed. And even this entry is decoded wrong, since only the second signal ('xxx') has the correct value. The signal 'Pre' is always '0,00'. 

 

can_frame.png

 

How can I decode all read frames efficiently?

 

My idea is to loop over the 'Dataframe' cluster and check for each signal (in a nested loop). But this is not the best solution since the CAN controller can decode this information much faster than the nested loops in LV.

Align and Resample has a maximum dt?

$
0
0

Hi all

 

I'm relatively new to Labview, and am having trouble with a DAQ program. I have a multichannel analogue input, continuously sampling at 100Hz, but over night the operator wants to reduce the sample rate to 1 sample every 10 minutes. I know the sample rate cant be adjusted while the task is running so I though a resampling would be the easier way to do this: 

Resampling.png

However the maximum I can set dt to appears to be 208 seconds, any more than that and it stops recording data. Is there any way to increase this?

 

I have attached the VI below. Please be gentle...

labview

$
0
0

haiii,  my name is Nagendra. i have been trying to use WEB PUBLISHING TOOL.but,while i am doing i could not get and following(sreenshots) commands i am geting. could you tell me how can overcome this problem?.  

sbRIO -9636 5V pin header Fuse

$
0
0

Hey,

 

I got a sbRIO-9636 (Evaluation Kit) with a hat with LCD etc. 

I got a problem with the 5V rail coming from the sbRIO motherboard. There is a fuse between the 5V motherboard rail and the male pin headers.(see photo). Would anyone know what value this SMD fuse is?

 

On the other side is 5V, and there is no short circuit on the hat (drawing 18mA @ 5V, which is reasonable) 

 

Cheers,

Koen

sbRIO.jpgIMG_20191219_103638.jpg

enabling a boolean button via UDP Multicast

$
0
0

Hi,

 

Imagine I have 3 Boolean buttons as depicted below on PC 1.

Diaspora_0-1576754724848.png

the respective switches to turn on the buttons are on a different PC namely PC 2 as shown below.

Diaspora_1-1576754786721.png

 

Is it possible to pass the communication between these 2 PC's using UDP Multicast? i.e When the switch no 1 is turned on PC2 the boolean button no1 on PC1 must glow and so on. Or is there any other way other than UDP multicast? Thank you in advance.


Transfering/ writing data from two while loops in Excel

$
0
0

Hello everyone,

 

First of all, I started to use Labview two months ago so I`m a total beginner. (Using  Labview 19, Windows 10 Pro, i5-6500 @ 3.2 GHz)

 

Now the challenge:

 

In general, I want to stimulate the muscles of the forearm to measure the resulting angle of the wrist-based on the stimulation intensity. So higher stimulation amplitude leads to a larger wrist angle. 

 

Therefore, I use two while loops. One is calculating the stimulation intensity which should be increased every second (1 Hz). The second is about measuring the wrist angle of the wrist using a goniometer with a sample rate of 100 Hz. 

 

While executing the program, I want to save the data into an Excel file to relate stimulation intensity/ voltage and resulting wrist angle. But when I pass the data out of the while loops to the Excel sheet, the resulting format is a 2D-array for each loop. If I would build an array out of these two, I would result in a 3D-array which is not appropriate for Excel. (See attachment)

 

If I try to fit both parts of the program into one loop, after some time the buffer of the DAQ is overflowing because the sample rate is too high for the slow execution of the calculating part (for stimulation). The high sample rate is necessary to get an accurate value of the wrist angle though. 

 

Everything besides (Measuring angle, stimulation, saving 2D data) this is working properly.

 

Please give me some advice about how to deal with this situation.

 

 

P.S. I`m glad to be alive in the 21. century, so that I can ask you guys for help!
Thank you so much!

USRP的使用

$
0
0
How to make USRP receive and deal with two signals at the same time?

How to pick different chart labels based on a control?

$
0
0

HI, this is a very basic question but I could use some help:

I have a multimeter which can read four things: voltage, current, resistance, and charge.

I have an instrument driver which can control this multimeter. It has a control on its front panel which selects an integer from 0-4. 0=voltage, 1=current, etc.

The driver then plots the result in a chart. However, due to an irritating bug, it won't clear the chart when it changes measurement types.

I would like to employ labels on my chart axes or chart title which specify what measurement function is being used. Alternatively, I could also display four charts, each referring to a specific measurement function and only plotting data from that one if it is active. For example, user selects 0, chart for voltage plots resulting data, other charts remain blank.

I tried using a property node to change the axes titles, but it had no effect on the front panel graph (see attached). I think this is because I'm not getting LabView to understand that when the user picks "Voltage" it needs to understand that the related 0 constant input corresponds to the label "Voltage" on the block diagram's control for the graph.

Can someone suggest a block diagram that can do this? Either the four charts or the one with changing labels? Or just how to make an array of numbers associated with an array of strings to pick from? Can't for the life of me find a function that does what I want/think it does.

Writing data from two while loops to an Excel sheet

$
0
0

Hello everyone,

 

First of all, I started to use Labview two months ago so I`m a total beginner.

 

Now the challenge:

 

In general, I want to stimulate the muscles of the forearm to measure the resulting angle of the wrist-based on the stimulation intensity. So higher stimulation amplitude leads to a larger wrist angle. 

 

Therefore, I use two while loops. One is calculating the stimulation intensity which should be increased every second (1 Hz). The second is about measuring the wrist angle of the wrist using a goniometer with a sample rate of 100 Hz. 

 

While executing the program, I want to save the data into an Excel file to relate stimulation intensity/ voltage and resulting wrist angle. But when I pass the data out of the while loops to the Excel sheet, the resulting format is a 2D-array for each loop. If I would build an array out of these two, I would result in a 3D-array which is not appropriate for Excel. (See attachment)

 

If I try to fit both parts of the program into one loop, after some time the buffer of the DAQ is overflowing because the sample rate is too high for the slow execution of the calculating part (for stimulation). The high sample rate is necessary to get an accurate value of the wrist angle though. 

 

Everything besides (Measuring angle, stimulation, saving 2D data) this is working properly.

 

Please give me some advice about how to deal with this situation.

 

 

P.S. I`m glad to be alive in the 21. century, so that I can ask you guys for help!
Thank you so much!

 

Using a Barcode scanner to control ATS system

$
0
0

I have an existing ATS system that predominantly uses mouse to control & select the next operation.

 

I have created a 'Command Line' text box and given it primary focus so that I can have a couple of pre-printed Barcode commands to perform the most common actions - e.g. Reset & Run another test. Detect the changed value, parse the content and perform the action. This seems to work quite well.

 

I also use it to effect a 'Done' or 'Continue' event on a boolean control, as if you set focus and then get a 'c/r' from the Keyboard emulation of a USB barcode reader, it's fine.

 

Code 39, standard Honeywell 1d barcode reader.

 

Except.

If my prompt barcode is

*CONTINUE*, *CONT*, *DONE-CONT* I don't seem to get any reaction - I hear the beep, but there is no action in Labview.

*RESET-RUN*, *DONE*, *0004* work, even *C-O-N-T-I-N-U-E* works.

Any ideas? Am I hitting a reserved sequence in Code 39 or is Labview messing me up?

All the codes come out fine if I try them in any Notepad type editor.

 

The attached end of test display gives an idea - this is the boolean button that refuses to switch with CONT or CONTINUE - I have removed all the sub-vi dependencies I can spot so this should run stand alone - or put it in a calling VI and try the different options specified in the help text....

Base de Datos Relacionales (MySQL) con LabView en Linux

$
0
0
Moved to Spanish board under Regional Communities

Table moving in front of controls

$
0
0

Hello,

 

I have a VI which has a sub-panel containing a different data display depending on the users selection. In one of those data displays, there is a table showing all of the channel data. On top of the sub-panel there are a few buttons which interact with controllers, but when I run the VI all of the buttons end up behind the table and I can't interact with them. These buttons are currently in front of the subpanel. Below are images showing specifically what I mean. 

 

Is there any way to continuously update the table without the table ending up in front?

 

Button moved behind table.PNG

Nevenhouse_0-1576770371099.png

 

Any help is appreciated.

 

Thanks


Base de Datos Relacionales (MySQL) con LabView en Linux

$
0
0
Moved to Spanish board under Regional Communities

Generate a beep sound via PC speaker

$
0
0

Hello Friends,

 

I like to add a beep sound to my VI, I tried two methods, one is to use Kernel32 Dll beep, another is to use beep.vi, however, none of them worked on labview 2015. I used both of them on older labview version prior to 2010. I do not know why they do not work on 2015.

 

Could someone help me with the issue? see attached vi.

 

Thanks.

Gu

 

 

Clearing Variables at end of a loop

$
0
0

Hi All,

 

So I am new to labView, but have gone through all the tutorials and looked through the forum first. I am having trouble understanding how to clear out my arrays (effectively delete them) at the end of my main loop so they can be rebuilt on the next run of the main loop. 

 

My program reads in a user-defined amount of samples from two DMMs using VISA communications over COM ports. What I want it to do is after finishing a run, delete and clean up its data so that on the next run the arrays that will be created start from index 0. I know how I would do this through writing code, but I am having some trouble understanding how labView manages variable resources. I attached the VI below. I know I have some other things to clean up, so if we could just focus on the two main arrays that come out of the VISA messaging that would help the most.

data adquisition

$
0
0

Hello

how can I acquire data from the pc task manager in labview?

Labview 7.1

$
0
0

How can I install LabView 7.1 in WIndows 10? I recently upgraded my OS to Windows 10, and not been able to install LV7.1. Does anybody if it can be done, or I am screwed?

Viewing all 69323 articles
Browse latest View live


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