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

comparison matrix image use LabVIEW

$
0
0

I have a product needs matrix screen test but did not know how to borrow
Can you help me write a program comparing images use LabVIEW
with the following content is not.

 

 

 

1-User Baumer Camera
2-Product :LCD Screen
3-Software : Labview2014 with Vision and motion tool
4-Program Test Criteria:
Tag Display --->Pattern ---> Pass Criteria ---> Fail Criteria

Display 1--->Checkerboard ---> Alternating pixels shown --->Expected black pixels white or expected white pixels  black



Display 2 --->Inverse Checkerboard --->Opposite Display 1 image alternating pixels shown ---> Expected black pixels white or expected white pixels  black    



Display 3 --->Alternating Horizontal Lines --->Alternating horizontal lines displayed ---> White pixels in expected black lines or black pixels in expected white lines


reading voltage converting from current in daq

$
0
0

Hi all,

i have a pressure sensor that gives ma as output.my daq is reading voltage.i connect resistance as parallel to analog input.But i still cannot read voltage.when i check with ammeter the current value is correct but it cannot convert this current the voltage.

 

Sort Menu Ring text

$
0
0

Is there a way to sort the Menu Ring text? If there is, where is it located?

Remote Panels

$
0
0

My goal is to use the web server on computer A and remote panel viewing and control on computer B, and viewing on computer C (and later D, E, F).

 

Computer A has LabVIEW 2012 installed on a windows 7 64 bit laptop computer which has symantec endpoint protection (controlled by domain) and symantec encryption desktop (Required by Gov for laptops).

The wireless network is disabled.  The wired (RJ45) network is connected to the domain.  The network advanced settings looks for the domain network first.

The Enable Remote Panel Server box is checked.  The root directory goes to the 32bit directory.

HTTP port 8000

Remote front panels checked

Snapshot checked

Visible VIs one checkmark * Allow access selected

Browser Access

one check * monitoring

2 checks for computer B and C to allow viewing and controlling.

Under Shared LabVIEW Run-Time Browser Plugins Internet Explorer - LV2012ActiveXControl.dll 155 KB

Under x86 Internet Explorer Plugins - LV2012ActiveXControl.dll

 

Part of web page

<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807B4" WIDTH=1401 HEIGHT=894 CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/2012/LVRTE2012min.exe">
<PARAM name="LVFPPVINAME" value="PPA-4CM-AFHver3.vi">
<PARAM name="REQCTRL" value=false>
<EMBED src=".LV_FrontPanelProtocol.rpvi120" LVFPPVINAME="PPA-4CM-AFHver3.vi" REQCTRL=false TYPE="application/x-labviewrpvi120" WIDTH=1401 HEIGHT=894 PLUGINSPAGE="http://digital.ni.com/express.nsf/bycode/exck2m">

The IE remote panel works on the local computer A.

 

Computer B has LabVIEW 2012 installed with same OS as computer A, Symantec Endpoint but no Encryption.

A webpage was created and the remote panel server was turned on with no restrictions.

Under Shared LabVIEW Run-Time Browser Plugins Internet Explorer - LV2012ActiveXControl.dll 155 KB

Under x86 Internet Explorer Plugins - LV2012ActiveXControl.dll

Computer B is unable to connect to computer A with IE and firefox

This page can't be displayed (IE)

Server not found

Firefox can't find the server at computer name.domain

Computer B does connect  to Computer A vi through LabVIEW menu operate, connect to remote panel

 

Computer C has the same OS as computer A and B, Symantec Endpoint but no Encryption.

I was able to connect with remote panels to Computer B from Computer C which has IE and LVRTE2012

Computer C is unable to connect to computer A

"This page can't be displayed" (IE)

 

I disabled the endpoint firewall on computer A and computer B but IE did not work.

I pinged computer A with computer B.  This worked.

I pinged computer B with computer A.  This worked.

 

Timing

$
0
0

So I know this is simple but I'm blanking. I want to be able to run part of my code before another part. And when the first part ends, the second starts.

 

How do I do this?

Images measuring light intensity

$
0
0

Hello,

 

I am an undergraduate researcher doing work on laser beams, and I need help creating a labview program that will show the light intensity of images. I would like for the image to look like the image that is attached to this post.

 

Does anyone have any idea how to achieve this?

visa error

$
0
0

I encountered -2147352567 error when opening a serial port using LabView 2010.

The software was working perfectly fine until I upgraded Visual Studio from 2010 to 2012. However, exe files previously built by another computer would work. If I build a exe file and run it on another computer, it would also work. It just doesn't work on this computer.

I re-installed visa441full.exe and re-registered MSCOMM32.OCX. Didn't fix the problem. Then I un-installed Visual Studio 2012 and put 2010 back. Also didn't fix the problem.

Any idea ?

Thanks

programatically adjust chart range

$
0
0

I am using LabVIEW 2010 to aquire a temperature and to plot it in real time on a chart. I am using absolute time and the chart seems to be working well, however I am unable to adjust the x-axis range. I would like the user to be able to select how many minutes to show on the chart. Could you please help me programatically change the range of the x-axis so the user can adjust how many minutes is shown on the chart?


Synchronize 9403 and 9402 on cRIO/FPGA

$
0
0

HI,

 

I'm working with cRIO FPGA and DI/O modules 9403 (slow) and 9402 (fast).  It's a pulsed system and I need to synchronize the two modules, of which I am having troubles.  It seems the best I can do is to accept some jitter on the 9403 of about (total) 5 us using the 9402 as the 'master'.  I've tried disabling  arbitration and it doesn't help.  The 9402 is in a SCTL and the logic for the 9403 is as well, with the write outside the (SCTL) loop.  Any suggestions?  I'm  at a dead end.

case structure greater than or less than

$
0
0

Hello.

 

I am having difficulty with making a case structure that if a numerical input is greater than a number it does one thing and less it does another.

 

Basically how do you work with case structures that aren't boolean, specifically if a number is greater than 38 it reassigns it as 0 (multiplies by zero something like that).

FPGA delay using derived clock

$
0
0

Hi,

 

Probably a simple answer to this. I have the PXI-7813R which has a base clock of 40 MHz. I need to create a time delay of 488nSecs in my code. Unfortunately with 40MHz I have to either choose 475nSecs or 500nSecs. If I use a derived clock of 80MHz I can get a delay of 487.5 which is very close to what I need. However, if I change my top level clock to 80MHz I get various timing violations during the compile. Is there a way to keep the top level clock at 40MHz but use the 80MHz clock for a time delay?

 

Thanks

 

Andy

References in Memory

$
0
0

What happens to reference in an array?  Let's say I create an array of rerences using a For Loop, but I don't close said references.  Then, I recreate that same array with new references.  Will the originaly be destroyed or will it still be in memory?  Will the failure to close these references be an issue?  What if it is references that point to items within a DLL?

Pause and Resume Time Elapsed with Events

$
0
0

Hi eveybody,

 

I am trying to develop a simple function where I can pause and resume elapsed time. The main idea is to pause and resume a Fluke 2638A Hydra scan and simultaneously pause and resume the elapsed time. The elapsed time allows the main VI to timeout (return an error) if no scans appear after 16.67minutes. This is done with button presses therefore an event structure is used.

 

The Timeout of the event structure is to check if the scan has been completed and to read the time elapsed.  I took the approach of creating this function seperate from the Fluke VI in order to optimize it. The while loop is a producer in the main VI, and the event strcutures are vital to the VI.

 

This Timing VI works, but has a huge drawback. Everytime I press button Resume (after pausing it) the while loop iterates twice (or more depending on the time of pause and resume) before continuing the timing. Therefore, I am lagging behind the actual time. In other words, as soon as I press resume I want the time elapsed to start and not have a delay.

 

The actual VI has a timeout of 200ms not 2s. The 2second timeout was enter for troubleshooting purposes.

 

My main idea was to create a function that can pause and resume elapsed time within an Event structure. I don't know how I can initiate a Tick count with the time it had when the button Pause was pressed. This would simplify the VI down below. Instead, I had to calculate the time difference between the moment the Pause button was pressed and the current Tick count value after Resume was pressed (Case Structure "1").

 

Is there a way to simplify this function while keeping the Event Strcuture inside the Producer Loop? 

 

Front panel Timing.JPG

 

Timing VI.png

Timing VI2.png

Timing VI3.png

Timing VI4.png

Timing VI5.png

 

 

 

Here is a snippet of the Producer Loop from the Fluke DAQ VI I am developing. The Timing function (Elapsed time) has not been implemented. It has a elapsed time function where the Pause and Resume functions are not taken into account.

Prodcuer Loop.JPG

 

 

Thank you.

Default values for unconnected sub-vi inputs in LabView RT

$
0
0

Given that LVRT doesn't include the front panel when running VIs, how should default values be specified for control inputs that are left unconnected?

 

Thanks,

 

XL600

How to run/test application using network streams

$
0
0

Hello,

 

I'm confused on what steps to follow to test an application using the network streams feature. After reading a lot and going through other discussions I found 2 simple VIs on the last post here http://forums.ni.com/t5/LabVIEW/Network-streams-problem-with-cRIO-9022/td-p/1401576 (I attached the VIs, which I modified just a bit) which I believe have been tested before and work so I was trying to do the same in my desktop and it does not work. I get the same scenario when I was trying to test the code I wrote: no bugs, both VIs run but nothing happens.

 

According to the link above this is what is supposed to happen: "a PC hosts a GUI (see mainGUI.VI) that sends an array of doubles to the cRIO via one stream and reads a double value back via another. The cRIO, via the scan interface, reads the array via the first stream and writes an analog value to the host via the second (see mainRT.VI). "

 

The current set up is: 

1. Add both VIs to the blank project with the target device cRIO (see attached screenshot)

2. Deploy mainRT.vi on the cRIO

3. Run both at the same time

 

Am I missing something?

 

Also, I have been reading that there are two ways of testing this. One running both VIs on the PC and the other actually using the targeted device, in this case cRIO. Is that correct?

 

Please help!

Thank you


VI not working with web service (wrong app instance)

$
0
0

Hello

 

I have a web service where I have to write some values to a certain VI. This VI is located in the same project, but not in the web service.

Even though I open the VI using an application reference, the web service opens the VI in the "main application instance" and not in the instance that is my actual project. The problem is that this VI has to read from a state machine, but the values are of course incorrent when it is in the wrong instance.

 

Does anyone know what I am doing wrong? I have attached a screenshot of how I call the VI below

Thank you,

 

 

 

VI call.png

NIUpdateService.exe System Error - NIIMAQDX.dll is missing

$
0
0

I just installed NITime-Sync and then restarted my computer as instructed. After restarting Windows the attached error dialog pops up. How to fix?

Never mind

Max binary or TDMS file size to read (64-bit)

$
0
0

I am trying to read either binary or TDMS files that are larger than 4 GB, but labview failed to do this, and showed Error - 2501 (possible reason: invalid TDMS file reference).

 

The Labviews we are using are 2013 and 2014, 64-bit. Both of them cannot read files larger than 4 GB. 

 

The computer we are using: Windows 7 professional, Intel Core i7-4770, 3.5GHz, RAM: 32 GB, 64-bit. 

 

To genarate and read the binary and TDMS files, I used the examples provided by Labview: Write and Read binary file.vi, and TDMS Advanced Synchronous Write and Read Speed Test.vi. 

 

Could someone help me to figure out the problem?

filter coefficient

$
0
0

I am designing a digital filter,but I faced problem. I want to entre my own coefficients to the filter. Please anyone help me how to change the values of the coefficients in digital filter in the VI.

many thanks for help

Viewing all 69088 articles
Browse latest View live


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