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

Going from LabVIEW 2016 to 8.5 stop classes vi from operating.

$
0
0

I developing LabVIEW controlled experiment using version 2016. Unfortunately, I will need to transfer it to LabVIEW 8.5. When saving project to version 8.5 I'm loosing ability to work with my classes.

I made a simple test which you can see on the Figure below:q1.png

I do not understand which library I'm missing. What could be the solution to this problem?


Few Queries on Calling Excel in LabVIEW

$
0
0

1. When  calling Excel Using Automation Open, and Giving Visible as False its works Perfectly in my development PC but when i am using the same code in My Lab PC its Physically opens the Excel which i dont recommend.

 

Only Difference i see is my PC RAM is 32GB whereas the Lab PC is having 16 GB

 

OpenExcel.png

 

Selected only a part of code from the actual code so error in the PICTURE

 

2. Assume i need to select a column in my excel i cab click the Top of column and Do any action particular to that column like the same i need to do programmatically without providing  range Selection (Cell1 and Cell 2)

 

LabVIEW Version 2015

 

Thanks in advance

Stepper Motor Control using NI USB 6211

$
0
0

Hi,

Could someone hep me with following:

I have a working model of the stepping motor control, but i am intending to change or add the following function:

  1. Speed of the motor - I have to stop and run again to change the speed, how can i accelerate the speed in real time
  2. Direction of the motor - how can I stop the motor or slow it down before i change the direction of the motor (mainly to avoid to the immediate jerk it gets)

I am new to programming, any help on the same would be appreciated.

 

Regards

Deepak

Timed while loop

$
0
0

Hi, 

I want the following while loop to execute every 4th second and send the iteration count as second element of an array through Ethernet UDP i.e. on 4th second it should send 1, on 8th second 2 and so on.

Currently, I am not being able to increment the iteration count every 4th second as the while loop is running continuously.

Any help would be highly appreciated.

 

 

GTX Transceivers CLIP generation on NI-6592R(Using Kintex-7 Board)

$
0
0

Hi,

 

I am trying to develop a clip for accessing GTX transceiver pins on Kintex-7 board which is used in NI-6592R High Speed Serial Interface card.

There is one Block with name "IBUFDS" used for clocking of GTX Transceivers. I have done code for same in VHDL. But when I call it in labview for creating CLIP, I am getting errors on using IBUFDS block. The details of the error is as follows:-

 

" Rule violation (REQP-1619) IBUFDS_GTE2_driven_by_IBUF - IBUFDS_GTE2 PXIe6592RWindow/theCLIPs/Port_0_CLIP1/ibufds_instq2_clk0 pins I and IB should be driven by IBUFs."

 

My VHDL Design is like this:

 

Displaying image.png

 I am already driving Inputs through IBUFs. Did anybody faced same problem? Please help me on solving this issue.

 

 

NI-VMS kit Issues

$
0
0

Hi,

 

I am using NI VMS for analyzing VIdeo Signals. I have one .exe file available on NI website which will analyze video signal. I am trying to develop same in labview. So NI-VMS library is available for developing code in LabVIEW. But while using that library LabVIEW is crashing. 

So How can I develop this in Labview? Has anybody developed same in labview?

Is there any other libraries available for this?

 

FYI : I am using NI-5122 card for Video Analyzing,

Find more than one peak in a waform

$
0
0

Hi every body,

 

Could you please help how I can find the location of the tree most great values (the 3 peaks) of a time serie (waveform) ? thank you Smiley Happy

 

Best regards

Lahcen

Need help with adding incoming values in an array

$
0
0

I am aquiring data (current) over time and plotting realtime using DAQ assist. I want to keep on adding incoming values and keep updating and see in real time. I am attaching the simple program I am using. 

I will highly appriciate if you can help me out with adding the values and visualise realtime. 

 

 

if the incomin data is 

 

Time    data  i want 

1          a          a

2          b          a+b

3          c          a+b+c


MS Office Report Express VI - row limit

$
0
0

Hi All!

 

I have problem using MS Office Express VI when I'm trying to send a lot of measurement data. I'm sending a 5 columns of data and when I have more than approx. 130 000 samples then the MS Office Express VI doesn't create report. I see MS Excel opens and closes immediately. When I'm sending less data there is no problem. Also when I have more than 130 000 rows of data and using export to excel directly in labview chart there is no problem. It looks like MS Office Express VI has row limit but I couldn't find the information about this. Any help needed Smiley Happy

 

Kind Regards

 

Data acquisition

$
0
0

Hello friends,

I have a task of acquiring continuous samples from two C series-NI9215 cards mounted on cDAQ-9171. The technique available on

http://forums.ni.com/t5/NI-DAQmx-Examples/Synchronize-Continuous-Acquisition-of-Multiple-Analog-Inpu...

does not include for the case for C series. Can somebody please help me regarding this. It would have been better if the logic behind using these blocks is also exlained as I'm a beginner in data acquisition.

 

Thank you all in advance,

Gajanana Abhyankar B

QuickDrop - Add object in LV 2016

$
0
0

In LV2015 and before, I could add my own front panel object by saving a copy of it in the  <LabVIEW>/resource/dialog/QuickDrop folder and adding a shortcut with the file name in the Labview.ini file.

 

It does not work with LabVIEW 2016 anymore. Anyone can tell me how I can use Quickdrop to insert my own front panel objects with LabVIEW 2016?

 

 

PID controlled PWM output

$
0
0

Hello,

 

I am trying to develop a PWM output which controls a SSR which controls a DC motor. This DC motor drives a pump for coolant flow. The idea is to control the coolant temp of a combustion engine. Once the temperature setpoint is entered, the PID control system can control the dutycycle. A thermocouple feeds the actual temperature back to the PID system.

By combining 2 pieces of VI, which I found on the net, I already made it work. I attached it below.

However, I have a disturbing problem, that it will stop and start the code (and thus, also the PWM output) every looptime the VI will pass the "DAQmxStopTask.vi" .

This causes some disturbance in the temperature stability.

Does anyone have a suggestion for me how to improve this code?

 

Thanks in advance!!

 

Sincere Regards, Theo

Communicating with the Linux OS on RoboRio

$
0
0

Ok So here is the issues. There is a hang issues witht he USB port on the roboRIO. This the the device that is used in FIRST robotics. It is using the Linux real time OS that is running in most of NI real time systems. I am a software developer for one of the 3rd party devices that is used. We have been working with NI for a while now to get all fo the bugs worked out tof the USB on the roboRIO. They told us that they would not be able to get to the problem of this hang issues before kick off Saturday Jan 7th 2017. They told us to go through the linux os because the VISA is where the hang problem resides.

 

They told me:

 

"the VISA Resource indicator to run from the OS Resource indicator instead. You could then use this modified VI as part of your own Serial open which sets up the port by calling into libc.so instead of using VISA."

 

I did this and got errors that they resourse name was not valid.

 

Next they told me to access the libc.so directly using a Call Library Function Node.

 

I have done this before when I had access to the DLL on my computer but I have not had succes with trying to get the information I need to configure the libc.so. I cannot find documentation and I am not skilled enough to do this my self. We would like to be able to get this working before Saturday.

 

I work for free so I am not making money on this. I am simply helping the FIRST community get better products to run thier robots.

 

Thanks in advance.

 

Tim

 

2D Barcode Reading

$
0
0

Hello, 

 

  This is what I am trying to do:

  

  1. Use uEye GigE camera (UI-5480SE-M-GL R.2) to take a pic of a 2D dot matrix barcode ( we are able to capture the image - please see attached file 124_png.png).
  2. We are trying to use the “read data matrix code.vi” that is provided in the LabVIEW examples to do this (attached here for easy reference)
  3. We have the NI vision dev module as well as LabVIEW 2015 installed, up-to-date and working great.
  4. Currently, we are having issues reading the barcode (please see attached file 124_png.png)- in fact, the example provided does not even seem to read the barcodes that are provided with the example except the “Barcode05.png” image – may be some settings need to be changed.

I was wondering if someone could take a look and see what needs to be changed to be able to read our barcodes? if you can made the changes and send the VI as an attachment, I can retest to see if this works at my end.

 

Thank you.

change exposure time of camera and take picture

$
0
0

Hello everybody,

I am very new to the world of LabView. Please excuse my question if it is very simple.

 

I have a Hamamatsu Orca Flash 4LT. I want to write a program to change the Exposure Time of camera to 4 different values and take a picture of the object in each ET. In other words, I want my program to set the ET to 85 millisecond and take a picture. I also want the program to the the same job to ET of 75,65, and 55. So I have written a program and attached to this question. When I highlight execution (the icon which looks like a lamp in block diagram) and run the code, it does the job perfectly. It takes 4 pictures of the object and those pictures are correct. By correct, I mean that when I do the same job manually (without labview) and compare the 4 pictures from my code to the 4 pictures from camera's own software, the pictures are identical. 

 

However, when I do not highlight the execution (turn off the little lamp) and run my code, the pictures from labview are not same as the pictures from camera's software. I am sure that this problem has something to do with timing. I should put a wait time somewhere but I don't know where.

 

I would be highly apreciated if anyone can take a look and give me a hint. 

 

Thanks in advance,

 

Sina


LabVIEW can't find function inside dll

$
0
0

Hello, I seem to have a misterious problem, basically i created a dll (narma.dll) which is composed of three functions:

 

extern "C" __declspec(dllexport) initialize

extern "C" __declspec(dllexport) operate

extern "C" __declspec(dllexport) data_delayer

 

I have tried linking this dll on my computer, and everything runs smoothly, with no errors. I also built it using Debug x86 configuration in Visual Studio c++ 2015. It depends on 2 other dlls, blas and lapack x86 both of which i have set to my PATH system variable. VS also created a .lib file that is also on my PATH variable.

 

However, when I move all those files to another PC also running LabVIEW 8.5, it can not find the function inside the library. I have made all the steps above again, I appended those 2 dlls (blas and lapack) to PATH, tried rebuilding the dll using both Debug and Release x86 options, but nothing works, it finds the function name, but says later that the function was not found inside the dll.


I have no ideia what to do. I have Visual Studio C++ 2015 on both PCs, and the only required dll besides the one I made is the blas and lapack one which I have appended to the path variable. Is there anything I can do ?

 

 

Check is a visa is already opened

$
0
0

Hello everyone,

 

I am using LabVIEW 2015, and I am trying to see if there is any function that can tell me if a visa has already been opened. I did search around for this and it appears there is a vi if you already have TestStand, but is there an easy way to do this if you do not have that?  I also read about an Open Session.vi that returns an array of all the opened visas, but I can't seem to find that either.

 

Thanks, Natalie

Asynchronous HTTP GET?

$
0
0

Can anyone suggest a way to make a HTTP "GET" request asynchronously?  That is, I'd like to be able to make the request, poll it's status, and then handle it once complete.  Specifically, I'd like to be able to abort the request at any point before it completes.

 

Currently, I'm using GET.vi from the LabVIEW HTTP client library.  This VI appears to only work synchronously.  That is, it does not return until it either receives the complete response or times out.  This results in my application appearing to "hang" at exit since, short of aborting the VI, I have no way to terminate a request which is currently in progress.

Need help connecting edges after running an edge detection method on an image

$
0
0

I am hoping to get a little bit of help with a project I am currently working on.  I am trying to detect an object in a scene that has the ability to change over time.  Both the object (the shape and contrast) and the scene itself change.  One of the hurdles I have encountered is the following:

 

After I have ran my edge detection methods and have the resulting image with the detected edges I want to interpolate between (or essentially connect) some of those edges. The ideal solution would result in the following image seen below

 edge detect.png

 

Anyone have any suggestions on the best way to implement this?  Thanks!

Labview compatibility with DAQmx Base

$
0
0

Hi there,

 

I tried to switch my old Labview codes to a win10 machine (Don't ask, long story). The old codes were running well on the following environment.

 

Mac OS 10.9.5 + Labview 2014 + NI-VISA 15.0 + NI-488 14.1 + NI DAQmx Base 15.0,

 

Now I tried to let it work on

 

Win 10 + Labview 2015 sp1 + NI-VISA 16.0 + NI-488 15.0 + NI DAQmx Base 15.0.

 

I think  everyting excepet my NI-6211 DAQ works. I understand that NI DAQmx may has support issue with the Win10 and that's why I used NI DAQmx Base, which I think 15.0 is the lattest version.

 

When I tried to load the old labview code it can't find all the *.dll files and I manually direct it to C:\Windows\SysWOW64 path. And when the code finally loads for unusual long time it still can't run. Especially, the DAQmx base start task.vi, DAQmx base Stop task.vi, DAQmx base Read.vi aren't excecutable.

 

Any idea?

 

 

 

 

Viewing all 69272 articles
Browse latest View live


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