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

clear the data buffer

$
0
0

Hi everybody,

        when i was continously acquiring the data after sometime it stops the program and it displays a dialog box window mentioning 'Not enough memory to run this program' i don't know what i have to do here, is it mentioning that i need to clear the buffer in a certain particular interval?, if anybody knows try answer my question.

Thank you in advance,

Regards,

Dinesh


sbRIO-9651 onboard Temperature

$
0
0

Hi

I am using NI sbRIO-9661 SOM and I have a problem with it's temperature. I don't have an appropriate cooling system so it rises, and in order to avoid accidents I want to programmatically measure it's onboard temperature. The temperature is visible in NI MAX, but I can't find it under FPGA I/O (in case of other RIO boards Chassis Temperature is visible). Can I somehow track the temperature.

Best Regards

Edgar|CLAD

visualy compare parts of waveform

$
0
0

Good afternoon,

 

I have 7 analog inputs wich are connected to 7 laser distance sensors (100mm to 1000mm). With these sensors I measure the movement of 2 moulds from an blow moulding machine. A cycle takes about 10s. I need to do measurements for a couple of hours. Can anyone give me soms hints on how to save the long measurement?

I assume that I need the producer/consumer design patern to not slow down te measurements. Then save a file for every minute and at the end combine everything in one large file?

 

After these measurements I want to "select" one or two cycles and compare them with other parts of the "graph". I want to do it like an overlay and then move the long measurement.  How can I do this? Is this possible with a graph?

 

Thank you very much!

 

 

 

 

Split the string using scan from string

$
0
0

How to split the following string using scan from string pallet.

Content inside the <> can be change.

 

<Name> Testing_8_16_2017_6:58PM </Name>

Slow Communication NI DCPower with PXIe-4139

$
0
0

Hello,

 

after many hours of trial and error with the NI DCPower driver I finally manged to get the functionality I wanted:

With LabVIEW 2014 and the NI DCPower driver I am setting DC current steps in a sequence while measuring the exact current and voltage values set by the PXIe-4139 after each sequence step and fetching the values saved in the buffer (Measure When Property = Automatically after Source Complete).

 

My problem is that the communication or rather the sequence takes way too much time.

According to the specifications (http://www.ni.com/pdf/manuals/376115e.pdf, page 11/20) the maximum source update rate is 100k per second.

A sequence of 3000 points in my VI (see attachments) takes about 100 seconds.

I am aware that I can quicken the sequence without measuring and fetching the exact output (Measure When Property = On Demand) but then still the sequence takes about 50 seconds.

 

About 50 seconds for 3000 values means 60 values per second...so how do I tap into the missing 99940 values per second?

Matlab FFT vs LabVIEW FFT

$
0
0

Hi i am new to LabVIEW, not to mention using FFT algorithm in LabVIEW.

Hence, as i try to convert my matlab codes to labview, i notice there are big differences in my result.

 

I have attached my mathlab codes, and snippets of the result.

 

Greatly appreciate if anybody can help me out. Thanks alot in advance!

labview 2017 runtime supports older labview exe's ?

$
0
0

I came across this labview 2017 feature description:

Reduce time managing upgrading LabVIEW versions on your system with added functionality to the LabVIEW 2017 Run-Time Engine to run executables and DLLs built in previous versions of LabVIEW.

This seems to imply that the same runtime (just one install) could support previous build exe's. Had to try it. On a clean windows 7 install, only installed the 32 bit labview 2017 runtime. Then tried to run my labview 2015 build exe. No such luck.

What am I missing?

Download Report Generation Toolkit Issue

$
0
0

Hello,

 

I recently upgraded to LabVIEW 2016 on a Windows 10 computer (previously was utilizing LabVIEW 2014). I have a .vi I am trying to utilize in the new LabVIEW program that utilizes the "save to .csv file" function. I have been trying to download the "Report Generation Toolkit" for Labview 2016 32 bit software; however, have been unsuccessful. I do not receive an error message, but the Installation Summary displays "No software will be installed or removed", so I cannot download the additional driver. I know the feature is not already downloaded, as when I open the .vi, it will not run due to the missing feature from the Report Generation Toolkit.

 

Has anyone else had this same issue, or any recommendations for me to fix this problem?

 

Thank you,

Erin


lvlib dependency changed location after installing drivers

$
0
0

After installing drivers on my Dev PC, the drivers association were automatically changed from the SVN repository folder to instr.lib.

 

What is worst is that the installed libraries are not the good version as I could not install the proper 32-bit drivers (64-bit version is not available). I installed the drivers because I managed to have the card installed in the PXI-1033 at my desk.

 

If I delete the drivers, then the project gives missing dependencies that cannot be fixed by trying to link to the controlled library. The library has 100s of VIs. I cannot start re-linking everything.

 

I tried deleting the ARINC folder and the lvproj and update from what ever version I had on the server, but even those still have the libraries miss linked. The Main.vi seems to be the culprit, but too many changes have been done and some would be lost trying to recover.

 

Thanks

Editor >> Find and Replace text - can replacement string include a newline character?

$
0
0

When using the Find and Replace function within the LabVIEW editor, is it possible to include a newline (line feed) character within the replacement string?

Deleting Wires When Dragging an Icon Into Structure

$
0
0

I just started using LV2017.  In previous versions, when I dragged a block diagram icon into a structure, LabVIEW would delete the associated wires.  LV2017 tries to drag the wires into the structure, and generally gets it wrong.  Is there a way to adjust the settings to give me the old behavior?

 

Thanks.

How get dump log for freezing of a built LabVIEW 2014 application running under Linux RedHat 6.4

$
0
0

We have a large built LabVIEW 2014 application running under Linux RedHat 6.4 (on a 12-core machine) which runs for up to a day, and then freezes at a seemingly random time. What I mean by "freeze" is that the front panel goes completely white, the CPU load drops from about 40% to 2% for the LabVIEW process (using the "top" command in a command window), writing to periodic log files stops, and TCP/UDP communications stop. The front panel window can be dragged around, and the rest of the machine appears to be unaffected. I don't see any evidence of a memory leak. We see this behavior on different machines.

 

The application makes heavy use of TCP and UDP communications, but we still see the freezing even after significantly reducing that usage. DAQmx is not used at all.

 

Checking on the NI website, I see that on Linux development systems, there is a dump log under <user>/natinst/LabVIEW Data/lvfailurelog, but our machine just has the RunTime engine and is running a built application.

 

Is there a way to get a dump log for a Linux built application?

 

Any other suggestions on how to diagnose the root cause of the freezing? Another approach that we will be looking at is checking the stability with older versions of the application.

Create Hex Digital Pulse Train with Clock from 6031E

$
0
0

Thank for any help you may provide.

We have constructed a test stand to automate a procedure for a circuit board. A certain chip on this circuit board requires three things: 

1. a clock

2. a hex data stream

3. a set bit


We have managed to create these three things, but not with the functionality we are looking for. We need a better was to set a clock with 16 9ms pulses, the ability to send 18h over a pulsed waveform, and be able to set triggers and timing so that the data is sent at proper intervals. Below we have provided a description of our current solution, our VI and photos of the ideal and what we are actually producing. 

Our attempted solution:

1. Clock - using DAQ assistant to set up the CTR 0 Out line, we are able to send the 9ms pulses we desire. Full scale we need to be able to create 288ms divided into 16 9ms pulses (a picture is provided, the clock is the blue signal). This will allow us to trigger off of certain edges of our clock.

2. HEX data - We need to send 18 HEX along a pulse. The manual system we have to do this has 14 bits that can be toggled high and low. We recreated this setup using 14 individual DAQ assistants with toggle switches to create our pulse (00011000 or 18h). Unfortunately, the signal we are producing does not match the signal we want. This convoluted way of producing this signal does not seem right and we were looking for some guidance. The data pulse needs to start on the first leading edge of the clock and end on the last (16th) leading edge of the clock.

3. Set bit - The set bit needs to occur on the falling edge of the 16th pulse on the clock. It will be set as a low. We are using DAQ assistant on port0/line1 to toggle this bit high or low, but don't know what to sync if with our clock. 

Assuming we are producing our clock properly, what is a better way to send our HEX data? And how do we sync that data with our clock?

Thanks again,

Kyle

Max and Min of continuous analog data

$
0
0

Hi,

I am working on a project where I have to record data and find max and min values. Here are the details:

I need to record continuous data from DAQ card and write to a text file with the sampling frequency of 100 Hz. This should be fine for me. I can use while loop and record data. The problem is finding the max and min from continuous data. The signal is sine wave with varying amplitudes. I cannot use the max and min function in each while loop iteration for maximum and minimum as the signal might be high or low for extended period of time. Basically, I need to find max and mins on continuous data and record them. 

Hopefully, someone can help with this. 

 

Thanks

how to separately display modbus input registers using a graph to display each register

$
0
0

HI

I have a Modbus RTU program which is over RS485 it communicates reads/write 

now I want to graph 5 input registers on my front panel

I am new to LabView can anyone give me some example or a simple way to do it

 

thank you 

 

regards 

etesam


Parse formula and mod/rem

[LABVIEW] how to start two different functions of two differents instruments at the same time?

$
0
0

Hi,

 

I'm new on LV and i'm having trouble with my instruments and how to merge the drivers I have. I need one application to a spectroscopy experiment. I have a Horiba Monochromator which have a labview driver (MoCo) and a Thorlabs PM100D, which also has a source code included, to acquire the power of light.

 

I need to start the monochromator scan (which will run 1 nm/s) and the power measurement aquisition of the Thorlabs meter (1 scan/s) at the same time. The two instruments have your particular "start" button and the control to change this integration time. My idea is to control these numbers in the same front panel, and start the two functions at the sime time, to synchronize the present power with the respective nanometer of the source light.

I tried many things, but without success. First, a tried to run the two full applications (the source codes have many many subVIs and i don't know how to use then separately too) in one custom application with some references and put some "control refnum" to control these subVIs in my panel, but nothing happened. Someone can help with ideas? 

 

Thanks!

Adding dc offset to analog signals

Expresscard 8360 turns pc on

$
0
0

Hi,

 

I installed Expresscard 8360 into my desktop PC and now I am unable to turn this PC off Robot LOL. Card is probably sending commands right after PC turns off and then it turns it on again. Is it something that can be set in BIOS? I cannot go to BIOS without IT, so another option would be apreciated Robot Happy.

 

Thank you for any input or experience!

 

Martin

Getting into TestStand using LabView

$
0
0

Hello,

I have application A which is done in TestStand, and I want to get access to these tabs?

obraz.png

In "File" are two options "Login" and "Logout", I need to choose "File" then "Login" after I see this window:

obraz.png

I need to type "UserName" and "Password" and click buttons. I need do all those things programmatically in LabView, maybe I can do this like VI Server? Someone can help me? I am using LabView 2011 and TestStand 2010.

Viewing all 66767 articles
Browse latest View live


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