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

Software triggering 4497 with 6674T

$
0
0

Hello everyone,

I'm having truoble triggering 7x4497 cards using the software trigger option in NI sync. According to the 4497 specifications, this card can either be trigged through the pf0 input on the front or the PXITrig<0..6> on the backplane. I have laborated with many configuration and I can't get it work, I have even tried to send the software trigger to 6674T pf1 and route the pf1 to pf0 of the 6674T and from there Trig0, I Can se on the osciloscope that the trig signal i coming through the pf1 but the 4497 don't start :-(. I also read some where that for DSA cards one should use DAQ mx reference trigger instead of start trigger, but that works only for finite acquisition :'(. So what am I doing wrong. I have sent a snipet just to give you an overview on how I have configured my system, so don't complain that it is not working ;-).  


Audible clicks using NI 9260

$
0
0

Ok, Not sure where to post this as I'm unsure if it's hardware or software, but I'm going with software for now.

 

I am using an NI 9260 to generate various acoustic test signals.  However at the beginning and end of each signal there is an audible pop.  After a little hunting round I came across this post which describes and on the face of it solves my problem.

https://forums.ni.com/t5/LabVIEW/Audible-clicks-in-noise-generation-acquisition-vi/m-p/1555188#M573607

I have been using LabView off and on for almost a decade now and still rely on the DAQmx Express VI's (sorry Coq_Rouge).

The problem I am running into now, trying to move away from the express vi is when the sequence gets to the "DAQmx Wait Until Done.vi".

If I match the duration of the test signal to the number of samples in the 'Create Task' section I get the following error.Error1.PNG

If I make the duration of the test signal shorter I get.

 

Error2.PNG

 

The VI's I have attached are intended to work in the following way.

Speaker driver.vi - This is what I started with and was producing the pops.  After reading the above thread I decided to try and split the Express VI into three sections, the initialisation and shutdown of the NI 9260 module was moved into Test sequence.vi.

 

Test sequence.vi just passes a list of filter midband frequencies into the speaker driver(2).vi, but now I am also trying to get it to initialise the NI 9260 so that in theory I only get the pop at the beginning and end of the sequence rather than between each signal, if the pop is due to the NI 9260 switching on and off.

Tips and Tricks for Front Panel

$
0
0

Hi All.

 

Just completed my very first LV Application and one issue that I have seen is to understand what guidelines there could be for designing a Front panel

my confusion or I need help to understand the following

(1) My applications as small applications that control specific parts therefore I have only a small number of controls and indicators on a Front Panel my issue is to judge the size of the panel example full screen  looks bad as you search for the few controls and indicators ,may be it is better to set the Front panel to maximum ,I dont know these things and are looking for help .

(2) should the developer first assign the size to a Panel and then place the controls etc.or place the controls and increase the size as it progress?

(3) Where is the 0,0 origin of the Front panel,it seams that if you double click a control in the Block diagram to high light it in the Front panel the origin of the Front panel move as well ,not sure about this but it looked that way a few times with me .

If you guys can help me with some documents or whitepapers that describes a basic procedure for creating Front panels I would be very happy .I found some papers on the NI web that shows how to set the Vi properties for size and Run time position etc ,which helped me mo create my first executable running on another machine however 

The panel can be a much more improved .

 

Regards 

QMESAR

 

 

How to encrease operation speed when measure with Keithley 6430

$
0
0

I need to use a Keithley 6430 as current source and voltage measurement device. 

It is connected by RS232 with

  • 9600 baud rate,
  • 8 data bits,
  • 1 stop bits,
  • none parity

I need to continuously change the DC current and measure voltage by 4 point method. The picture below shows Keithley 6430 code. I send command to wait 5 ms before after changing current value. I  measure voltage several time for each current value (small loop on the second picture) and out put arithmetic mean.

 

For 2 current values and 10 voltage measuments the program spend about 30 s. I think it is too long.In future I should do measure voltega for 100 current values at least.

 

Could you please help me to understand how encrease operation speed of the program?

 

11.png2.png3.png

 

 

How to separate,displace,integrate and aplicate the FFT of the data obtained from the mpu6050 (Arduino). Using LINX

$
0
0

Hello Everyone!!!!, I'm making a project to measure vibrations of a system with Arduino + the accelerometer MPU6050 + LabVIEW + the library LINX.

 

I new using Labview, but I achieve to do this program with a tutorial :

 

CAPTURE.png

If I Run the program give me this output: 

capture7.png

All seems to be excellent, but I want to improve several things : 

1) Separate the different accelerations: I want that the acceleration of Z to be in one graph, the acceleration of Y in other, and the acceleration of X in other. How can I do this? 

 

2) Elimite the offset of the gravity: Once that the graph of Z will be alone I want to move the graph to 0 since I will be using the sensor in a unique position. 

 

3) Integrate the accelerations: I was thinking that to do this I can use the function "Time domain math" to obtain the velocity but I was reading about this, and on some websites it says that do this process can result in some accumulative errors like drift, but I see too that this can be fixable, it is true? , Can someone give me an idea of how do this?  or the unique thing that I need to do is use the function "Time domain math" ? 

 

4) Use the FFT to every graph: Can give some help with this? , maybe some tutorial to do it? 

 

Labview - WebService - Using the same vi for Login and checking email + password

$
0
0

I have a method of using a vi as Login and another one as a Check_pass, but I want to be able to use just one vi that does all the work. Just like any other page that requires an email and pass, I want an error message to be shown on the same page, that's why I'd rather have a vi that handles everything on its own.

ADO270.CHM Error for mySQL Database

$
0
0

Hello Everyone

 

I am facing some issue while opening database connection using OLE DB as well as in ODBC  also

Currently i am using Labview 64 bit version and using ADO functions (ActiveX Function) i am getting following error. Check Attachment

Error -2146824582 occurred at Exception occured in ADODB.Connection: Provider cannot be found. It may not be properly installed.Help Path is C:\WINDOWS\HELP\ADO270.CHM and context 1240655 in AUTOMATION 64BIT.vi

 

Any link to similar kind task or tutorial for study are most welcome.

Thanks.

 

Encryption using Fast Fourier Transform

$
0
0

Greetings to the NI community

 

I am to transmit an encrypted text file and receive the decrypted text file using USRP 2932. I am a student beginner to the LabVIEW. I found a paper on the FFT encryption of a text file which can be found attached. I am struggling with its understanding as it does not contain copious documentation of the VI's. It is a humble request out there to kindly help me explain the Encryption and Decryption VI's. I am attaching the SC of the VI's also. I know it's a shot in the dark but i would really appreciate any help.

 

Thanks and regards


"Intelligent" unique array

$
0
0

Hello,

 

I have several arrays (grouped inside a cluster) with two columns : header is in the first column, value in the second column.

Capture d’écran 2018-05-20 à 18.36.04.png

 

I want to have an array with only unique headers, and values.

 

Capture d’écran 2018-05-20 à 18.38.49.png

 

I manage to have unique headers, but the problem is unique data. I've attached the VI. I think the problem may come from "insert into array" which I believe cannot insert on a row that doesn't exists yet?! Can you help me?

 

 

 

 

 

Discrete digital input time stamp/compressed digital waveform

$
0
0

I would like to timestamp changes on my digital inputs using change detection and store that to a file.  I know I can just sample the inputs, but my 6281 card is already running analog input tasks at a lower rate than I need for the timestamp resolution for the digital inputs.

 

My current thought is to create a timing source tied to the port change detection then use that to drive a timed loop (LabVIEW RT) which would timestamp and store those to a structure via a RT fifo.  Does that sound like a reasonable thing to do?

 

On a related note, is there a common structure that is used for storing digital data?  I know and have used the digital waveform structure, but that isn’t compressed (dt based, not discrete timestamp based).

 

Thanks,

 

xl600

Find control reference and change color

$
0
0

Hi,

I want to find control reference by label and later change it's color. The thing is I can't. I would love to know:

- why?

- how can I get reference which will allow me to do that?

How to convert from 16 bit integer to 1D array of double

$
0
0

I try to know the mean of a signal, to know its offset and later substract it , And I try to make this program

capture 11.png

The important part is: 

capture 13.png

 

I that way I can indicate the mean later that I stop it. But how you can see I have a incompability problem that says: 

 

capture 12.png

 

How I can do this conversion? 

How to adjust the scale of a waveform chart

$
0
0

I'm new using labview, and I try to understand several post about this topic but I'm don't understand it so well. I have this three graphs that I receive from a sensor:

 

 

capture 16.png

I would like that every graph has zero in the middle and that the new values taken by the sensor appear in the middle of the graph, since these appear generally in the end and are more difficult and late to observe. This data are dynamic, so I don't know how I can set up this parameters. 

 

And the other hand the graph Y are in reverse order!! , how I can fixed that? 

 

Let me know if I'm not clear. 

IMAQ write to string function

$
0
0

Hi community,

 

I'm working on an optical coherence tomography system with frame grabber in it. The frame grabber directly grab picture of coherence pattern, while I need the continuous measured coherence signal to do FFT, so I used "IMAQ write to String" function to get information of every pixel in the image. However, there are 2 problems:

1. In  "IMAQ write to String" function, 4 types image format are available: bmp, jpeg, png and tiff. However in my case, only png and tiff works well. When I choose bmp or jpeg, the output string always returns 0. I'm quite wondering what caused this bug and how to fix it.

2. My frame grabber got image with bitdepth of 12 bits (which means bytes per pixel=2), however, in Labview there is no function for converting string into U16 array (only "string to U8 array"). So how can I convert the output string to U16 array to get the value of each pixel in the image?

 

Attached is my case. I've tried different version of LabVIEW (2012 & 2015) but the bugs are still there. My frame grabber is from BitFlow Co. (type: NEON-PCE-CLB). 

Look forward to your ideas!

 

Sincerely,

Ning

Southeast University,

Nanjing,China, 210096

Configure DAQ Buffer Size

$
0
0

Hi all,

I built a simple test program to change the DAQmx buffer size. While testing it using the DAQ simulator, I noticed that the buffer size somehow changed the acquired data. I expected them to be similar, but they are not. The program and the test results are attached, please let me know what did I do incorrectly here.

 

Thank you very much. 


Need Support on How to Capture a Consumer related (for Ex: TV, DVD, Audio Systems etc.) Remote Control data and which LabvIew Tool can be used?

$
0
0

Hi,

 

I am new or i can say beginner of Labview and I want to use it for data capturing of a Consumer device Remote Control. Can any one please suggest which tool can be used and direct me to get reliable output.

 

Thanks,

Santosh

Can't find my 9401

$
0
0

Hello everybody.

 

I'm trying to read the frequency of one signal with the module 9401 but I cannot find it in the DAQassistant. I do think I have all the software installed. The cRIO I use is connected to the computer by ethernet. Did I forget installing one driver? Has the ethernet anything to do with it?

 

I'm lost after following all the guides and help files I found about. Thank you very much in advance.

Closing the Front panel

$
0
0

Hi All,

I am having an issue when my executable start it is running fine when the stop button is pressed then the Vi stop however it seam like the debug page that opens ,I have checked under build specification >> advanced that the Allow debugging is not checked and also in the Vi Properties I have now unchecked allow debugging,

How can I close the Front Panel when the stopped button is pressed ( I know it is preferred to use the X as in widows  however on my level the button is fine for now )

 

Normal Running VI(App)

 

a.jpg

Stopped Vi(App)

b.jpg

 

All help pointer and critics are appreciated 

QMESAR

Thermal Control Simulation VI?

$
0
0

Hi

Does any one have a copy of the VI for the project below?

It is a Thermal Control Simulation exercise that was part of a Labview Hands-on seminar. 

Any help would be much appreciated.

Kind Regards

Fergal

 

 

Thermal Control Simulation Block Diagram.jpgThermal Control Simulation Front Panel.jpgSeminar Title.jpg

Set USB 3.0 Camera attributes problems

$
0
0

Hi!

I'm trying to configure a new web camera (USB 3.0).

Everything goes well till I'm trying to configure some attributes through LabView.

The problem is that it says it can't set some specific attributes, but when I'm using NI-MAX I can change these attributes(!), and when I'm using the camera SDK it says that these attributes are write-able!

Other attributes as 'ExposureTime' I'm able to set...

So what am I doing wrong?

 

Some specific details:

Camera: Flir Blackfly-s

Attributes: PixelFormat, BinningHorizontal, BinningVertical and some more...

 

This is my first post here, if I'm missing any details I would love to add them, just let me know [:

Thanks!

Barak

Viewing all 69291 articles
Browse latest View live


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