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

Calling and Controlling an application exe

$
0
0

I have an application (exe) used to configure and calibrate an instrument. The application purpose is basic operation to load an config file and send to the instrument. (it has few controls-buttons and indicator) . We do not have any API or interfaces to the pass or control the exe. I want to call this .exe from LabVIEW and automate the process of (configure and calibrate number of instruments) I do know "Call System exe" function exists. But can we work with such and exe with no APIs? All suggestions welcome or any work around possible.please share.


Labview + .Net memory leaks

$
0
0

I have a .net dll integrated into my app. And there are 2 parts: data produser and data consumer.
The produser generates events with new data.
1st step. I resend data from the event into the consumer. This works correct.

001.png

 

2nd step. I need modify data before resend.
The Powers element is a list of arays. I convert this list into array this way.

003.png

 

Then I take part of the array and update the List values.

002.png


In this case I see fast memory leak.
Original array is ~25Mb and memory leaks with this speed (~3 Gb per minute).

How can I fix this error?

Synchronizing PXIe-6361 AI with XNET-CAN

$
0
0

Hello everyone,

I have a PXI chassis (PXIe-1073) with two modules inside: one PXI 6361 and one PXI 8512 module. And would like to synchronize one analog input of the PXI 6361 with the XNET card (which receives CAN messages). Unfortunately I didn't find any examples for my case. Has anyone already experience in this?

 

Thanks for your help!

 

Chris

 

Memory buffer

$
0
0

Hello everyone,

I'm a beginner in Labview and I need some help for my program.

I have a Spectrum card m2i.6111 that can generate signals on 4 channels. The frequency of my signal is given by my sampling rate and this frequency is common for all channels. I would like for each channel one different sampling rate. I tried to create several sampling rate but there only one clock on the card and the program won't lauch if doing that. I read it's still possible to create a memory buffer to reorganize each set of frequency as I want but I don't understand the whole thing. So if someone could explain it...

Thanks

Set 'Quality' attribute of Shared Variable

$
0
0

Is there a way to set the quality of a shared variable? I am polling a piece of hardware and publishing it's data to a shared variable, and the quality attribute seems to be a natural place to put status info (e.g. that the hardware hasn't responded and the data in the variable is now stale, or the hardware has reported a questionable status so the value in the variable may be inaccurate).

 

There are many variables, so creating sidekick variables to carry the status is quite cumbersome, but obviously a possible solution.

 

Creating a typedef which bundles the value and status into a single variable makes the variables too complex, and un-displayable by things like the Distributed System Manager.

 

As a slightly parallel question, besides setting the Quality attribute, can arbitrary attributes be written (and read)?

 

George

vision: image geometric pattern match

$
0
0

Hi all,

 

I m Try Geometric pattern matching for my application.

as a trial i m trying to do it with simple Rectangle drawing as Template.

But i m Getting Following Error . i m using labview 2014 64 bit.

error.JPG

i m attaching template,matching image and vi....

 

thanks in advance.....

peak detect and boolean

$
0
0

Hi, everyone

why the results is different between waveform peak detection and  Peak Detector PtByPt VI? the signal source and threshold and width is the same. 

 

Power Spectral Density retains history without averaging

$
0
0

I've made the attached VI in order to read saved variables from a file, however each time I run it with the same file and the same number of samples, the PSD plot differs. It changes in a predictable manner, i.e. the first run on a file after opening the VI will always yield the same result, the second run will also yield the same result, but different from the first run, etc., so there's no random thing about it. As far as I could gather, it's because of the PSD's history retaining, however I have it set to no averaging and linking true to restart averaging doesn't help. Any ideas?


Error 'Hex 0x661' on sbRIO-9607

$
0
0

After running stable for several years, I've had a 3 instances of error 0x661 on 2 separate systems/configurations.  The hardware is sbRIO-9607, built against LabView 2015.

 

I see one previous thread that discusses this issue (https://forums.ni.com/t5/LabVIEW/cRIO-9067-Real-time-unexpected-error-restart-Hex-0x661/m-p/3105450).  But it never really reaches a conclusion or a debugging strategy.

 

Has anyone else run into this problem, and hopefully had a successful resolution?

 

Thanks.

 

-Joe

NI drivers affecting laptop wireless card

$
0
0

Several people from my organization have now mentioned that National Instruments driver installations are affecting their wireless card functionality.  In my case, it was the NIDCPower install.  The result is that the wireless connection will not turn back on after the PC has gone to sleep, eventually forcing a PC restart.

 

Is this a known or reported issue?    

com problem after compilation

$
0
0

Hello all 

 

I developed easy testing application for modbus rtu using modbus library. Works perfectly on my development laptop. Bud when I made exe and move it to target computer application do not see my com port. 

Hardware : 

1) development laptop with Windows 7 and LabVIEW 2017 

2) target computer with windows 10 and installed LabVIEW run-time 

3) usb - rs232 ftdi ft232rl based. 

 

I attachment screen shots and code. 

 

Question is why program on target machine did not find com port ? 

I checked with modpool and hardware works ok. 

 

Best regards 

 

 

Numerical integration error

$
0
0

I am trying to compute the integral of 3x^2 in the range 0-1 with step 0.01 using the Numerical integration VI. I am getting a data mismatch error with the array output when I connect it to the VI. Why is that so? Thanks. 

labview error while data acquisition

$
0
0

Hello there,

I am using labview to image acquisition in a microscopy experiment. While using the program for capturing the images of higher resolution , i mean more data points, I am getting a error. I am attaching a screenshot of the error massages , that pops up. Basically the massage says "some or all the samples requested has not yet acquired". To wait for samples to become available use a longer read timeout or read later in your program.

What does this actually means?

 

Thank you

biomedical toolkit password

$
0
0

Hi! We would like to edit the subVI "Waveform All Features" in the ECG Feature Extactor VI but there is a password. Can we know the password or is it not allowable?

How to Host web server with HTTP Functions


Using mux-4051 to measure IV chaeacteristics of 4 solar pixels(cells) one at a time

$
0
0

Hello, 

After doing measurement of one solar cell,I want to do the measurement of six solar cells IV characteristics one at a time (automation) 

For this I have NI USB-6501 as a input control and I am using mux 4051 as analog switch .

But it doesn't seem to work so.

The USB 6501 is working in a correct manner(switching the correct line when given the command) 

 

Creating a PDF Report through Diadem Connectivity VI's

$
0
0

Hello, I have got the following issue when running the DIAdem Connectivity VI's from Labview. I have created the VI linked below, which loads a tdms file, a report layout and a script which plots data to my graphs on the layout. When loading the files manually into Diadem and running the script everything works as expected. But when running from Labview, Diadem opens but no pdf file is created. Is there anything I am missing?

 

 

Unable to access host data from local computer

$
0
0

Hi,

I created 2 VIs to collect and analyze data. The host VI, see attached Host VI, is using NI 9048 to collect data from the accelerometer. The data is then transferred to the local computer VI, see attached Local Computer VI, to do some analysis. Yet, when I ran the host VI, the local computer VI does not respond. I am sure the path is correct, see attached Dashboard. There is no error message pops up either. Please advise what will be the possible cause. Thank you!

PopupMenus - Arrange Cluster.llb

$
0
0

Hello, I have got an interesting issue with the PopupMenus creation.

 

I want to have the cluster allignment options not like the PIC1.png, but like PIC2.png.

With the attached lib copied to "LV/resource/plugins/PopupMenus/edit time panel and diagram" folder it is achievable, but the functionality is not good.

I think the issue can be with the type cluster, but i don't know why. With another data type as Array, this approach is working.

 

Any idea where could be the problem?

Thank you.

cells in table changing height automatically

$
0
0

Hello everyone,

i am working on a project and there are a lot of tables to write values in them.

the problem is i have 5 tables and the code is the same for all tables but only in the first table

when i write the row headers 2 times the height  of the cells are bigger ! (the first time no problem but when i go to this case for the second time the problem appears).

but the code is the same ! for all tables why only the first one

i tried to replace the table nothing solved 

the only way i solved it is to write the default value of cells hight after writing row header for the first table so it will change the cells hight back to default !

has anyone this problem before. thanks

please see the photos

Viewing all 67370 articles
Browse latest View live


Latest Images

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