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

communicateur de crash application

$
0
0

Hello

I have got with an access violation error which forces my exe build by LABWINDOWS/CVI to crash 

I have a doubt in two things :

 

1 - i calling a DLL built by LABVIEW and can possible cause the crash.

2- My program communication to CAN bus by XNET devices (i use NI CAN library) i installed NI-XNET Compatibility Library for NI-CAN

 

Looking forward to your help

thanks


Real-Time Image Processing

$
0
0

Hello NI & LABView Enthusiasts,

 

 

I am trying to create an image processing .VI in which I acquire real-time images from a Camera, using now C920 Logitech Pro, which final objective is to measure the speed at which the recognized object in a bloop detection is moving. Before I get to measuring the speed, i must make sure that the images that are processed are constant during the time the process is taking place and are not seen like "black-out" which i think is because it requires so much time to retrieve the image than the actual delay time written in the block diagram. Therefore, I am for now just testing whether my camera and .VI program can simply recognize the fluid movement in the interface without any discrepancies as not transmitting the processed signal in time to my Front Panel.

 

What I do is this: I retrieve images from Image Acquisition, and then make them a binary image using Vision Assistant. Then, the image out, just for now, will measure the pixels area and because I am trying to calibrate at the same time, the surface area difference from 2D to 3D I added a factor for which the pixel area are multiplied.  *Because i want to measure speed at which the flow is moving on the surface area of an object, a fluid; lets say water flowing around a sphere, and I want to measure correctly the speed at which the water is moving by comparing the surface area (which has been calibrated by a factor from 2D to 3D) covered by image in time1 vs image in time2.

 

But my problem is that the images i am getting, are already not Real-Time, they have a delay of about 5 seconds, and some of them are blurred out or the signal is not transmitted to the Front Panel.

 

This is the . VI that I am using. Because I need to calibrate the surface area from 2D to 3D, so the speed can be measured correctly, I am using a image mask to calibrate the different ROIs in my object with a respective calibration factor (a multiple which defines the difference from 2D to 3D)

 

Still, my problem is that I am supposed to be able to measure this speed in real-time *maybe max. 1-2 seconds delay* but the images themselves are already lag. A delay of about 5 seconds is happening and still some of the Image Out, when running water on the sphere and the program is running, the images lose touch from the incoming signal and nothing is seen more than a colorful image which i guess is that signal error

Communication with cryptographic usb token - KEY-ID FIDO U2F security key

$
0
0

Hi guys,
I bought one of those small USB cryptographic keys used for 2-factor authentication. https://www.key-id.com/key-id-secure-online-accounts/

I decided to try and establish a communication with the USB device using LabVIEW, with the idea that I will be able to request a public key and then receive that public key from the device, so that a user can use the device to login to my LabVIEW VI.

However, the device does not appear in the device manager or in NI-VISA or NI-MAX as a serial COMS device.

Ive tried the device and it works well and syncs with websites like GIThub.

 

just to wrap up my question: Can I use KEY-ID FIDO U2F security key as a login tool for a LabVIEW VI? Any ideas?

PS: I havent attached any code because I havent even started coding the VI, its just an idea that I wanted to try out for a cheap key dongle for my users.

Motor Control between two limit switch

$
0
0

Welcome!

 

i would like to realize a motor controller in NI LabVIEW. I want to controll the motor between two optical sensors like limit switches. But I don' t know how can I controll it, because I am split a cube on an inclane. The first step is that I incrase the degree of the inclane and the cube is splitting down on it. But it goes in front of the first sensor and next to it goes in front of the second sensor. If the cube arrives the second sensor i want to activate the program, I want to pulling back the cube behind to the first sensor and stop the program. But because it goes twice in front of the first sensor I don't know how can I solve this problem in programming.

Can not undeploy axes an tables in project and system camparison

$
0
0

Hey,

 

I had some stucked axes and tables in my project that I wanted to remove. I could delete them from my project but they are still in the system and I can't undeploy them in the project and system camparison configurator. When I try it I get this error:

LabVIEW:  (Hex 0x80004005) Unknown error.
=========================
NI System Configuration:  (Hex 0x80004005) The operation failed.

Does anyone know how I can delete them?

FTP transfer from host to cRIO in Labview

$
0
0

Hi,

 

I programatically transfer a n ASCII file from a PC to a Compact RIO using 'FTP Put File VI'.

It works in that sense, the changes are in the file, but the last lines from the file are missing.

The screenshot shows it in a KDiff3 window: left is the new file, right is the old for reference.

configDiff.png

 

It is not a serious issue in my case, as the Compact RIO software starts with the new file, but it would be useful to find out if I do something wrong or this is a issue with the VI. In either case, any suggestions would be welcomed. Thanks.

 

Regards,

 

Zoltan

FOR loop

$
0
0

Hy guys.

I started programming in LabVIEW, but I got stuck. I would like to compare every two consecutive element of an array. I started to do this in a for loop, but I don't know how to get the two consevutive element.

kerdes.PNG

Could you help me out?

P.s: My really task is: I have an 10 different data in a file but they appear in the file more then 1 time and I have to write those 10 data in an array. The following program contain's the idea how I thinked that I can resolve it.

Remote Desktop in LabVIEW Front Panel

$
0
0

Hello,

I would like to open the Remote Desktop in my LabVIEW Front Panel:

I want to see the full desktop of a remote computer in my LabVIEW Front Panel, and I was told that might be able do to that by ActiveX, but I have no idea how

Any help on that?

Just to be a little bit more clear:

There is a remote computer that is monitoring a camera I want to make the monitoring of the whole camera software in my computer, inside the LabVIEW Front Panel

 

Thanks!


TCPIP Labview-PLC (when the PLC is the client)

$
0
0

Hi,

I need to communicate a Labview program with a Beckhoff PLC, and to do that I create a server-client communication.

The PLC is the client and the code is programmed on Twincat 3 ( the client code is ok, I test it)

The server will be a PC running the Labview TCPIP server example(only the server part). ( I take only the server .VI of TCPIP com example of Labview)

The issue is that the connection does not occur. (Port 200 is listening  and I put the IP addres so I dont know what is happening. Meaby a socket issue ?.)

 

I know that the PLC client is not the problem, because I did a successfull conexion with a LabWindows TCPIP server. ( but I need to do a server with Labview, not Labwindows).

 

Kind regards.

 

 

labview web server can not get files by hyperlinks

$
0
0

I created a LaBVIEW web server , I want the users to upload a file and post some data(by browser such as chrome) to the server, and immediately get jump to a page full of hyperlinks, in with the user can click the hyperlinks to get the files just uploaded.

 

but , after I PUBLISH the server ,the server can refreash the hyperlinks but the new hyperlink(after user upload a file) is valid, showing a 404 code .

 

while ,if I BEGIN the server,it works well , the newly appeared hyperlinks can open the uploaded file properly .

 

what is wrong ? what shall I do?.

NI-DAQmx is unable to communicate with the device.

$
0
0

Hello,

after switch on of an embedded PC*) my compiled Labview 2017 program start by a shortcut in an autostart folder.

And it 'hang' about 10-20s and after this period an error is raised:

Error -200324 occurred at DAQmx Create Channel (AI-Sound Pressure-Microphone).vi:6950001
Possible reason(s):
NI-DAQmx is unable to communicate with the device. Make sure the device is present in and accessible to the system, and is not currently being reset.
Device: M2
Task Name: myTask

 

After the error the measuring program log the error and restart the measurement loop. Then is all ok.

 

But the long waiting time possible caused by an timeout in the daqmx driver is not nice.

 

Possible the daqmx driver is not ready after reboot?

How can I avoid this error?  Or can I set the timeout to a lower value, so I can wait in a loop until the DAQmx device is ready?

 

Peter

 

*) System config:

Windows 10 ltsb x64 with enabled Unified Write Filter to protect the system against sudden power loss.

cDAQ9174 with 2x 9250, 1x 9234, 1x 9201

Device: M2 is the second 9250.

cRIO 9049 and two NI 9215 modules sampling at 100 kHz

$
0
0

Hi All,

 

I am working on a project making use of a cRIO 9049 and two NI 9215 modules to sample eight channels at 100 kHz. I am also using the NI 9467 module to time stamp the data measurements. The analogue input channels and the time from the timekeeper are written to two separate FIFOs. These two FIFOs are picked up in the host VI where the depth is configured and then read within a while loop. 


When I set the loop timer to 10 uS I can log at 100 kHz using one 9215 module, when I add the second 9215 module at the FPGA input node, the sampling rate saturates at 90.9 kHz (whilst the loop timer is still 10 uS). I have attached images of my FPGA VI  (which makes use of the timekeeper VI) and my host VI. Is my general logic in the FPGA/host VIs correct? Can anyone suggest a reason/solution for the reduction in the sampling rate when gathering data from two 9215 modules on the cRIO?

 

Best Regards,

Eddie


FPGAVI.PNGHostVI.PNG

Tablet control of PC with LabVIEW

$
0
0

I'd like a LabVIEW GUI on a Tablet to control a large flat-panel display. i.e. a visitor presses a few buttons on a tablet, and the PC/monitor displays the corresponding visuals (powerpoint, video etc). As far as I can see there aren't many options. 

 

Does the NI Data Dashboard support datasockets? Or provide cursor coordinates? 

 

All suggestions welcome! 

 

Thanks

Graham 

 

 

 

 

 

Version Conversion from LV17 to LV15

$
0
0

I need help in conversion a VI file from version 17 to version 15? 

 

How to Install OpenG Zip libraries on CRIO 9068

$
0
0

Hi,

 

I need to be able to zip up files on my CRIO 9068 target controller. It looks like OpenG is an option, and I can install it on my computer to be able to use it in Labviews in my target VI's, but when I go to download, I get the error that the OpenG Zip library isn't installed on my CRIO. Looked at a lot of posts, but haven't figured out how to actually install the OpenG zip library on my CRIO. Any help or pointers to documentation on the subject is appreciated.


Estimate Transfer Function - Step Response

$
0
0

Hello,

 

I am attempting to model the transfers of two close loop systems. They are both using direct syntheses controllers but one has deadtime compensation (smith predictor arrangement). The system which is using the dt compensation appears to yield a response which is almost identical to the desired response from which the controller was designed. However I would like to recover the transfer function from the step response such that I can properly confirm this and also compare performance characteristics and gain margin between the two systems. 

 

So far I have been unable to recover the correct transfer function. I believe the issue may be in how the data sets are being presented to the SI Estimate Transfer Function Model VI. I have been failing with this for three days now and I have looked at most of the system identification examples. I notice that many of the examples utalize a different ODE solver, however when I have changed from the default Runge Kutta 23 it appears to distort the response. I would appreciate if someone more competent with lab view could lead me the right direction. 

 

The desired response for the dt compensate system should be approximately;

 

num = [10]
den = [1, 11.2, 13.05, 10] 

with 5.5 seconds deadtime 

 

The second system without compensation should be similar but with a longer settling time and larger overshoot. 

 

Thankyou for your help in advance. 

 

Dan

Iinstall VI on any windows PC

$
0
0

This is a Lab View file and I need to develop a stand-alone executable file of that file to be installed on any windows PC

VISA Find resource Returns Ghost Devices

$
0
0

Hi. I am using Labview 14.0 as shown in the first attachment (NI SW Configuration.PNG).

I am running into a problem using the 2nd attachment (VISA Find resource.vi). When I execute the first VISA Find Resource command, it returns 8 instruments even though the HS USB GPIB bus (blue connector) is disconnected. It should error out. I am using Windows 7 on a HP laptop. If I switch to a tower computer which uses 2014 NI SW also, it errors out as expected. When I connect the GPIB bus, the tower finds only the real instruments on the bus and no ghost instruments. These ghost instruments found on the laptop are instruments which were previously used on the GPIB bus, but are no longer required.

NI Max does not show these ghost instruments.

In an attempt to solve this problem, I had to remove and install all NI SW, which was very time consuming. This did not solve the problem.

After spending countless hours reading thru all the forums, I stumbled on the possibility this maybe related to my registry. Please advise. I searched the registry with many key words in an attempt to solve this problem, but no luck. The registry is the only thing I can think of between the laptop and the tower.

 

Any technical assistance would be greatly appreciated. I have been working on this for days now and really could use the help.

I have been using CVI, TestStand, and Labview for almost 20 years. I am employed by one of your biggest customers globally.

 

Thanks in advance-

 

theMule

 

 

 

LV error on Windows 7 with NI Gmath VI

$
0
0

Hi all,

 

See the below error message displayed during installation of an installer we built using LV 2018.

 

This error seems to appear only for Windows 7 machines.  Do you know how I can fix it?  Shall I find this NI math IV we're using and change some setting then rebuild?

 

If so, which setting?  What is happening here?

 

 

LV Error on Windows 7.png

NI 9213 RT didnt get data from FPGA

$
0
0

Hello,

Currently, I am trying to get temperature from thermocouples using cRio 9066 and NI 9213.

I am using example of NI9213 getting started.

I just changed the module number in FPGA vi (Mod1 -> mod2). It seems that FPGA vi is working.

Even though, it didnt update every second, it showed some values as attached in figures.

But, RT vi didnt appear any data. It seems that RT didnt get the data from FPGA.

I have attached the Vis.

Why RT vi showed no response?

I wish some one can help this issue.

 

Any help would be greatly appreciated.

Viewing all 69147 articles
Browse latest View live