Intesnisty and Position input analyzed using Labview
I have a motorized actuator which I want to first move using labview and also get feedback on its position using a DAQ card (NI-PCI-MIO-16E-1). I have a lock in amplifier which basically gives me voltage information through a GPIB card that I have. Now I need to implement a VI which can simultaneously do the following:
1) move the motor in steps.
2) get position feedback from the motor
3) get data from the Lock in amplifier
4) Plot a graph of position on the X and Voltage intensity on the Y
Advice, suggestions, comments or questions ?
How are you controlling the motor? Are you using a motion card? If you're not using a motion card, what hardware do you have and how is it all set up? Position feedback can be obtained from the DAQ card and the voltage information can be obtained from the GPIB card pretty easily. The examples found in the example finder are great places to start in order to get those two aspects down. If you can get those acquired, plotting them is also pretty easy and there are examples on that as well. Your main challenge will be with the motor so any additional information would help.
-Zach
Certified LabVIEW Developer
Similar Messages
-
I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.
Naveen
Check out the info in the Analog Input section of the document linked below. (Ignore the part about Global Channels.) In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
Kyle B | Product Support Engineer | ni.com/support -
How to create and read text file using LabVIEW 7.1 PDA module?
How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
I attach my code here.
Attachments:
File_IO.vi 82 KBWell my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.
-
I Need some info about interfacing the PC or laptop to Spectrum analyzer using Labview
we need to control the spectrum analyzer using an interface that will be developed using Labview .
Spectrum analyzer will be connected to tha PC using RS 232C and the waveform observed will be seen in the PC interface of spectrum analyzer.
Pls send some info regarding dis.Using a spectrum analyzer with LabVIEW is a pretty common application, my first program 15 years ago did this. What we need to know to help you though is what model spectrum analyzer are you planning on using? Most of the ones I'm familiar with use the GPIB interface rather than RS232, but that isn't a major issue, the spectrum analyzers command set is the important one. There are a lot of LabVIEW drivers available for a larger number of analyzers, here on the National Instruments' site. Although most use the GPIB interface (or ethernet), they can be used as a starting point to develop an RS232 driver if one isn't available, assuming that there is a driver for the model that you have, or a closely related one (manufacturers frequently use similar command sets within a model type).
So, what type analyzer are you using, and what types of things are you planning on doing with it?
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
How do i open and control other programs using labview?
I'm presently trying to use labview to try to open and operate another program,but having much difficulty.The external program i'm using is called the Foundation program.
This Foundation program will use VHDL programming to create a virtual chip and then synthesising it.This program will then simulate the output of this VHDL program to verify that it is working as desired.Then the last stage is to download the whole VHDL program into a FPGA chip using a xilinx cable.
All this need to be done using a labview program - to open the Foundation program and then extract the saved file and then to execute the download command to cause the VHDL program to be downloaded onto the FPGA chip.How do i go
about doing all this?What is the first step i must do.Also all this have to be done thru networking..looks like its too difficult..I really need help.
graysI haven't done VHDL so pardon my ignorance.
LabVIEW can call external DLL via "Call Library Function" or C programs via "Code Interface Node", both located in "Advanced" function.
If your program is a DOS program, use "System Exec.vi" found in "Communication" function. If you need to format your DOS command prior to sending it, use the "Format Into String" function in "String" function palette.
Lastly, if you're trying to extract data, assuming it is text, use "File I/O" functions. If the data is binary, use "File I/O -> Binary File VIs".
Hope that answers most of your questions.
Shan Pin Koh -
I want to build a power quality monitor and analyzer using labview.
has anuone worked on this? has anyone got the codes of the same?
Hello,
I have uploaded the EPM 2011 here
http://www.sendspace.com/file/bseej3
Hope you find this useful.
-Avichal (C.L.A.D)
(AE, NI India) -
How to track position of motor using LabVIEW?
I have created a VI in LabVIEW that will allow me to control a motor to turn a certain number of degrees and then the motor will provide me with feedback on its final position. For example, I ask it to turn 180 degrees and it will output 180 degrees on the screen when it reaches its destination.
Is there a way to track the motion of the motor as it turns second by second? For example, at 1 second it is at 30 degrees and 2 seconds 75 degrees, etc. I would like to display this information in a chart/graph or table.
Any help would be greatly appreciated.You can try use chart and wire its input with the output of the motor and put the whole in a loop.
-
soft pulse width measurement
If you are creating a pulse in software somehow, then you can use Pulse Measurements.vi that's on the Analyze>Waveform Measurements palette. This will require that the input is of the waveform data type with signal and timing information. There's several timing functions on the time & Dialog palette that you could probably use. Check out Tick Count and Elapsed Time. If you could provide more details on what exactly you need to do, we could provide more help.
-
Programatic Generation and positioning of components using Drag and Drop
Hi,
I am relatively new to ADF and UI Designing. Im trying to generate a flowchart using drag and drop feature in ADF. This involves creation of dragging images such as start,decision .. etc from one panel to another and dynamically creating a flowchart.
Up to now i have managed to drag images from panel1 to panel2 and create them dynamically in the bean class. However im stuck at this point .. Im not able to position the draggable components on the desired position in the panelGroup. They either appear horizontally or vertically.
Is there any way to achieve this. Also is it possible to assign a dropTarget to a a target component which is created dynamically ?
Thanks in anticipation ....
LyleHi Lyle,
I am too only 4 months old to adf ,i use jdeveloper 10g.
In 10g for the components to be placed at desired locations i think is somewhat possible. While you can arrange them by using spaces which causes
f:verbatim tag to appear or you can use ADF Faces Core items like Object Spacer and Object Seperator where you can set their length and width to space objects on page...
Regards
Rohit -
How to copy the XY graph on labview front panel and insert into Excel using labview
Hi all,
The XY graph display on LV front panel after test. How can I copy this XY graph and insert into excel file?
Thank you very much for your help.
KhanhKPRO wrote:
Hi,
I refer to insert it into excel since report is in excel format, but if it's too hard to do so I can save it in another format.
Either way, will labview support this? Anyway, thank you very much for your quick reply.
Khanh
You are already using the Report Generation Toolkit? There is the "Append Control Image to Report.vi" that would make this easy.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Using DAQ generate a 38kHz on an analog output on and off for ms using labVIEW
I wish to generate a 38kHz pulse on an analog output of a mydaq to drive a infrared led. The 38kHz signal is not continuous but is on for 1ms and off for 1ms.
Hi pat,
you generate a waveform using 38kHz as sample rate and a rectangular shape of 1ms HIGH level and 1ms LOW level. Using some simple math you will notice you need 38 samples at 38Khz to output a value for 1ms…
Then you just output that waveform on a AO channel.
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Generating sound signal and record the timing using labview
Hi,
can somebody help me in generating audio o/p from daq 6036 and record the same signal for reference.Kanth,
I think you will find there are lots of topics already on the forums talking about trying to do this.
Here are a couple of examples:
Forum: Continuous audio output with varying volume or frequency
Forum: How do I get audio output from a labview program
Probably the easiest way is to search the forums for what you are looking for:
Search Results on forums.ni.com for 'audio' and 'output'
Finally, here is an example program that may also help you:
NI-DAQmx: Acquiring Audio and Transferring It to a PC Sound Card
Otis
Training and Certification
Product Support Engineer
National Instruments -
Hi all, I'm new to using the labview, and I have some trouble doing my project using the labview software.
I have been trying to use the spectrum analyzer (Anritsu MS2661C) which connect to computer using the GPIB connection.
I have got the instrument driver which can write and control the instrument using Labview 2010.
and my Question is how do read the data or result from the spectrum analyzer and send it to the microsoft excel?
Do I need to use other software or programming to do this step?
If anyone know how is this done, please let me know.
Regards,
EryHi ery,
In order to send data that you have read in from an instrument to Excel, the most convenient way to do this would be to use our Report Generation Toolkit. The Report Generation Toolkit is a very useful tool that allows you to interface to Microsoft Office software from LabVIEW, including Word and Excel. I am not sure if you are familiar with this, but I have attached a link that explains more about the Report Generation Toolkit below.
Another way would be to use the Write To Spreadsheet File VI. While this will store your data to a spreadsheet data file, it will not allow you to programmatically perform any Excel formatting like the Report Generation Toolkit offers. I have also attached a link to some information on the Write To Spreadsheet VI below.
Also, be sure to check out the Example Finder in LabVIEW for a number of examples on how to write data to a spreadsheet file. From LabVIEW, you can go to Help»Find Examples to launch the Example Finder. From there, you can search for "spreadsheet," which should populate examples for use in different applications. I hope this helps, ery. Please let me know if you have any further questions about these!
NI LabVIEW Report Generation Toolkit for Microsoft Office
Write To Spreadsheet File VI
Taylor G.
Product Support Engineer
National Instruments
www.ni.com/support -
Connecting Pumps to PC and Using LabView to collect the data
Hi There,
I am a beginner with LabView and I want to use LabView to collect data from a Pump using RS-232.
Could anybody help me where I need to start from?
I highly appreciate your help.
Regards
MoHello moizadi,
the best place to start is definitely the excellent Example Finder built in LabVIEW (Help menu -> Find Examples...). Switch to the Search tab and enter the keyword RS-232. This way you will find nicely documented examples for other common tasks as well. You will find further tutorials and more specific examples by searching for RS-232 or serial communication keywords on NI.com search.
If you have further questions, please feel free to ask!
Daniel -
Generating 0 and 1 signal using labview Daq card
Hello,
I’m working on a Project on the On/Off control of a pneumatic cylinder via a 5/2 solenoid valve.
On State: Valve O/P 1 pushes cylinder İ/P 1
Value O/P vents air.
Off State: Valve O/P 2 pushes cylinder İ/P 2
Value O/P 1 vents air.
By this way we aim to move the clinder forward and back.
We use Labview 9.0. I did not work on pneumatic system before,
I will be happy if you could help me about 2 points.
1) How can we enable the On/Off switching between the 2 O/P’s of the solenoid ?
2) How can we enable the timing between On and Off States. ( On: 0-5 seconds Off: 0-5 seconds )
Do we need special code for Standard labview blocks will be OK ?
Thanks a lot.The digital out are a great place to start, however they are signal lines which means they don't drive a lot of current (~1mA). If your device isn't setup to accept digital signals you may have to use an external transistor to step up your amperage. See the link on here to get started
Labview can provide all the timing you need. I would search through the shipping examples (Help >> Find Examples) for digital output examples, there should be a bunch and one will probably work for you with just a little modification.
Jesse Dennis
Design Engineer
Erdos Miller
Maybe you are looking for
-
How to create Source Systems in BI or RFC ??
Hi Gurus, I want to load data from an R/3 connection to BI. Now i have modified my Datasources in R/3 side. Question is how i connect R/3 to BI ? I will have to create RFC Connection , Yes ? I did following steps , so far, PLEASE LET ME KNOW WHAT ELS
-
How do I change my NAT settings?
WRT54GS router How do I change my NAT settings?
-
Plz help me my iphone battery is dull aftr ios7 update battery performance is now 50% less then before.otherwise tell me how to downgrade to 6.3 version
-
in the modulepool program for my custom infotype 9050, I have defined a field symbol like below in the top include. FIELD-SYMBOLS: <PNNNN> STRUCTURE P9050 DEFAULT P9050. still it is showing <PNNNN> is unkown. Seconldy, can anyo
-
Off cycle payroll run_error
Hello experts, error while trying to save offcycle payroll "employee/applicant not locked yet". how can i save it.. pls help. regards