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

.net in XControl

$
0
0

I'm doing a wrapper for .Net library.
Without X-control, everything works, here it is necessary to do the following:

net.png


There is a client and a widget.After the connection, you need to register a callback.
Such a scheme works.

I want to hide the ref in the X-control so that there are no .Net references outside .
I have a control on the front and I save the link in each cluster in the cluster:

facade.PNG

 


Connect maked as a separate method

connct.PNG


but when I call it, the link WFWidget is zero.
All other variables are successfully saved, but the link to the widget is lost.
How to save a link in Display State In cluster and use outside of facade?


Is Help Context for "LabVIEW Class:Open Method" Correct?

$
0
0

I'm working on something similar to the code discussed in this thread.

 

https://forums.ni.com/t5/LabVIEW/Getting-Packed-Project-Library-Build-Number/td-p/3221823

 

The solution discussed in the thread above returns the file version of a PPL (as created by the build specification that created the PPL) from a VI within the PPL.  I wanted to build on that solution to return the file version of a PPL based on a class contained within that PPL.  See the code below for implementation:

 

LVClassOpenMethod.png

 

The code works as intended, however, after reviewing the help for the invoke/property nodes used, I noticed that "LVClass.Open" and "Private Data Control" indicate that they are not "Available in Run-Time Engine".

 

Help 1.png
Help 2.png

Based on my tests, this doesn't appear to be accurate, as I have build this code into a PPL and called that PPL from an EXE without error (I've also had no problem calling this code from TestStand with the LabVIEW adapter configured to use the Run-Time Engine).  I'm using LabVIEW 2016, is the Help just out of date or should I expect this functionality to go away in the future?

 

Thanks,

 

Damien

 

Help with simple application using MCC USB-1608G and LabVIEW

$
0
0

I need help with what should be a very simple application. I need to take a total of 120 samples at 100 millisecond intervals. At 500 milliseconds, I need to generate a 500 millisecond, 1 kHz tone burst while continuing to collect samples. I have a vi that collects the samples and one that generates the tone burst using the "Signal Generator By Duration" vi, but I can't figure out which structure to use to marry the two together and maintain synchronization. I am using an MCC USB1608 USB DAQ unit, and that means I have to use their ULx library functions to talk to the hardware and collect the samples. Can anyone help me out? Thanks in advance!

Creating histograms for multiple channels of data from a single analog task

$
0
0

Hello again!

 

I am currently working on creating a data acquisition software for a mobile cart in a test lab. For our uses, I need to be able to accommodate a wide range and number of sensors based on the test we are performing. As such, I'm trying to create a software that adapts to the number of selected physical channels and separately graphs each type of input (Thermocouple, 0-10V, 4-20mA) on it's own histogram. I am able to correctly detect the number of selected channels and separate out the signals with the index array function. However, I cant seem to figure out how to plot multiple channels on a histogram for each data type. I'm attempting to use the 'build waveform' function, wiring each sensor to a Y value. (See images below for a simplified example of what I'm trying to do.) However, the output waveform seems to combine all the data into a single channel, rather than graphing each Y value as a separate channel. 

 

Is there a better way to graph data acquired from multiple analog sources? Am I just missing something that will allow me to graph multiple channels from multiple sources on a histogram? 

 

Thanks for reading!

 

Overview of inputs:

 1. 0-64 TC inputs on 4x 9214 modules

2. 0-32 10V inputs on a 9205

3. 0-8 20mA inputs on a 9203

Backplane is a cDAQ-9189

Software is LabVIEW 2017

 

Capture.JPGExample of how I am trying to create a waveform from data (5x TCs in this case)Capture2.JPGThe waveform created from the example. As we see, there is a single channel, rather than the 5 desired.

 

 

Active Plot Error 1077

$
0
0

Hi 

I am trying to do stabilization plots. I use a plot for each different point and therefore I can end up with many plots in the same graph. Everything works perfectly until the number of plots>4926. At this point, the error 1077 pops up. There's any reason behind this (like max number of plots?)  or it's just a problem in my code?

Thanks for your help.

Nested while loops issue

$
0
0

Hey guys,

I've got three while loops, 2 of which are in series, running in parallel with the third, all nested in another while loop. I want the first loop in series to run, then the second, while the third is continuously running. Then repeat. My issue comes in when trying to create a master stop button. I've had success in doing so when using an event structure paired up with notifiers, but that doesn't work for my needs because then the big loop just sits and waits for the event structure to execute. I've attached one VI with the program without any attempt of mine at a master stop, and then one with. Hopefully you guys can help me out as I feel like I've hit a bit of a wall. 

 

Here's a screenshot of my attempt as well: 2018-07-16 11_34_38-Example2.vi Block Diagram.png

 

 

Driving a Arduino Tinkerkit Braccio Robotic Arm with Labview using the Braccio servo shield

$
0
0

Hi Folks,

I’ve been gifted a Tinkerkit Braccio Arduino Robotic Arm. (As sold by RS Components)

https://uk.rs-online.com/web/p/processor-microcontroller-development-kits/1113738/

 

I’ve learnt enough Arduino to drive the arm in its native tongue but I’ve set myself the challenge of driving it with Labview.

Using the Labview Interface for Arduino toolkit I can communicate with the Arduino uno and drive the servos directly through the board.

However the original kit comes with a Braccio servo shield which I would like to utilise. The problem is I’m unsure how to incorporate and address this shield or even if it’s possible.  

I have tried the manufacture but to no avail and I was hoping someone here might here might be able to help.

Regards

Getting error 'LabVIEW: Resource not found.' lvanlys.dll , when an executable is run

$
0
0

Getting the error in the subject line, when an executable is run on a run-time only system.  There  are also errors of the type "An error occurred loading VI 'Find Min Reactance rev5.vi'..  There are also some messages about missing external function.  This is a rather large project that I am making changes to.  It was developed under a previous version of LabVIEW (V15).  It is now being used with V17.  The application runs fine on the development system.  It may just be my inexperience.

 

Thanks for any help.

 

Regards,

 

Colin


Netowork Stream Error Code

$
0
0

Hi Everyone,

 

I have an issue running an RT program on my cRIO 9012. I have been network streaming information from the rio to the computer for a while now, however I had to restart my computer and I am now getting an Error code coming out of the "Create Network Stream Writer Endpoint". The error is -314000. " Labview cannot load the ni_nwstreams library. If you are using a desktop computer, you might need to repair your labview installation or reinstall Labview or the Labview real time engine. 

 

The problem is I have been using network streams just 20 minutes ago and now it is telling me I need to reinstall LabView. Anybody seen this error before? 

 

Setup:

 

-cRIO 9012

-NI Module NI9802

-Labview 2017

 

Thanks for your help.

Analog out offset 5Vpp square wave FPGA USB-7855R

$
0
0

I'm using a USB-7855R with a SCB-68  to handle analog signals. 

I'm having trouble finding an example where all of the wire types/data are compatible with this system in the LabVIEW help files. My problem seems like it should have a simple fix. 

 

My goal: Generate a 5 Vpp square wave with a 2.5V offset so the signal goes from 0 to 5V. I'm attempting to use the Square Wave Generator VI. It seems that it will not allow me to put in a decimal number for the amplitude which my understanding is that this is due to the data type; however, I've been running into problems where certain wiring and data types are not compatible with this FPGA system. 

 

Two questions: (1) Can someone help me generate my desired analog output signal? (2) Is there a way to set up my code such that I can control the frequency in units of Hz and have the conversion to periods/tick done for me that is compatible with this FPGA system? Code is attached. Thank you. 

 

How to write HEX values in Visa write in Labview NXG?

$
0
0

I need to send HEX values to an instrument.  In the VISA test panel I can send \AA and send the hex values.  I have tried to send them in NXG but it always converts them to ASCI characters.  I have searched and for older versions of labview there is an option (right click) to select the string as HEX, but I can't find this option (right click) in NGX.  

 

I need to send AA 55 00 020801 F4 to the serial port.

 

 

linx Raspberry pi connection

$
0
0

I'm very new to Labview. I thought I would start out with a project on my Raspberry Pi 3b+.  When I go to Tools/Makerhub/Linx/Linx Target Configuration and type in {192.168.4.131, raspberrypi and the password}, I get "Device interrogation failed: Unable to connect to the target".  I've rebooted my computer and PI but no change.  I can ping test in either direction.  My computer is running win7 and my Labview is 2014.  Any advise to help me connect?

Compact RIO AI Not Working

$
0
0

Hi Guys,

 

I have an analog input module connected to my cRIO. I am trying to get several analog inputs networked streamed from the RIO to my computer but all that is coming through is 0's. I attached some pictures to help you guys understand my position,. Is there anything I need to do before I can you the analog Input module with the cRIO. I listed my setup below for you guys. Thanks!

 

Setup:

LabVIEW 2017

LabVIEW FPGA and Real Time Engine

cRIO 9012

 

Tuning PID - Temperature

$
0
0

Hi all i've been woking on a temperature PID controller in order to cool/thermal box a through a fan(controls air flow of a compressor) and a peltier element

Before the actual control my box drives off unwanted moisture and volatiles( "inicio" and "defrost" process)

 

the peltier element has a fixed power within a temperature range

from -10 up to 0 ---- 2.4V .

From 0 up to 35 --- 5.5V

and above 35 degress --- 8V

 

i recorded temperature deviation on manual mode setting  99% PWM output at a 445ms per sample . Afterwards i removed the offset data and i used PID tuning . Allthough it's identified a first order model ,PID gains are so low compared to what it has to be. why?

 

 

comunicación serial RS232 usando 3 Puertos

$
0
0

Hola amigos. 

estoy en un nuevo proyecto en la cual tengo que leer datos de 3 equipos por el puerto serial.

ya he logrado hacerlo con 1  siguiendo los ejemplos del foro.

me pueden ayudar con ejemplo que incluya el uso de 3 puerto, adjunto lo que tengo.

gracias.


Real time data acquisition slows down the entire program and misses data points

$
0
0

Hello Everyone !! I am using the attached program to gain two different inputs. Based on the inputs I generate 5 V signals. I also need to acquire data at certain times. The problem is that as soon as I turn on Write to Measurement File using a Boolean Operator, the program becomes really slow and it misses a lot of lot points while writing it.

 

Is there any alternate way of writing it? How can I avoid missing the data points?

 

Kindly Guide!

 

Thank you!

 

 

How to save front panel only interest area to be PDF file with full size A4?

$
0
0

Dear All,

How to save front panel only interest area to be PDF file with full size A4?

The picture of interest area as the attached file.

 

 

Best Regards,

Nirut

How to display number of samples received.

$
0
0

Hi,

So want to display how many samples I have read. I have seen in some discussions that i should use "DAQmx read property node" but where exactly should i place it in my VI. Also I want to stop my code after acquiring exactly 675 samples. How should i do it? Attached is my receiver vi.

erreur de Timeout liaison série rs232

$
0
0

Bonjour, 

 

Au cours de mon stage je dois réaliser avec labview un Vi me permettant de communiquer avec une carte CPGIC.

J'y arrive plutôt bien mais j'ai une erreur de timeout: Lorsque que j’exécute le vi, que j'alimente ma carte tout se passe bien, la communication se fait correctement et je récupère bien les données de la carte. Mais j'ai une erreur de timeout (L'erreur -1073807339 s'est produite à : VISA Read dans regroupement.vi) qui s'affiche et cela dès que la lecture sur la carte se termine. Je suis donc obligé de cliquer sur continuer pour faire en sorte que je puisse écrire sur la carte.

J'ai vu différents solution sur le forum mais malheureusement aucun n'a résolu mon problème. 

(un screen de mon vi est en piece jointe)

 

Si quelqu'un voit une possible solution, je suis preneur.

 

Bonne journée a vous 

While Loops, chain of events and Value updating

$
0
0

Hello you people much smarter than me, 

I am currently working on a project where a system is controlled by receiving strings via RS232. The system is going to control some stepper motors, with a varying angle of movement. 

 

I made myself a little GUI with LabVIEW for ease of use, but I am now presented with a minor issue (not even a bug). I have a dial to set the step angle and then a button to select the direction. The buttons trigger an event change within a while loop, the step angle is "coming in from the outside". The issue is now that whenever I change the angle, the new value is not transmitted on the next move, but the one after that. While this is supposed to happen as the loop runs only if I have an event change, it is still annoying because you always have to think one step ahead. 

 

Is there a way to change this, or am I maybe missing a simple thing how this is to be mended?

I am a relative beginner/ occasional user of LabVIEW btw. 

I attached my VI (LabVIEW '18) if you want to have a look yourselves. 

 

Thanks, 

Ivo

Viewing all 66657 articles
Browse latest View live


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