Quantcast
Viewing all 66935 articles
Browse latest View live

Bandpass Filter "Ringing"

We are using a 4th order Bessel bandpass filter on a signal where we want to measure the level of a 4800Hz signal and suppress any other noise. The low F cutoff is 4500Hz and the high F cutoff is 5100Hz. The sampling frequency is 400,000 samples/sec (which I think is overkill but that's another issue). 

We are testing the presence of a shield on a photodetector by putting the shielded photodetector in a small aluminum enclosure. We energize the enclosure with a 4800Hz sine wave, or turn the sine wave off and measure the background noise level. We then subtract the background value from the 4800Hz "on" value.  We use the RMS value of both signals.

We have an analog 4th order bandpass on an earlier design that does this very well but a new tester design moves the filter into LabView. In the presence of a strong 4800Hz input the Labview filter works fine and gives us a stable signal after a delay. However when the 4800Hz signal on the chamber is off, i.e. the background measurement, we are seeing 'ringing' in the output array of the filter instead of a zero or near zero output. The ringing seems to be excited by transients in the input signal. I input a repetitive 100us pulse instead of the 4800Hz sine wave and the ringing rises and falls following the pulse, with a short delay as expected. This causes out background measurement to be incorrect, or in the case of a very well shielded photodetector, both the background and active signal are unstable so we can't extract a meaningful RMS value. We added a lowpass filter before the bandpass to reduce the high frequency noise and it helped a little but did not eliminate the ringing.

We've also reduced the order of the bandpass filter to 2nd order and it's a little better, but still not the equivalent of the 4th order analog filter which is very stable even in the presence of a lot of external noise. 

One thing we don't understand is the INIT/CONT option on the filter VI. We're not sure from the help file how it should be used in our situation. The help file says "The first time this VI runs or if init/cont is FALSE, LabVIEW initializes the internal states to 0." What internal states? A buffer with all zeroes versus "the final states from the previous call to this instance of this VI when init/cont is true."  The ringing changes a bit depending on whether this is true or false, but not in any meaningful way.

Our process is to capture a few 10s of milliseconds (several hundred 4800Hz cycles worth) with the signal off, measure the RMS value of the output array, then do the same with the signal on, again getting the RMS value. We then execute other tests, then repeat the process with the next photodetector. Since the amplitude of the bandpass output is not stable, we are not getting consistent RMS values and not matching the results with the analog filter. Not at all sure what the RMS measurement VI is doing with an unstable output array. I'll attach some graphical output tomorrow.


2D picture stacking

Hi, I currently have a 2D image I can can capture with the SNAP.vi and effectively turn it into a 2d array of grey scale intensities. How would I stack a large number of these arrays to create a 3D intensity array that can be graphed with a contour plot or 3d surface graph. I'm really new to Labview and cant seem to get a good grasp of making this. Thanks in advance!

how to build an Boolean array?

I've a Boolean in a while loop which is alternating "true, false, true, false… ". How can write them into an Array like "1, 0, 1, 0…"? Thanks.

print front panel

Hello!

I need to print the front panel when the user press a boolean button "Print" , the front panel contains text and graphs

Please any idea how to do this 

Thank you in advance 

give a label to plots

Hello!

I have a multiplots XY graph and I want to give a label to each plot, the labels names are in the first row of the 2D array, the first column corresponds to X axis values, You will find attached an example of what i want to do.

Please any idea how to do this ? which property nodes I shall use ? 

Thank you in advance  

vibration signal

Hi, I have a problem about vibration signal in LabVIEW.

I have a series of vibration signal(data), and I use these two icons in the picture below, trying to convert my vibration signal into samples in revolution.

I suppose it will be about 170 revolutions and 3341 samples/per revolution, but finally I get about 170 revolution and 192 samples/per revolution.

I have no idea how to fix it or I misunderstand the meaning of these two icons.

Can anyone help me?!

Calibrate DMM PXI-4065

Hello,

i was looking for a way to calibrate my DMM, i find this doc www.ni.com/pdf/manuals/374460d.pdf they use Fluke 5700A, but i don't have it, can I calibrate my DMM using only LabView?

Thank you guys Image may be NSFW.
Clik here to view.
Smiley Happy

International monospaced font?

I'm from the US, and for years, Courier New has been my go-to monospace font if I need multi-line strings to align, or fixed-width strings to exactly fill a control/indicator (e.g. console-style indicators, or hexadecimal controls/indicators).

 

I maintain a LabVIEW program that uses Courier New in some places for the reasons above. Recently, I demo'd the program in Japan, and was surprised to see Courier New, the font I know and love, is entirely different in Japan: spaces are not the same width as characters, and the entire font is larger (despite the same font-size setting).

 

How can the same exact font look so different between countries?

How do you deal with these international discrepancies?

How can I work around this?

Is there a standardized monospaced font I can use instead?


Exécuter une commande sur un autre logiciel

Bonjour à toutes/tous,

 

Mon problème consiste à exécuter une commande sur un autre fichier en cours d'exécution depuis LabVIEW : j'arrive à ouvrir le logiciel (acquisition d'image) avec LabVIEW  et j'aimerais pourvoir exécuter de manière automatique avec LabView un raccourci clavier (Ctrl+I, qui permet de capturer l'image) sur la fenêtre de ce logiciel. Est-ce possible ? et si oui, comment faire ?

 

 

Merci par avance !

Difference between NI myDAQ and NI 9184 chassis

Hello, i have used a platform to acquire current and voltage of a PV cell and vary gate-source  voltage to sweep across the I-V curve  using a NI myDAQ. Now i am using the same platform but this time i have a NI 9184 chassis with modules NI 9205 and NI 9923 to acquire the current and voltage and NI 9263 to vary the gate-source voltage. Is there anything additional that i should do with the chassis because i am not getting the values as in the first one and i am not able to sweep?

Please help.
Thank you

GPIB Receive with Unknown Mode or Count

I am talking to a serial device using GPIB Send and Receive.  My problem is that I never know the last character or the length of the data being read.  The last character is based on a checksum, which is calculated based on the response.  But since I don't know the response ahead of time, I can't calculate the checksum.  And so, I never know how many bytes the response will be.  Therefore, I can't tell the Receive function to terminate.  I can set both my mode and count to 256, and I read the proper response, but I always get an error on GPIB Receive, which stops my process.  Does anyone know how I can get around this?  I would appreciate any help.  Thanks.

Create and Application executable

Hello,

 

I have a LabVIEW program written by someone else that I want to create an application executable for.

I have created a .exe before of a simple LabVIEW program written to read from/write to PLC via ethernet Modbus; but this was written as a GUI for windows PC, no external RIO, etc.

This program that someone else wrote is for a RIO that has RT and FPGA. There is a "Build Specifications" under my computer which has option for new "Application (exe)" which I assume is the one but there is no VI to add for building. If I have to create a VI how do I go about it so that the executable will run RIO from host Front Panel on PC running Windows (has to include host VI and FPGA VIs (some sub VIs as well)).

There is also a "Build Specifications" under FPGA Target; and there is a "Build Specifications" under NI-sbRIO-9627-... with option of new "Real-Time Application".

 

Thank you

Send double type using ZeroMQ

Dear all,

I would like to ask about the ZeroMQ library. I am currently using it to transfer numbers as a "string" type but I can't find how to send it as integer or double. Since there is a huge amount of data in my application, using double data type would speed it up rapidly.

 

I could find only the solution for c++ here but no examples for LabVIEW.

 

 

IMAQ HOG feature vector

 

Image may be NSFW.
Clik here to view.
HOG feature vector.png
A quick question about the HOG feature vector output. 

I used the default 9 bin. I set the Grid Size to be 50 X 50, and the result vector size is 22500. The image size is 250 X 250. 

I have a hard time to understand the structure of the feature vector? If I want map the feature vector to the image, how to parse the gigantic array?

what does the 'Grid Size' refer to? The cell size to calculate histogram of gradient? 

LabVIEW Driver for Chemyx OEM Syringe not working

When I run the basic and advanced examples from this. I get an error: 

Image may be NSFW.
Clik here to view.
Error message.png

I am using the correct baud rate (38400) and port because I am able to connect with it through their start/stop vis. It looks like the first error is coming from the "Get status" function right before the case structure there. It is giving me error code 85 which is originating from the extract_value_from_string vi. I'm not sure how this program works so I was hoping someone here would be able to help me troubleshoot this example and get it working.


Combo Box Typedef does not Auto-Update

I have a combo box typedef that I place around on my diagrams that I'd like to update frequently. However, it doesn't auto-update - I add new items to the typedef, "apply changes" and save and the typedefs in my diagrams don't Auto-Update. Tried strict types as well. Using LabVIEW 2016. This old thread doesn't help:

 

https://forums.ni.com/t5/LabVIEW/combo-box-auto-updating/td-p/250457

 

Hoping something new has been developed/fixed in the last decade.

Adding Time to DAQ Assistant data output

I am currently collecting thermocouple data from DAQ Assistant, and am using the 'write delimited spreadsheet' block to output this data to a csv file.  The data has 16 columns (for 16 different thermocouples).  I want to add a column to this output file for time.  I have my project set up to get time from the 'get date/time in seconds' block, and to format it the way I want with 'Format Date/Time String' block.  The issues start when I try to insert this into the data array.  Even when trying to write the string values for time to the 'write delimited spreadsheet block' by itself without the thermocouple data doesn't work.  Any advice would be appreciated. 

 

I've attached the following snippets:

 

-Thermocouple Data Export: exporting thermocouple data by itself.  This works fine

-Attempted Time Export: attempt to export time data.  Does not work, even though format for output is set to %s

-Attempted merge of Time and Data:  attempted to add time as a column to the thermocouple data, after converting thermocouple data to a string.  This did not work.  (Note: converting the thermocouple data to a string by itself and exporting just like the first snippet, but with a %s, worked fine).

 

 

Front panel print does not fit page

I am updating an old software (was originally written is LabVIEW 5.1) that prints several front panels of VI’s to the default printer.  Each front panel print properties is set to print at the end of execution

 

Checked are

Automatically print front panel every time VI completes execution

Scale printed front Panel to fit page.

 

With the default printer being a pdf printer, the user has to enter a file name for each front panel being printed.  Each pdf file contains the front panel image of the corresponding vi.   The prints are acceptable.

 

I am trying to have all the front panels print into one pdf file (the user enters only one file name).  I am using the report generation VI’s.

Attached is an example vi showing what I am doing.

The final prints in each page are clipped and do not appear to be scaled to fit the page.

 

The question is how to make the front panel prints fit the page

Is it possible to control a case structure by the boolean output itself?

I have built a case structure and I use the boolean output to control itself. Is it possible?

How to set the sample rate of NI 9224 to high speed mode

Hello,everyone!Ihave a NI 9224,its maximum sample rate is 1KHz,and NI cRIO 9031.Then how to make NI 9224 run in the sample rate of 1KHz.The following picture is what I have did,but its sample the is about 2Hz,the actual looptime is 412317microsecond.What can I do  to get the maximum sample rate of NI 9224.I am really in great need of your help!Thank you!


 

Image may be NSFW.
Clik here to view.
d9bca709c2c6bffc20f116a9a716d4b.png

Image may be NSFW.
Clik here to view.
23cb85757e4d212268db79cd1347ef5.png
 

 

Viewing all 66935 articles
Browse latest View live


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