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

serial communication interface with arduino

$
0
0

hi there !

As part of my project of end of study, I wish to build a cnc machine with two axes. I used two Nema 17 stepper motors and an arduino uno card for the interpretation of the G code with a CNC shield and two DRV8825 type drivers. I have already developed the program that will help me translate G-code instructions into motion. now i am interfacing with labview to communicate with my Arduino. I want to know the number of lines in my G-code file and send them one after another to my arduino with the help of a button until the end of the file.

Any suggestion will help and thank you in advance

 

 


stop the program when object move out the front panel

$
0
0

First of all I want to say hello everyone.

 

I'm very begginer with the LabVIEW Program, so my question might be a little bit stupid or easy, but I'm trying do that a very long time and nothing's going good.


I mean I just want to do program which moved press button STOP by pressing button OK. This is what I do and everything is ok, button STOP moves (while I press button OK) and stops the program (while I press button STOP). But I also want to stop the program when button STOP move out from the front panel frame, even if it is a little bit (I show it on the screen number 1, when I want to stop). And I don't really know how to do that. I think I must to limit the front panel size (I can do that) for ezample 200x200 pxs and then make something like "stop when >200", I tried do that, but it doesn't work... what should I do? I should add the new structure, while for example? I also tried but even I have no idea in which place.

Running .lua Script using LabVIEW

$
0
0

Hello Folks,

 

I have .lua Script files which can be executed using 3rd party software, Now i want to add this .lua script execution in my LabVIEW Application.

 

Found lua for LabVIEW in LabVIEW Tools Options. (Is there any way to call .lua script using LabVIEW?)

 

Planning to get dll for 3rd party software to invoke the execution property using labVIEW, Meanwhile if something can be done only using LabVIEW it will be great

 

Please share your experience!

RS232 error! Missing serial connection to interface card IFC5

$
0
0

HI,

I am currently working on a project to control a CNC machine using LabVIEW. I have installed the LabVIEW driver for the CNC but currently its not working. When I try to use a vi that I got from the LabVIEW driver to use as an initial test, this VI will bring the CNC back to its orginal reference position. But when I try to run it, it is showing an error i.e RS232 error! Missing serial connection to interface card IFC5. I am not sure what is the problem. All the connections have been properly made. We tried running the CNC with its own software which is called PAL PC and it runs properly. But when I used LabVIEW I am getting this error. Not sure what to do. Also the CNC is iMC-S8 from iSEL. Please do kindly help me. I have also attached the VI which I was trying to do the test run with.

 

Sincerely

Govind

Pxie 5105 on board memory allocation

$
0
0

Is it possible to acquire and record at 60Ms/s per each Channel in Pxie 5105?How does memory per each channel is allocated in Pxie 5105?

Why does my simple parallel loop run slowly?

$
0
0

Hey, I'm very new to LabVIEW and I'm using it for a uni assignment where I'm demonstrating parallel performance. I've made an EXTREMELY simple program but for some reason when I enable iteration parallelism it takes annoyingly longer to complete. How do I do this properly?

NI Vision Module OCR example tact time

$
0
0

Hi, everyone!

I am thinking about using NI Vision module to test the displays of a production line in my company, but I have no ideia about the time required to the webcam read a display and put into a variable on the VI.

 Before test, I want to ask if somebody who used this algorithm before can clarify my mind about the delay time to acquire data this way.

 

Thanks!

establish communication between LV-17 & Siemens - Sinumerik 808D Advanced CNC Controller.

$
0
0

Hello All,

I need to establish communication between LV-17 & Siemens - Sinumerik 808D Advanced CNC Controller. I am new to this type of communication and need help to understand how I can achieve this. I tried searching multiple threads on NI and other links but failed. 
I came across couple of links where I understand OPC Servers may help but no concrete confirmation. Are there any free OPC servers available to try out. 
Is it possible to achieve communication through TCP-IP directly as controller has ethernet port? Please let me know if there are more inputs needed.
Your help in this regards is highly appreciated. Thanks.


Labview Versions

$
0
0

Hi,

 

I am currently keeping a log of all the installed software and the versions on our computers. I was wondering if someone could help me identify which version of Labview the following software and versions fall under, the list can be seen below:

 

 

Thank you very much in advance.

Write to data file with timestamp

$
0
0

Hi all,

 

I'm trying to write data to a spreadsheet with column headers and a timestamp column without using Write to Measurement File.vi  I am able to do all of this, except label the column headers with the WMF express .vi, the problem i have with express anything is that you really don't know how any of it works.

 

Do any of you have an example or example code you could share?  I basically have (4) AI channels of data to save with a timestamp.

Data logging application Labview FPGA RT only recording whole numbers

$
0
0

Hello, 

 

I am trying to record data using labview FPGA. I am using a NI cRIo 9039 with a NI9215 i/o port to read data. I followed the tutorial called "Taking Your First Measurement in LabVIEW FPGA" which uses a FIFO to read data and then write it to the disk.Link here: http://www.ni.com/tutorial/54219/en/

 

after completing the tutorial, I tried the program out on a 1 khz sine wave with 6v peak-to-peak amplitude and it only records whole numbers, with every other number in between recorded as zero. 

 

 

I checked that I am not spuriously using "int" types, so I'm not sure where this error is occurring.

 

Attached is the "measurements from tutorial.vi" which sets up the FIFO and fpga and the "measurements.vi" which interfaces with labview on the computer. These are inside "FPGAtestproj."

 

Thank you in advance for the help!

need help about implementation of Servo Easing algorithm using LabVIEW

$
0
0

i just downloaded project from the NI forum named by  mytracker,when i run this project on myrio it not work quite well as shown in video. https://www.youtube.com/watch?v=DrHPyBcQAW8.when i search the main page where that project posted.https://forums.ni.com/t5/myRIO-Student-Projects/myTracker-An-autonomous-color-tracking-camera/ta-p/3500127 i found easing algorithm to smooth the servo motors.https://forums.ni.com/t5/Example-Programs/Servo-Easing-algorithm-using-LabVIEW/ta-p/3504112

but i don't understand how i put this easing algorithm in the mytracker project to smooth the servo. can anyone help me.

Event Triggering and Data Storage

$
0
0

I have 2 lasers that I am using as a method to measure velocity. When the velocity flag passes through the channel it blocks the first laser and then the second. From there I need to find out the time difference to then back out a velocity. 

 

Because I am new to LabView and don't have an encyclopedic knowledge of all the functions an VIs this task is proving to be extremely difficult. I have spent 8+ hours reading through the functions and VI pallets but can't seem to find any set of functions that will work together to do this task. 

 

My major issue seems to be converting the data types from the read VI to something that can be processed by the other VI functions. The uploaded VI is the most recent and seemingly closest that I have gotten. I have also tried putting the data acquisition on a loop that builds an array but am unable to both write to and read from the array. I have also gone through the various triggering pallets but can't seem to find one that will work with the dynamic or waveform datatype that I am reading. 

 

At this point I am basically still at square one and any help would be appreciated.

 

Thanks,

Jack

 

Building with data from block diagram then using that array

$
0
0

I am trying to get LabView to record data points from a waveform input into an array that I can then search for a trigger. I have figured out how to store the data into an array from the block diagram but the array function can only be configure to have an input OR and output. Not both. 

 

I am trying to do this for 2 reasons. The first is set up a VI to show real time data on a chart but then also save that data once the execution is complete. The second is to search the array with the "fractional index or x" function to find the time that an event occurred. The raw data type that I am collecting is a waveform or dynamic data for both.

 

Any help would be greatly appreciated.

 

Thanks,

Jack

need help about implementation of Servo Easing algorithm using LabVIEW


Saving a reference in a shift register issue

$
0
0

Hello,

     I am writing some small drivers to control a Real 30 Thermal Chamber. I ran into the following issue, and I was wondering what I might be missing. So I have the enclosed For Loop with a case statement inside. The idea being that I can initialize the TCP address and Remote port as shown, and then later I can send any additional commands (via additional cases) to the chamber via "Real 30 Chamber Control". (Via the reference in the shift register) This is when things got a bit strange.

I can run this vi one time to "Init", and that works fine. Then I run the program again, for any of the other states, and I get an Error 1. It appears that the next time I run the program, it has lost it's reference in the shift register somehow.

Just to prove this to myself, I took the whole vi, created a test program where I used three instances of the same .vi, and set the first one to "init", then one of the other cases, and then "close" case. (All instances were connected via the error line). This worked without errors through many attempts.

 

I had thought that the contents of a shift register are supposed to survive a .vi shutdown, as long as Labview itself is still running? If that is not the problem, does it have something to do with losing the reference to the TCP init function after a program stop? I hope I have described this problem ok. This .vi will be used as a call in a Teststand sequence, so it will work fine as it is, I was just curious why I was getting this unexpected result when I ran the .vi multiple times by itself. Thanks....

 

 

 

 

 

 

NI Max fails to launch

$
0
0

Hello NI Community,

 

My laptop recently started to not be able to open NI Max (I have not installed anything in a long time). NI Max crashes on start up to an error reporting window (I have attached a screenshot of the window). I have searched google and this forum for an answer, but nothing I have tried has worked. I have already reinstalled LabVIEW as well as removing any 3rd party device drivers. Beyond this I am stumped. I am running Windows 7 (64-bit) with LabVIEW 2016 (Note: I can launch LabVIEW with no problems).

 

Thanks,

-B 

 

Convert html file into pdf using PDFCreator 1.4.3

$
0
0

I want to create pdf file from html through pdfcreator. But I am not getting sny link to download pdfcreator version 1.4.3. I need that version only. Please share me link where I can download it.

- devashri

How to create different types of signals ?

$
0
0

Hello every one,

 

I try to create different types of signals like PWM with specific Ton and Toff,

sine wave, sawtooth and triangle wave, so if any one can help me or give me a blog to read.

 

Thanks in advance.

Software triggering 4497 with 6674T

$
0
0

Hello everyone,

I'm having truoble triggering 7x4497 cards using the software trigger option in NI sync. According to the 4497 specifications, this card can either be trigged through the pf0 input on the front or the PXITrig<0..6> on the backplane. I have laborated with many configuration and I can't get it work, I have even tried to send the software trigger to 6674T pf1 and route the pf1 to pf0 of the 6674T and from there Trig0, I Can se on the osciloscope that the trig signal i coming through the pf1 but the 4497 don't start :-(. I also read some where that for DSA cards one should use DAQ mx reference trigger instead of start trigger, but that works only for finite acquisition :'(. So what am I doing wrong. I have sent a snipet just to give you an overview on how I have configured my system, so don't complain that it is not working ;-).  

Viewing all 66808 articles
Browse latest View live