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

RPM measurement using Counter Errors Timeout/Lag

$
0
0

Hi all,

 

so I'm trying to read a motor's rpm using the Counter from a NI DAQ Device (USB 6212). It works...as long as the motor is switched on before running the VI. From other solutions I've seen I've managed to cancel the relevant error and output a zero. However this causes a huge slow-down (possibly due to the timeout but I'm not sure; the timeout was originally unwired), which is bad because this vi is placed within a sub vi where other data acquisition is taking place so it causes the entire sub VI to lag.

 

Also, when the VI is running, and the motor is switched off halfway, it outputs a zero (which is ok and correct), but when the motor is switched back on, the Read keeps outputting the zero and error -200474 even though it's cleared every time it happens.

 

I would like to be able to:

 

1) When the programme runs before the motor is switched on, it shows zero and shows the rpm when the motor is switched on again (right now it will only show the rpm when the motor is on before the running the vi)

2) When the motor is switched off and on again while the vi is running, the indicator changes accordingly without lagging.

3) Both the above are possible programmatically without further user input (i.e no Boolean switch on the user part to indicate if motor is on or off)

 

Other troubleshooting steps I've tried:

- Duplicate Count Prevention set to True but the resulting RPM values are false and ever-increasing

- I tried reading Available Samples per Channel so that Read will only occur after a certain value but didn't go anywhere because I keep getting the error -200455: You cannot get the specified property, because the task is not an input buffered task (I'm not sure how to set the buffer)

 

Could someone point me in the right direction? Because I can't guarantee that the motor is switched on before the vi starts. Thank you.


Better architecture for a Vision application 80% generic (all customers) and 20% specific (one customer)

$
0
0

Hi all

 

We are a small vision company that develop dedicated Vision inspection systems for our customers. These systems are installed on production lines and inspect 100% or products.

The main HMI of this application is always the same (way of displaying images, showing current logged user, functionning mode, managing parameters, etc...) which represents around 80% of the code.

Using a dedicated set of parameters we can customize number of cameras used for instance and a lot of other things, but the image processing algorithm (and sometimes the way we communicate with the PLC) is always dedicated to a specific system.

For now, in the code, we simply use PPL to store all the algorithms (1 PPL for 1 specific algorithm) and the call to either one or another PPL is done in the main application using "Conditionnal Disable Structure"...

Obvisouly, the code is growing all the time and is more and more difficult to maintain.

Have you got any suggestions of base architecture to do it better?

 

Thanks for your help

 

Lionel

Can I get some standard train library for labview?

$
0
0

I basically need more realistic looking blocks. I am attaching a a picture of the same.

CANopen Fetch from Data

$
0
0

I have dragged this subvi Fetch from Data  of CANopen.

But i got the problem with "One or more polymorphic instances have a connector pane that is incompatible with the connector panes of other instances."

How can i solve it?

How do I delete a name from a list of names by pressing "delete" button?

$
0
0

I tried different methods, arrays but couldn't figure out to delete a name from a list by pressing the button.I have a picture of the VI I am delopping From left to right (1st page of event structure and 2nd page of event structure where I will have the delete option and I also attached the VI itself.  

Can you please help me? So basically I want to be able to delete a name from the list of names on the front panel.

first page of event structure.PNG2nd page of event structure.PNG

Printing front panel of calling VI

$
0
0

A problem came up where the calling VI front panel gets printed.  A subVI that contains a graph has the checkbox set to print front panel when closing and that works fine, I get a printout of the graph.  The calling VI does not have that checkbox set.  The computer is running a .exe file, using LV2015 with Win10.  After running for several days correctly, it just suddenly started printing the front panel of the calling VI in addition to printing the front panel of the subVI.  Why?  The program ran correctly for several years on an identical computer, using LV2015 with Win10, but running source code, not an .exe file.  Rebooting and restarting the .exe file seems to have solved the problem for now, but I am wondering if the problem will show up again?

Zero phase filtering

$
0
0

Hello everyone , 

I'm trying to filter a signal with the VI Zero phase using a normalized set of reverse and forward coefficient that I already calculated using Matlab , but I'm getting Nan as Outputs. 

I already checked my inputs to be sure not to have any Nan in it. 

The zero phase VI seems to work well with other set of coefficients.

 

How do I execute one last structure in case a LabView throws an error?

$
0
0

Hello,

I am writing a LabVIEW-Script to operate a high intensity laser. For safety reasons, I included an "Abort"-button that shuts the laser down in an emergency.

Now I encoutered the problem that if LabVIEW throws an error dialog, I have no control over the laser while the dialog box is opened, which could be potentially dangerous.

I am aware that the best solution to this is to simply don't let any errors happen, but I can't guarantee for that.

Does anyone know how I could send an instruction to the laser to shut in case a LabVIEW-dialog is opened?

 

Thanks in advance,

Kind regards,

Marco


Motor Odometer reading decreases instead of increasing

$
0
0

Hello! I have a motor Odometer reading decreasing when turned opposite direction, which I do NOT want to happen. Anyone know how program a reading to increase instead of decreasing regardless of the direction of the motor?

 

Thanks for any help

Multirate Diagram on NXG 3.1

$
0
0

Hello, I am dealing with this problem for some time. Had Labview Communication System Design 2.0 and I had been working with Multirate Diagrams. Recently upgraded it with NXG 3.1 and now I'm having dependency failures with old .gmrd diagrams. Unfortunately, I could not find which package or addon is missing. Somehow recapturing dependencies gives no clue about whats missing. Results are attached here. I appreciate any kind of help.

 

Soffia

Can you use FIFOs from PC host in LabVIEW 2017 over the network to a 2016 based sbRIO device?

$
0
0

Hi, I need to keep an sbRIO device on LabVIEW 2016 base software and am planning to pull data from it in a PC host application, but want to use 2017 since our other software is already all in 2017.  Is this possible and supported?  Can anyone confirm this?  THanks...

Simple Start Analog Edge trigger doesn't work

$
0
0

I'm trying to get a super simple analog edge trigger example to work.  I've set up the DAQmx task the same as shipping examples and lots of posts I've seen.  I'm supplying a nice clean DC voltage to a 9205 card using a high quality HP variable power supply.  Using NI-MAX, I've verified that my 9174 chassis & 9205 are working properly.

 

THE PROBLEM - When I run it, the vi just sails right through to the end, with no error, and an empty data array out.  No matter WHAT crazy voltage I give the "DAQmx Trigger.vi" (set up for Start Analog Edge), it never waits for the trigger to be satisfied, just breezes on through as if it weren't there.  If I set the Sample Clock for "Finite Samples", the DAQmx Read fails with timeout - makes sense, since the trigger wasn't satisfied.  What could I possibly be doing wrong with such a simple task???????

 

much thanks for any suggestion, paul

 

 

Labview + Excel FPGA

$
0
0

Good afternoon, I am performing a measurement of a small 12v solar plate, I am using the cRIO 9066, with the module NI 9238. With that, I want to acquire every 5 minutes and save this data in excel, I managed to do this in VI loose, but when I put the VI inside CompactRIO it doesn't allow compiling, how can I collect this FPGA data and play in excel?

find RFID tag frequency

$
0
0

Hello my friends

i am working on several standard of RFID Readers and tags .recently i have found RFID tag that i don't know it's Frequency and i can not find it . i have tested several RFID reader frequencies but i no one can read it. 

how can i find this RFID tag frequency??? 

NI Python Host not closing

$
0
0

I'm working on a project using Python in LabVIEW 2019 through the Python Node. The problem that I have is after the Python session is closed the NI Python Host process stays open and continues to use resources (viewing this in Windows 10 Resource Monitor). So over time more and more NI Python Hosts are running and the computer gets overloaded. I can force close them but would rather find out why it's happening. Is this something that is happening to anyone else using the Python Node or do I have a problem in my Python code that keeps it open?


DAQ newbie help on graphing

$
0
0

Hello all,

 

I am quite new to DAQs and programming in general, but my project is not very complicated in scope, so I hope to be able to do this with some help.This is more of how to use LabVIEW question, not an application specific question.

 

I am using a sample template program provided by LabVIEW: "Continuous Measurement and Logging (NI-DAQ)", and looking for a way for this program to show a graph value going from 850 to 1200 when it reads 0 to 10 V from a source.

 

Quite simply, 0v = 850 BTU and 10v = 1200 BTU, so each 1V is in 35 BTU steps.

 

I have the NI DAQ USB-6000 ordered so I can't play around with it plugged in yet, but looking to prep the program up a little to get going when it arrives.

 

Thank you so much for your help and I hope I provided a good enough context to be clear.

 

 

 

 

measurement from load cell with NI-6009

$
0
0

i have a small s type load cell with following specification

capacity = 50 kg

output senstivity = 2 mv/v at F.S

voltage excitation = 5-15 volt

when i connect this with ni6009 and open daq assitant, here i am confused, my question is:

how much input and output voltage should be ranged

i am also confused in RSE and Differential, i dont have basic knowledge about this

i need final data in force unit like kg/m2 or N/mm2

thanks in advance

Reentrancy selection

$
0
0

Hi all,

For LabVIEW 2015 32bit, i have two same sub VI's(AVG TEMP.vi) running simultaneously for which reentrancy is selected as non-reentrant execution. My understanding of non-reentrant execution is labview allocates single data space in memory for all instances. In this case, both vi's executing simultaneously; will it affect vi's output data? should i make it shared clone or preallocated clone reentrant execution.

 

The AVG TEMP.vi is running on FPGA target

 

Thank you

serial port read and write : executing link establish once

$
0
0

hi, 

I am reading and writing to  a serial port of pc.

objective is to 

1- continuously poll or read the port until i get a specific combination of 6 bytes HEX

2- if the said combination is true write a specific 6 byte frame so that host can know that link is established (this should execute once i guess).

3- again poll for next combination of frame of HEX byte so that i can send a profile say sine wave to host pc(serial port )  upon his request and to 6229 PCI card in target pc so that it can also generate predefined counts to a stepper motor.

  • at the same time i should poll to read next request to generate triangular wave and send it to host pc on same serial port and 6229 card (installed in target) to generate a set of pulses to move some degree for stepper motor.

4- is it possible to do all above in real-time with desktop pc

5- can we read counter pulses using digital in channel which are being out from CTR0 channel

 

regards,

reading counter out pulses using Digital in or Analog in channels in the same card

$
0
0

is it possible to read the pulses which are out from the counter out of the same card 6229 using AI or DI channels which is best option.

Actually i am generating pulses on counter 1 CTR0 and CTR1 of 6229 to a stepper motor. because i dont have option to read present pulse to motor so i would like to read the same pulses on another channel (AI or DI) of the same card,

thanks

Viewing all 66789 articles
Browse latest View live


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