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

Running a LabVIEW executable as a Windows service

$
0
0

It seems this comes up once a year, but I haven't found any current "How-to" for the following:

 

How do I run a LabVIEW executable as a Windows 7 (or Windows 10) service?

 

All I have are:

A page that no longer exists: 

http://members.cox.net/kuanchen/lvservice/index.html

A topic that has been archived, and doesn't appear to apply to Win7: 

http://digital.ni.com/public.nsf/allkb/21BA0F671A63A60386256CB4004DF99B

A paper that has been moved:

http://www.ni.com/white-paper/3185/en/

http://zone.ni.com/devzone/cda/tut/p/id/3185

And a service that costs $50:

FireDaemon

 

Any good (current) How-to's I can look at or knowledgeable people I can talk to? 


lvdaq.dll

$
0
0

I have an old LabVIEW program from a previous research student that will open with the PCI-MIO-16E-4 DAQ card. It worked before on an older computer. Now we are trying to open the program on a Windows 7 64-bit computer but there is a loading error.
"C:\Program Files\National Instruments\Labview 7.1\vi.lib\DAQ\vidaq.dll ". I do not know where to access this.

Array Data Manipulation

$
0
0

Hi,

 

I have a very basic data acquisition program. The program reads a sine wave for 1 second and stores the read values as an array containing 102400 elements.

The frequency of the wave is 50 Hz so 1 cycle is contained within 2048 elements. I want to write a program that evaluates the average value over 1 second or 50 cycles. Any idea how to do that?

I tried using for loop but it's now working for me. can any one help me out?

 

Best Regards,

Mubeen Haadi.

NI PXI 6289 card does not show up on the host pc

$
0
0

Hi.

I configured the pxi chassis 1042 with remote pc having winxp. In the max->remote system i cannot see pxi card 6289 so that i can run test panel and self test. Also the DAQAssistant is not visible in the lv2009 environment.

 

Host pc . winxp. Lv2009

Target . lv RT 9.0. Controller 8187

 

creating an array with dynamic size

$
0
0

I'm wondering how to do this in labview.I can't find a tutorial. If user enters a number lets say 7, then press a button then array with size of 7 is created . I tried with loop function but it didnt work

Cronometro

$
0
0

Como puedo hacer un cronometro  en labview que inicie a contar cuando reciba una señal de un botón de enclave,  utilizando arduino para hacer la interface. ¡¡¡Por favor necesito ayuda para realizar este programa!!!

Creating Cluster

$
0
0

Hello everyone. I have the following problem that needs solution. I need to create a Cluster with containing lets say 3 strings. From there i need to convert the data from the cluster to variant data and then display the data for all the strings in the following format StringName1_Value 1. I don't know if the whole point of this exercise is to extract the data from a specific string from the cluster or display them all at once. Its basically what my teacher gave me as a task. Check the attached image for better understanding.

labview communication with android

$
0
0
hello,How can I share labview vi with android devices?

How to Use The Driver Of Keithley 6517B?

$
0
0

Hi, I want to use the driver of Keithley 6517B to control the meter via the LabVIEW, but when I use one of the examples in the driver to measurement the voltage, the return value always be the same, no matter how I change the input voltage. I wonder if there are some necessary procedures that I don't konw.

thank you very much!00000.png

samples per second and numbers of samples

$
0
0

Hallo,

i have a question regarding the generate Signal command. I am using an NI USB 6000 to control an air pressure pump. When i set the number of samples per second and numbers of samples to 2000 the while loop takes 2 seconds, therefore the frequency decreases unintentionally to 1 Hz. But when i set both to 1000 i become the awaited result with a frequency of 2 Hz. Why does that happen that way?

Many thanks

Mohamed Azzam

Program scanning with and without shift registers.

$
0
0

Hello everyone.

 

I have attached two VIs. The functionality of both VIs is somewhat same, however, in the VI counter_edited.VI as I press the Boolean button, the counter register registers 255 in a single scan (unsigned byte). As far as I can think, it's because, in the single click of Boolean button, the program scans enough times to count 255 in the register. (I can rectify this using a time delay of 1 sec in the while loop) But, in another VI counter.VI, the signal to decision maker is fed through a comparison function. In this case, the counter counts 1 at a time with respect to the Boolean switch press.


Can I know why the difference in two VIs?

Thanks. 

Labview communicate with Arduino+XBEE

$
0
0

Hi everyone,
i want to send a signal from arduino to LabView via two xbee.. what is the best code for arduino and labview to have a good transmission and acquisition signal ??

Arduino UNO

$
0
0

Hello everyone,

 

In my research, I have to control 16 pumps and valves. Now I am using Arduino UNO R3 and relay. But in one Arduino UNO circuit, 16 pins are not available. So I decide to use 2 Arduino UNO R3 circuits and relay.  The problem is "How can in combine these two Arduino UNO circuit or how can I use two Arduino circuit together as the pin numbers (which I will use) are same in both Arduino circuit"

 

Thanks in advance. 

 

Missing DAQ Assistant input and output

IMC for PID

$
0
0

Hello everyone,

 

I have a second order system which i am controlling with a PID controller. My question is, how could i define IMC (Internal Model Control) parameters to control the system? I have seen there is an example but i don't understand how it works. Any ideas?


Controlling solenoid valves and pumps on a timed schedule

$
0
0

Hi, I'm new to labview and trying to find the best way to control my system.

 

There are 5 solenoid valves, 2 pumps and a stir plate which all have to be run every half hour in a strict sequence. It will run for 16 hours a day and the system will run for 3 or more months. I've been trying to use timed loops, but have seen a lot of stuff about state machines. Do state machines require user input every day? Or can I still use a state machine and have the code loop for me? 

 

Each of the pumps/valves will only turn on for a few seconds to maybe a minute before turning off again. Is there a way I can time a case structure or something so that the pump/valve is only turned on for a few seconds before turning off again? 

 

Any help is greatly appreciated (especially any screenshots of examples)!

Labview 2017 FULL Installation, Hardware Configuration, Ni-Daq

$
0
0

I was using a trial version of 2015 and then purchased and installed Labview 2017 Full from the downloads page.  At 98-99% complete, a dialog prompt asked for a location for hardware drivers as the installer could not find them (there was a text message in Red font).  I suspended the install and started a new install of Ni-Daq driver support intending to continue the main installation.   The Ni-Daq install started but asked that I complete the pending install, which I was forced to skip the previous request to install the Hardware support.   Upon completing the Ni-Daq install, I opened my project from a working build (source) folder and now have errors.   I am guessing I need to configure the missed step but could not find the "Configuration" section to point at the Hardware drivers.   Do I need to uninstall 2017 and try again or can I configure Labview now? 

Encoder signal acquisition using USB 9233

$
0
0

Hello All,

 

I need to measure angular position between encoder signal and sensor signal using quadrature encoder. I am using 9233 analog input module for counting encoder edges using attached vi. The attached vi counts the edges of encoder signal. Now I have to acquire one data point from simulate signal vi(considering this as my sensor signal)at each edge of encoder pulse how can I accomplish this.

 

Thank you very much for your assistance.

 

Re-initializing my array with reset button

$
0
0

Hi there, I am currently facing a problem of shifting my array's pointer back to the start. 

 

What I am trying to do here is to create a "RESET" button such that the user would be able to start the whole program all over without having to stop and run the program again. Everything is working as per normal such that my arrays are cleared, however when I clicked on "Start" again, the array displayed the old data again despite me re-initializing it to default. I am unsure what is happening here.

 

Below attached are the images of what is happening

1 - Start of program

2 - "Start" button is pressed three times. 

3 - "Reset" button is pressed

4 - "Start" button is pressed again.

(DO note that it is suppose to display only 1 set of data and not 4 sets of data here)

 

Any help is appreciated. 

CLD advice

$
0
0

Hi All,

 

I am looking to sit the CLD exam at the back end of this year. However, I am still not 100% sure what information is actually provided. From my understanding, the front panel and relevant controls are now given.. along with some useful code such as timing engines etc ?

 

I would be grateful if someone could confirm this for me. I am also trying to establish exactly what to focus my time on learning, so any tips here could be useful too.

 

YES, i have read through the material online already.

 

Thanks in advance,

Viewing all 69758 articles
Browse latest View live


Latest Images