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

16bit image not correctly displayed by IMAQ Vision (IMAQ ArrayToImage.vi)

$
0
0

Dear developpers,

I'm trying to draw interactively and retrieve a Region of Interest in an image by using IMAQ Vision.

Before doing the ROI, I need to display the Image.

I have an array which comes from a camera, it's an array of 16bit data.

When I convert this array to an image by using "IMAQ ArrayToImage.vi".

The image is displayed but not correctly.

I tried to convert the array into a 16 or 8 bit array but without success.

Could you help me please?

Thanks,

Sébastien16bit badly displayed.PNG

 


Best Way to Handle Datalogging between Parallel Loops?

$
0
0

Midway through a project using multiple parallel QSMs to log data on different units. I'm a labview rookie so I'd like to learn the best way to do things rather than crash through what happens to work. 

 

Each QSM is a parallel loop for a different unit. They may start and stop at different times, and all I'd like to do is log data for each unit in the same file. Obviously the data-logging has to happen separate from any one QSM loop, otherwise it won't log at all. 

 

As a rough prototype I came up with the attached, which seems to work.... is there a better way to do this? 

Reading data using Modbus RTU

$
0
0

Hi friends,

 

I have a temperature display which is ORDEL PC771. You can click for datasheet. Datasheet is not English. Communication protocol is MODBUS RTU over RS435. 

 

There is a device between computer and ORDEL which is ATEN UC2324 4-Port USB to RS-232 Hub.  

 

I want to communicate with ORDEL to read and display temperature data on Labview. You can examine a file attached. However, connection is not provided. There is no data from ORDEL.

 

Thanks for your comments.

get data using Labview Modbus TCP

$
0
0

Hello all,

 

I have never used modbus protocol before and I am trying to get data from a 3rd party sensor in our facility using Modbus TCP. I have installed the NI Modbus Library v1.2.1.42 using the VI package manager. It looks like I am able to connect, however I can't seem to get the data. 

 

I received some general instructions from the company who monitors these sensors that contains the IP address and the register of the sensors.

 

I was able to connect with the provided example in the modbus library but it errored out with any command I gave it. I tried to create my own basic VI to pull the data with no luck (see attached snippet). I incremented/decremented the register number by 1 to see if there was an offset (i read that somewhere) and that did not help. 

 

To be honest, I'm not sure if the "read holdings register" is the appropriate VI to use, it just seemed the most logical as I don't want to write anything. Any advice would be much appreciated.

 

Thanks

 

sensor info.pngmodbus.png

 

 

 

 

LabVIEW mozilla/chrome web browser

$
0
0

I have been studying recently on how to embed a web browser into a VI. I have followed a lot of tutorials and been successful at making both a .NET version and ActiveX version work thus far. I am now to the point where I need to view a live steaming camera through the embedded webpage. Unfortunately all .NET and ActiveX objects reference Internet Explorer 7. This limits you to what web pages you can view. As a result I then figured out how to force the web browser objects to use IE11 through window's registry. I am now at the point where I need to stream a .MJPEG camera which IE does not have native support for.

 

Does anyone know of a way that I can create a .NET or ActiveX control off of a Firefox or chrome browser? I have jumped through so many hurdles to get IE to function on a basic level and this problem could be solved so much more efficiently with a modern web browser.

I found this post from 10+ years ago and I don't believe it will work with the newer browsers. I am looking for a similar (but modern) solution.

Stereo vision calibration not calibrating

$
0
0

So I was following this guide in order to calibrate two of my cameras using the grid paper:

 

http://zone.ni.com/reference/en-XX/help/370281W-01/imaqvision/stereo_vision_example/

 

I have problems at step 7 where there are four different acquisitions the program asks for in order: flat, tilted left side, tilted right side, tilted downwards and tilted upwards. 

 

However, after the tilted upwards, it just continues to acquire images asking for the grid to be tilted upwards forever. I never get to step 8 as a result of this.

 

What does this mean?

 

** Note I am using the modified example VI from "Vision Essentials Guide" as instructed from this video: https://youtu.be/bufXESBlzTY

Petition GET to server

$
0
0

Hi, I'm new to this from LabView and I don't know where to look for information about this. My idea is to be able to download data that I already have on a server, but I do not know if it is possible to make a request of type GET to be able to obtain this data, if possible where can I find information about this so I can do it?

Thank you.

Interpolating 1D XY data not working properly in my sample VI

$
0
0

Hi Friends,

 

I need to interpolate XY data acquired from a data acquisition device, the interpolate 1D VI  just takes the nearest value instead of interpolating it, see the attached code. 

 

The 1D XY data is produced using a square of iteration (Y) and the time (t) at which the Y is obtained. The time interval is 0.2s for data generation and a 50 ms is added for the XY data interpolation. So, the raw data is

(t1, Y1), (t2, Y2), .... (tn, Yn), where Y = i*i, i is the iteration.

 

The interpolated data should be

(t1+0.05, Y1'), (t2+0.05), Y2'), .... (tn+0.05, Yn'), 

 

Currently, Yi' = Yi, which is not what I expected.

 

Could someone help with this issue?

Thanks,

Gu

Labview Document11.png

 


NI-Scope waveform image to file

$
0
0

I have a NI-Scope module in a PXIe chassis. After capturing data for a few milliseconds, I wire the acquired data to a Waveform Chart or Graph, I do not remember which one I selected. The graph looks great. I use the actual data to compute minimum and maximum voltage measurements for my test. This test is part of an automated TestStand sequence. I have been asked to save the waveform image, contained within the Waveform Chart or Graph, to a file.

 

1. Does anyone know how to save the image to a file? I know that I can right click on the Waveform Chart or Graph and perform an export, as a simplified image, to a file. I could not find a LabVIEW method to do that automatically, as yet.

 

2. This relates to TestStand and this may not be the forum to ask this. Is there a method to pass the simplified image back to TestStand so that the simplified image can be displayed in the test report rather than have it located in a separate file? I could pass back that the image was saved in a file and try to find a method in TestStand to paste the file into the report.

 

Thank you for any recommendations.

auto increment fixed size of array having fixed elements where start index changes after every loop

$
0
0

I have a numeric data array of elements having data as {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}

which  increment index by 1 every time.

In the second loop i want the data in array as {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0}

in the third loop i want the data in array as {2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1}

in the fourth loop i want the data in array as {3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2}

in the same way this should happen till the last loop no 15th 

Please help to solve this problem.

 

Connecting LabView gui to an existing java code and sending information between a jar and a labview application.

$
0
0

I am tasked with connecting a LabView application with a java code base. I am completely ignorant on how I am to get information to be shared between the LabVIEW application and the java code. Any information or resources would be appreciated.

VL53L0X sensor (I2C) + LabVIEW + Arduino (LINX)

$
0
0

Good Day to all,

 

The VL53L0X is a new generation Time-of-Flight (ToF) laser-ranging module housed in the smallest package on the market today, providing accurate distance measurement whatever the target reflectance unlike conventional technologies.

 

Currently for one my project I need to use VL53L0X for locating objects with LabVIEW and Arduino (LINX). I can easily use VL53L0X with an Arduino library. However, I can’t able to use it in LabVIEW as the documentations for VL53L0X (I2C sensor) is inadequate and my knowledge in LabVIEW with I2C sensor is not that much.

 

If anyone share a working VI file to work with the VL53L0X sensor, then it will be very helpful for me to work further.

 

Thanks in advance.

Problem with Gate and Trigger Function in giving output repeatedly for the set conditions in a loop

$
0
0

Hello everyone

I need some help. I am using an Inertial Measurement Unit (IMU) to get data from an Impact device. There are number of impacts in each experiment and I need certain number of data samples during the impact for each impact. I am trying to use Gate and Trigger function for this purpose. The problem I am facing is that I am able to get my required data set (data samples) only for the 1st Impact in the experiment using this function and nothing for all the impacts after 1st impact.

I am using Gate and Trigger function in another part of my program for a different task and its working fine for all the impacts but I am unable to make it work in this case. 

Please find the attached sample data file and the part of VI I am having problem with. In actual, the data would coming in real-time from the sensor. 

I have tried using manual trigger, replicating settings from working part of my program and some other things but nothing worked so far. I hope I have made myself clear. Please feel free to ask if anything is unclear. Please help me with this problem either using this approach or some other approach. Looking forward to your kind responses. Thanks in advance.

Best regards,

Fahad Bin Zahid

An unforseen error occured, probably as the result of a code of markup error. Could not load file or assembly 'NationalInstruments.DAQmx.dll' or one of its dependencies. The specified Module could not be found.

$
0
0

An unforeseen error occurred, probably as the result of a code of markup error.

Could not load file or assembly
'NationalInstruments.DAQmx.dll' or one of its dependencies.
The specified Module could not be found.

The above error is happening when we changed OS from Microsoft Windows 10 LTSB 2016 64bit to Windows 10 LTSC 2019 64bit

 

Hi team, I am Lead OS Engineer working for Philips Health Care Bangalore. we are using NI DAQ 18.1 version. In our application I could see 'NationalInstruments.DAQmx.dll' and some more NI related files used with the application, and application calls the DLL file.

 

Operating System Used : Windows 10 LTSC 2019 x64, we recently moved to this OS and when we launch our application it refers the 'NationalInstruments.DAQmx.dll'.

IN OS we have installed : NI_DAQ MX 18.1 drivers successfully. The error doesn't appear in windows 10 LTSB 2016 or Windows 10 enterprise edition 2016.

 

Why this error appears in Windows 10 LTSC 2019 x64 os ? I am not able to find the 'NationalInstruments.DAQmx.dll' from NI-DAQ 18.1 after installation so I can replace it with my application in case of any compatibility issues.

 

Requesting your guidance and help ASAP.

 

DAQmx vi to a numerical indicator

$
0
0

Hello all,

 

I am trying to use DAQmx VI to get a certain channel/pin from a module and read that channel connected to a battery to a numerical value as a voltage. How would I got about this? 

Say I have 3 batteries and are connect to a different channel in a module and I want to get the reading from each of those 3 channels voltage. 

Thank you all. 


Read data and index from combobox

$
0
0

Hi!

 

I have an array of comboboxes and I want to read from them the selected value and the index inside the combobox assigned to this value. Is that possible or there is a more efficient way to do it?

 

Thanks!

DATA #800000200...

$
0
0

Can I ask, how this SCPI command is working? Because I can't find any example of it.

 

Thank you in advance.

Visa Read tImeout error due to large data

$
0
0

Hello!

I apologize if this has been discussed before, but I have searched in a lot of posts and haven't found a solution to my problem.

Essentially, I wrote a simple Labview Program to communicate with a Keysight inVision 3000Xseries labiew code (screenshot attached) and acquire averaged data. 

The code works very nicely when I use under 900 averages but when I increase the Averages I get a Visa read time out error, because the default time (2000 ms) Is not high enough. I tried to set it to 10000 ms, but it still doesn't work. Could anyone help me with this issue? Thank you so much!

(Any more details can be given if needed)

NI 6229 Sample Frequence

$
0
0

Generally speaking, the maximum rate can be reached when there is only one channel. As the number of channels increases, the maximum sampling rate decreases correspondingly. But why can NI_6229 achieve the maximum sampling rate of 250KS/s for both single channel and multi-channel? What are its internal processing mechanisms?

NI-9775 Continuous(連続モード)の時のサンプリングレートについて

Viewing all 69006 articles
Browse latest View live


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