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

Sound and Vibration toolkit for vibration analysis

$
0
0

Hi guys! I am new to Labview. I am trying to use Sound and Vibration toolkit to analyse the accelerometer signal mounted on a motor through myRio. The analysis are spectral map, order tracking, power spectrum, order spectrum etc. But nothing can be seen from the output graph. The only result I get is from vibration level.

 

Attached is a screen shot of my vi and actual vi file. Am I doing it correctly? I really need your help guys....

 

Thanks.

Sound and Vibration vi.png


Hydraulic Cylinder force regulation PID CompactRIO

$
0
0

Hello I am a beginner student from Europe.

 

I would like to create a force regulation in LabView. There is a hydraulic cylinder with a load cell in the end of the rod.

I would like to create a simple PID regulation in LabView, I mean I type the force value in LabView, for example: 10kN and I load up the program to the NI9237 CompactRIO. Afterthat somehow, the analog output signal from crio go to the proportional hydraulic pressure relief. The cylinder create the force, the load cell measure it and send the analog output signal back to the crio. I hope you can understand me.

 

The load cell can receive tension signal

I need also a pressure relief what can receive tension signal

 

My question, is it possible ,what  i would like to do? I do not understand, how can become the force signal to -10 - +10 V signal?

 

Thanks a lot!

 

Computer Vision - Detect More Than One Straight Edge with Best Edge Rake?

$
0
0

Hello,

 

I am trying to use the Vision Assistant Advanced Straight Edge tool to detect rails on railroad tracks. Since I am predominantly looking for edges that extend the length of the image, I feel that using the edge rake tool is a good choice since it looks for edge matches all along the image. I have a question however, if I want to detect more than one rail at a time (more than one edge), how do I do this? The rake tool only offers first and best options meaning that the Straight Edges Requested dialogue is forced to one when I need this to be two (two rails). Does anyone know how to change this?

 

 

Drivers for Calin Instrument

$
0
0

Does anyone knows a driver for Calin Instrument Transformer Analyzer Model 2000C ? 

Invalid notifier references

$
0
0

This ranks in my top two for oddest behaviour encountered in LV. The other one's also relevant, more on which later.

 

I have a medium/large application which relies heavily on queues and notifiers for inter-process communications. I also rely heavily on notifiers for internal loop control: Obtain a notifier with a Boolean data type, then in one branch carry out an action, sending a notifier when it's complete; parallel to this, collect data in a while loop and stop when the notifier status is true.

 

For instance, here's some dummy code:

inv-notifier.png

 

For simplicity's sake, I've left out any other code, but suffice to say that the collect data subVI contains Wait On Notifier (with a reasonable timeout) returning data from another process.

 

Seems like a legit approach. But imagine my surprise when, after several hours of tracing odd results in my code, I found that the notifier primitves weren't executing properly, and that the reference returned from Obtain Notifier was an invalid refnum! Restarting LabVIEW had no effect; restarting the PC had no effect. I even tried generating unique notifier name strings from a random number, on the off chance it was an unclosed reference to a named notifier. No error is generated by the Obtain Notifier VI telling you that it's returned an invalid refnum, subsequent nodes don't error, and the notifier VIs don't register with Desktop Execution Trace Toolkit when this happens.

 

This happened in several states which contain a similar architecture. Bizarrely, the only thing that seemed to solve it was replacing the notifier structure with a fresh set of queue and/or notifier VIs.

 

This odd behaviour struck me as similar to something I've seen with Timed Loops, as I am pretty sure that I will have created a block of code with these notifiers in one state, then copied and pasted into another state when required. If you have a VI containing a timed loop, and you copy and paste that timed loop within the same VI, occasionally you'll find that one or more of the Timed Loops don't run at all, even if they have different names. I can never remember whether I used to see an error or not - memory suggests I didn't, the KB suggests I should have - but it was definitely linked to the copy/paste process.

 

There's an old CAR on force destroyed notifiers causing similar problems, but as these are all independent notifiers which are most definitely not called anywhere else, I don't think it's relevant.

 

So, does this ring a bell with anyone else?

Daq Assistant

$
0
0

Hello,

 

I am using a NI 9219 and the Daq Assistant function in Labview to acquire a voltage mesurement. I posted the code below. How can I acquire the voltage data value and the time separately without tracing it in a waveform graph. I wish to write the data and the time into a text file.

 

Can someone help me please?

 

Capture.PNG

vision acquisition error 2147023898

$
0
0

I'm working with a usb3.0 camera to and labview vision acquisition.
I just want to have a simple live image.

in the configuration the image is shown and everything works fine, but when a finish this and run the vi i get an error.

Error -2147023898 and is undefined in labview.

Could someone help me with this problem

in the attacement 2 images show the error and the working configuration

 

 

“in port” and “out port” VIs are not in the functions palette!

$
0
0

Hi,

I am using LabVIEW 2012 on a Win 7 64 bit. I want to read a digital input (3.5V) using PC parallel port. I also read this white paper:

http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB

I searched all the functions palette for “in port” and “out port” VIs but I could not find them. Apparently they are not supported in 64bit OS. What are my alternatives for reading digital input via PC parallel port?

Thanks.


Can not set camera ROI in Max

$
0
0

I do have an IDS camera connected where I need to set the ROI. If I open the MAX I can see the option for the ROI but I can not set it. Why not?

If I am using the .NET driver from IDS in LabView I can set the ROI but with the problem that I have a picturebox as output and not a Imaq-image for further image processing.

 

What I need is a Imaq-image which a specific ROI which I can use for further image processing. The ROI needs to be set in the camera (not inside LabView) due to higher FPS!

 

Could someone suggest me a solution?

 

 

 

Thanks in advance!

Removing TCP hex codes from ascii string

$
0
0

I have a TCP connection to my VI and I'm using PuTTY to communicate with it. It is a basic terminal with a few commands. On boot my first command is always unrecognized because a few TCP protocol's are sent immediately beforehand:

Untitled.pngUntitled2.png


FF FB 1F “window size” FF FB 20 “terminal speed” FF FB 18 “terminal type” FF FB 27 “Telnet Environment Option” FF FD 01 “echo” FF FB 03 “suppress go ahead” FF FD 03 “suppress go ahead”

Each command is always proceeded by a command character "FF". I can remove the entire offending sting without any problem, however what I've been trying to do is remove any hex code following the command character. I have tried a few things with regular expressions without much luck. Any insight on how to solve this challenge would be appreciated!

Thanks,

Devin 

read a basedata from access 2003

$
0
0

hi guys i need a little help for reading a database from access 2003 in labview 2014blk.pngblk.png

Oculus rift and LabVIEW

$
0
0

For those interested, I posted a project document at https://decibel.ni.com/content/docs/DOC-42169 that shows an example of the use of the Oculus Rift DK2 and of the Microsoft Kinect with LabVIEW.

 

The main issue I see is that it is probably not possible (as far as I can know) to compensate for is the lens distortion compensations when using the Labview 3D tools. And if you don't use the 3D tools, there is no point in using Labview though. However, I found out that this application was less "uncomfortable" to use than several other Oculus Rift applications I tried. For one reason, the Virtual world is completely unreal, so the brain does not bother about the comparison. Another reason is that the lenses in the Headset produce a clear image only in the center of the eye. The peripheral image has less impact than expected. Finally, I suspect that some of the pin cusion compensations are not properly done and in that case no compensation is probably better. The chromatic aberration is very obvious as well..

 

I would be very interested by any feedback

 

 

NI 9269 + cRio: sine generation

$
0
0

Hi folks.

I want to generate a sine with variable frequency and amplitude.

I am working with a cRio 9033, a tension output module NI 9269 and labview 14 in Scan Interface mode, therefore I can not use the DAQ Assistant .

I tried to use the Simulate Signal, but after 5 Hz and any amplitude the output signal is not correct.

Does anyone can show me how to do it? Thanks

 

 

mathscript repmat

$
0
0

Hi!

 

I was trying to do matrix*vector element-wise multiplication in Mathscript node but it seems it doesn't work. (In Matlab does)

 

If it is not possible to do it, I should then repeat the vector to have the same number of rows as the matrix, but I don't know how to do that either. Could anyone tell me the equivalent of "repmat" (Matlab) in Mathscript node? To make a vector= 1, 2, 3 into a matrix = 1, 2 , 3; 1, 2 ,3 ; 1, 2, 3; ...

 

Thanks!

 

Gabriel

 

 

LabVIEW 2014 f1 Patch not installing?

$
0
0

Hi, Everybody --

 

I started up our lab computer this morning and got an NI Update box, asking if I'd like to install the LabVIEW 2014 f1 Patch.  I said "Sure!" and away the downloader went.  It finished downloading, the files were extracted, and the installer started.  It almost immediately displayed a message saying that LabVIEW 2014 had to be installed before the patch could be run.  The problem is that LabVIEW 2014 is installed on this computer (LabVIEW 2014 SP1).  I've tried installing the patch through the NI Updater three times now, getting the same result.  I also went to C:\Program Data\National instruments\Update Service\Installers\NI_20150427_1031 (the last time I tried it) and tried the setup.exe from that folder.  No luck.

 

I have screenshots of the messages from both the NI Updater and Setup.exe attempts, and a screenshot of the About LabVIEW display if any of them would help.

 

Any idea as to why the patch isn't installing?

 

Thanks for your time!

 

Mark


XNET DBC Enums

$
0
0

I'm going to guess the answer is no but does anyone know if there is any straightforward or at least workable way to maintain some form of signal enum values from a DBC file when working with XNET instead of just logging the numerical value of a signal, the best I can figure is parsing the DBC and writing the value enums as channel properties in my TDMS log.

 

- Will

Node inside loop - Out of memory

$
0
0

Hi everyone,

 

I have a Mathscript node inside a subVI that is called inside a for loop. After some iterations of the loop I run out of memory. Therefore I added another Mathcript node with the "clear" function outside the subVI, hoping that after I get the variables from the node I could clear the memory of the Mathscript, but it doesn't work, it still runs out of memory.  Does someone know how can one remove variables from Mathscript node from memory, once they have been saved in the Labview variables? Thanks in advance.

 

memory.png

 

 

Input String to Case Structure always goes to default

$
0
0

I have a 16 digit serial data stream which I am parsing to obtain the annuncator/units "81 = kg cm, 82 = Lb inch and 83 = N cm" using the string subset. This string is then passed to the case structure. When the serial string is read the default case is always used. The string that is being read is 41810000000001 with a start word before and an end word behind the string. I have attached my vi. When I use the prob to debug the value is " ". Is the string being parsed correctly? I must be missing something. Thank you.

digital pulse generation with NI 9263

$
0
0

I am trying to generate a square pulse with an NI 9263.  I am testing latching solenoids, and need a fairly accurate amplitude and pulsewidth.  I tried with the VI in the picture.  My goal is 32ms +/-1ms.  This VI produced a pulse anywhere from 25.5ms to 36ms.  I passed the same waveform into a DAQ assistant and it was 32.2ms every time, but the size of the VI tripled.  How can I achieve the same results using the LV primatives?

VI works in IDE, not after being built

$
0
0

 

 

This is going to be a little long, but I'm not sure I have a choice. I'm using Mark Yedinak's SNMP v1 driver in LV2014 32-bit to talk to a Dell G756N rack mounted power distribution unit (think fancy power strip). My code works just fine in the IDE, but causes the program to freeze after I have built it into an executable. I have no idea what is wrong. I built a simpler example VI intending to have an easy example project (Classy Talker.vi in the SNMP Talk project) of where the VI breaks down, but it seems to work even after being built into an .exe. I built the InitializePDU.vi (the one that works) in the SNMP Talk project by dragging the innards of the problem vi (InitializeEquipment.vi in the Dell Power Supply Testing project, this one doesn't work after being built), so they should be identical.

 

Using logs, I've been able to track which one is the problem vi. It's the Get snmp Item(s).vi in Mark's snmp communication.llb. Here is a picture of where it fails according to my LVLog.txt file:

Fail issue.PNG

 

To recap:

In the Dell Power Supply Testing project

The Data Collection Quick Shot.vi under "Main" calls Initialize All Equipment Data-Clock.vi. The Initialize All Equipment Data-Clock.vi is responsible for reading the Equipment Config.xml file and presenting the user with choices of equipment to use with the program. The .vi then uses a factory pattern to initialize chosen equipment. 5 of the equipment types work, but the Power Distribution Unit will not complete verification after being built into an executable (this is event 10, "PDU Verifiy), but works fine in the IDE. Using logs, the probelm occurs after the class is cast to the specific class in the InitializeEquipment.vi found under "Hardware\Power Distribution Unit\DellG756N\" when it call Mark Yedinak's Get snmp Item(s).vi from his snmp communications.llb.

 

The SNMP Talk project was created to be similar to the problem areas of the Dell Power Supply Testing project. I was hoping it would be a simpler example so that I could get help, but to my suprise it works just fine even after being built into an executable.

The Classy Talker.vi casts the GenericPDU class to the DellG756N class, and uses the InitializePDU.vi which is the equivalent to the problem vi InitializeEquipment.vi in the Dell Power Supply Testing project. It then just reads the manufacturer and part number from the supply, which is also done in the same manner as the InitializePDU.vi.

 

Any help on why one built executable work and the other does not would be really appreciated.

 

Thanks,
Simon

 

P.S. I couldn't power the Power Supply Testing project here because it is 54MB, so here is a link to it in my dropbox:

https://dl.dropboxusercontent.com/u/10871313/Power%20Supply%20Testing.zip

 

Viewing all 66860 articles
Browse latest View live


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