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

Labview Core 2 exercist 4-2

$
0
0

Hi all,

 

I'm still a beginner going through labview course. In example 4-2, i can't figure out from the manual how to create control to hide the menu. 

 

for anyone who went through the course on page 53

 

Property Node—Right-click the Property Node and select Link to»Pane»Pane.

 

Could you elaborate how do i create those blocks for the front panel menu?

 

Thanks

 


Reading and Recording Two Signals

$
0
0

Hi,

 

I am looking to read in two signals, both are triggered voltage pulses, and plot them on the same waveform chart and print them into the same excel file.  I get an error saying, "The specified resource is reserved," when I try to run the code. Also, I have not been able to wire the error out to the "Write to File" error in, but I'm not sure if that's necessary.  The code is attached.

 

Thanks!

Need some help with a linear actuator

$
0
0

Hi all,

 

I've been tasked with writing code that can drive two stepper motors: one that makes a single step for every full revolution of the other. I've got the first stepper motor code written and running well with no issues. The second motor, the linear actuator, is having some issues. On its own, I had it running well. It would run clockwise until it triggered a limit switch then would change direction until it hit the other limit switch. When I integrated the two codes into a single VI, the linear actuator would run clockwise just fine, like normal, but then when it switched to counterclockwise it would run fine for a bit and then suddenly jump back to moving clockwise but rather than running smoothly it would be jumping the distance of multiple steps at a time. The code would say it is still running counterclockwise. Since then, I've tried running the linear actuator code on its own and it still has the same problem. I haven't been able to figure this out and would appreciate the help.

 

Some specifications of my hardware:

First motor: ST5-IP-EN Applied Motion Products driver connected via Ethernet, ML23HSAP 4300 Stepper Motor

Second Motor: NI USB 6009 OEM DAQ board, Anaheim Automation MBC25081TB step driver configured to JP1 in position 1-2, and a generic motor with 18 deg/step, 4-5 VDC, and 0.5A.

 

The NI USB 6009 OEM is generating a CLOCK signal in Port 0.1 (and I've checked that this signal is consistent for both CW and CCW using an oscilloscope), writes the DIRECTION in Port 0.0, and reads the limit switches in Ports 1.0 and 1.3. The On/Off Input of the MBC25081TB is connected to the +5V input (pin 34) of my DAQ board and the common of the limit switches is GND pins of the DAQ with two 10 kohm external pull up resistors.

 

I've attached the VI that contains the combined code as well as the VI that was running the second motor well before the issue arose. Any information is appreciated.

Dalsa Genie GigE camera using Labview program

$
0
0

Hi All,

 

I have  a dalsa genie GigE camera which is also visible in NI-MAX and I am able to take images in NI-MAX. but , I want to  grab and save the images using labview program.

 

I already tried with find example grab.vi file, but it says the network problem either by packet size or by firewall transfer .

I changed packet number to 512 and 1500 and also in my case the firewall transfer is not enabled in the camera attribute so I tried to enable but  even that functionality can't be changed.

Is there any example for it or any suggestion.

Thanks and Regards

Ashish

Live Plotting Intensity Graph

$
0
0

I'm trying to plot an intensity graph in real time and seem to be coming up short.  I tried to use this however here the user pre-allocates the array, then updates it.  I'm fine with doing that, I just don't see how I could work in this structure to my VI (attached).  My main goal here is to real time plot the intensity graph as I iterate through the voltage values.  At the moment, this will first iterate through all the values, and plot the graph all at once, at the end.

What permissions are required to deploy an application to RT Linux?

$
0
0

I have an sbRIO running Linux. Sometimes I deploy our executable to it within the project environment, and sometimes we copy a new executable through SCP or the web interface. In the latter case, the file ownership and sometimes permissions of some files get changed, and then when I want to deploy through the project environment, I get an error "LabVIEW:  File permission error. You do not have the correct permissions for the file." I can't figure out which file this is; I've already changed the ownership of everything within /home/lvuser/natinst/bin to lvuser.ni. Can anyone provide a complete list of file ownership and permissions required to deploy from within the LabVIEW project environment?

example code

$
0
0

 I want to take the output of two sensors such as tgs 823 and tgs 825  at the same time through single daq  usb 6210   so can you please provide an example code for this, i already determined the response curve for single sensor by connecting the output pin to ai8 ( and after that ai9) and ground to 28 pin of daq  but i dont  know how to take  continuous   output for two sensors at same time by using daqasst  

J'ai Besoin d'aide

$
0
0

J'ai un projet à faire et je suis bloqué.

Je dois fabriquer un robot contrôlable par LABVIEW et avec une carte ARDUINO ce qui est déjà fait. Je dois  piloter le robot par des Xbee pro donc sans fils. J'arrive à le faire avec l'application XCTU et les touches du clavier.Mon soucis est que je n'arrive pas à programmer LABVIEW pour qu'il puisse envoyer les commandes à l' ARDUINO à travers les Xbee.

Avez vous une solution à me proposer?

Merci


LabVIEW 2016 SP1 expected release date?

$
0
0

I could not find a better forum board for this question, so I rise it here. Just out of pure curiosity, what is the expected release date of service pack 1 for LV2016 (SP1)?

LV2013, LV2014, LV2015 got their service packs in the following year March (LV2012 got SP1 even earlier, in December 2012).

String in Array

$
0
0

Hi.

I want to convert a string into an array in my first loop and after the "Get Queue Status" function either in 1D or 2D, it does not matter.
I save data in a table to send them to a queue. The goal is to see this data displayed in real time in an array, the last 5 values only. That is to say that every second, a new value will be added in my array, but I want to see only the last 5 that were recorded. That's why I need to turn the string into a table.

If you know how to display a limited number of value, I am also taker of any ideas.

Write and Read data to file

$
0
0

I am working on creating an data file and I need it to save all data to an .text file and read from that .text file from the application folders position.

 

I got 3 numeric input and 3 numeric outputs.

How do I create one file and then read the file and split the data to the 3 numeric outputs.

Honeywell Experion DCS system and datasocket (dstp)

$
0
0

Hello

 

For a customer we need to set up datacommunication. The customer uses the Honeywell Experion DCS-system. Since the NI-OPC server doesn't support that device, is there another way of collecting/sending data to their system. 

 

Is there a possibility that another server (with support of the Experion DCS system) that will use the dstp?

 

I can use every suggestion!

 

Thanks!

Zooming screen

$
0
0

Hello everyone !

I have small display (19') , when I am opening big block diagram , me difficult orient in it.

How I can zoom screen ?

square wave graph with harmonics

$
0
0

Hi,

i'm Giorgio Massaro. I haven't yet learned well how to use labview, because i'm just a beginner. I wanna create a VI that plot on a graph square wave seeing all its harmonics too,where the harmonics can be changed from front panel.

 

If someone should help me, i really appreciate.

 

Thank you so much for helping me!!!

This is the waveform and its harmonics i'd like to see at the end of my VI.

Modbus Slave Serial Question

$
0
0

Hello everyone, so I have connected labview with plcs before so I understand the basic but have recently encountered a problem which hopefully you can input me. My plc is a Fatek FB's 20MAT2-AC internally the configuration for modbus RTU slave is as follows: Port 2, Parity: even, Data bits: 8, and Stop bit: 1 (attached image). So basically in my computer when I go to device manager I setup up the same parameters as shown before in Com2 (attached image). I create my I/O server in labview with the same parameters as shown before (attached Labview VI) and create the bound variables CommFail and 400001 because in my plc I move some data to R0 and from the Fatek plc manual the corresponding modbus slave address is R0-400001. When I run my VI the CommFail doesn't light up which tells me that communication with the plc is successful nevertheless 400001 is always at zero. If somebody can input me as to where I am making a mistake please do give me some input.


Graph using only a few elements of array

$
0
0

Hi,

I am in "for loop", have array of elements(ex: 10) and doing some calculations.

Now i want to generate graph using this array. I can do it for all elements.

But i want to draw graph of only from Row 2 to 8 elements.

How can i?

Frequency of digital pulse NI USB-6008 (rotational speed)

$
0
0

Hi,

 

First of all a slight disclaimer: I'm very much a beginner to LabVIEW, so please bear with me!

 

I'm currently trying to measure the rpm of a shaft using a digital optical sensor. I've connected it to my DAQ (NI USB-6008), and subsequently into LabVIEW (2014). So far I've tried a number of different methods based on what I've seen on these forums and general guesswork, but I don't really know what I'm doing and time is running out!

 

My question is: What is the best way of getting the rpm of the shaft? The most obvious way seems to be getting the frequency of the pulses from the sensor, but quite how to do that seems to be eluding me!

 

The closest I've got is by using the method described in this thread http://forums.ni.com/t5/LabVIEW/How-do-you-count-the-frequency-of-a-boolean-signal/m-p/1087995#M481408

However the frequency that I get is all over the place, and generally not accurate to what it should be (up to and over 5,000rpm)

 

Any help would be greatly appreciated (feel free to tell me if I'm being an idiot and missing something obvious!)

 

Thanks in advance!

Property Node for XNET Control

$
0
0

Hello,
I would like to safe/load the configuration of the XNET control. Unfortunately it seems to be not possible, because for example there is no property for the selected XNET database. Overall the XNET controls are very inflexible. How can I read out the inputs of the user? Does anyone knows a workaround?

import .so into myRio Labview

$
0
0

Helo, 

 

I create example library file  "math.so" for myRio LinuxRT.

 

source code :

 

int math(int a, int b)

{  return a+b;  }

 

Please, How can I import this file to myRio and use it in Labview code for adding two numbers?

My "Call library function" can import only "math.dll" file not "math.so" library.

 

Thank you for all your assistance

 

C:\emc\mysoft.exe fr ( read the arguments and options in the input console windows 7)?

$
0
0

Hi , 

At first I want to thank you for your effort to help people in this forum, really.

How i can read the arguments and options in the input console windows 7 , for exemple :

 

C:\labview\mysoft.exe fr (He launches with the French language)

C:\labview\mysoft.exe en (He launches with the english language)

?

or 

C:\labview\mysoft.vi fr (He launches with the French language)

C:\labview\mysoft.vi en (He launches with the english language)?

 

Viewing all 66676 articles
Browse latest View live