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

Reading data from a website through labview

$
0
0

For example, I have a website where I have a temperature and humidity that are variable, how can I read this data with labview? I have no idea. Bellow it is a screenshot with the website. I use Labview 2011.

temp_ip.png


CLAD Exam

$
0
0

Hi

     Dear all i am preparing for clad exam. is any one has recent CLAD question paper kindly share me. your help will lead me closer to my objectives.

Thanks You all.

Can I generate of sin wave with multiple frequencies

$
0
0

Dear All,
I am new in LABVIEW and I want to know that can I make a sin or triangle wave of multiple frequencies. I attached the signal diagram that I want and if can I make that waveform then how I can make. Please help me make that type of wave by using LABVIEW coding.
Thanks

System Exec.vi

$
0
0

 

Please help. Thank you in advance.

 

Hardware: Win7 64bit, AVRISP2

Software: LV2018, Atmel Studio 7, ATbackend, ATprogram.exe

 

Facts:

-Using DOS Prompt Command > WORKS.

-VI in Win10 >> WORKS.

-VI in Win7 64bit >> ERROR.

-Tried using BAT file > Same results.

 

[ERROR] An unexpected error occurred when executing.
Traceback (most recent call last):
File "atmel\atprogram.py", line 48, in run
File "atmel\avr\cli\commandline.py", line 54, in execute_commands
File "atmel\avr\cli\commandexecutor.py", line 52, in execute_commands
File "atmel\avr\cli\resourcemanager.py", line 44, in prepare_resources
File "atmel\avr\cli\resourcemanager.py", line 51, in _prepare_resource
File "atmel\avr\cli\resourcecontainers.py", line 54, in allocate
File "atmel\avr\cli\backend.py", line 134, in start
File "subprocess.py", line 702, in __init__
File "subprocess.py", line 823, in _get_handles

WindowsError: [Error 6] The handle is invalid

 

AVRList.png

 

 

 

 

 

AVRList.pngAVRList.png

Multiple USB-6001

$
0
0

I am being asked to do a project that someone has determined needs four USB-6001 DAQ devices. Can four USB-6001 devices be used at the same time?  

ActiveX Calls Wrong Internet Explorer Version

$
0
0

LabVIEW 2018 64-bit Windows 10

 

I have been prototyping and attempting to find and example related to logging into a website and then automating a few form entries. The website uses cookies and redirects a few times so my unsuccessful attempts led me to use an ActiveX container with a WebBrowser but it seems to be calling an instance of IE7 even though I have IE11 on the machine. 

 

Has any of you ever ran into this? I have been asking uncle Google and am unable to articulate the question properly I suppose and am hoping that the community has some direction. Many thanks in advance!

 

 

Winston

NI-MAX, DIO cards, NI Configuration Manager service and latest Windows update

$
0
0

Has anyone had issues with NI-MAX today?  Our site had a big Windows update that affected many (every?  i have no idea how widespread this is, but could be company-wide) test stations that NI Services running on them.

 

Seems the service that NI-MAX relies on is blocked from starting, and even when it does start, NI-MAX can no longer communicate with DIO cards.  it can't even identify them, even though they seem to be just fine in Device Manager.

 

Please note that these are Win7 machines running LV 2012.  I'll get more info and tack it on as I find it.

 

Thanks for any response!

3D Plot: What's wrong with inverted Axes? And 3D Surface Plot: Why is z transposed for vector?

$
0
0

Hi there problem solvers

 

I'm working on 3D plots here and have two of those damn things. The first is that I would like to have the X and Y axes of the plots inverted. Which looks like it works just fine... until you change the scale range in the graph. To me it seems like a bug, but maybe it's just me doing something wrong. Could someone test and verify?

The other is that I don't understand why the surface plot is transposed when switching from the matrix to the vector instance of the plot helper. Could anyone explain this to me?

 

Cheers

Mike


SCC-AI03, can I use this module to measure current?

$
0
0

I have a couple SCC-AI03 module that read voltages but I have some pressure transducers that have current readings, will it be possible to use the SCC-AI03 to read current values?

 

Thank you,

Global Variable

$
0
0

Hello. I am very new to labview and am working on a project that involves tracking data. I have a login screen that, when the correct password is entered, opens a new VI. I have a global variable that records information about the user login and is placed in a table. It works fine transferring from one VI to the next, but the problem is that when the program is closed and reopened, the table resets itself to have nothing in it. I was wondering if there was a way to keep the global variable data so that each time I open the program I am still able to view the data. I will post the two VI's below for reference. Password for Connor = 111, each name after that is 222, 333, 444, 555, and 666. (Open the username and password VI first)

Save data every few seconds in a control and simulation loop

$
0
0

Hello everyone,


I am running a control simulation where I created a sub VI to write the data to the file. However, the total data that I receive is extremely large (for a 10 second run time I get around 20000 data points) and hence I thought of saving the data at every few seconds.
So far, the only solution I can think of is using the while loop. But, any use of a while loop inside the sub VI is making the code get stuck there which results in the main VI not working.
I thought of the producer/consumer loop but am not sure if it would be applicable to the simulation loop. I cannot think of any other way to introduce a timing function or a way to reduce the data in a simulation running continuously.

I'd really appreciate some guidance in approaching this problem.

 

Thank You!

 

How to programmatically change the y-scale names of a multi scale waveform chart

$
0
0

Hey guys,

 

I am currently working on a project for school where i have to create a multi functional data acquisition application which should be able to take in data from various DAQmx devices. This community has been a great help so far getting the application working but i am currently struggling with a simple issue where i am unable to programmatically change the scales names of my waveform chart to the desired quantity.

 

Because of this issue i have to manually change the scales names of the waveform chart to the appropriate quantity from the properties menu before stating the application.

 

I have uploaded the simplified version of the VI i am currently using where i am able to programmatically change the scale name label of one scale via the waveform chart property node

 

Any help on this will be greatly appropriated.

 

Best regards,

Jonathan

 

 

 

 

 

Custom V.I based server question

$
0
0

Hi,

I need to use the DSC module to create a periodic I/O server. I have designed a working V.I to use as my server V.I. I have read that there are some do's and dont's when creating a server V.I with regards to certain functions. I found this page on the N.I website

 

 http://zone.ni.com/reference/en-XX/help/371618K-01/lvdscconcepts/dsc_perioioserv/

 

The following bullet point from the above page has me concerned about my V.I -

 

"Make sure the VI does not contain any Event Structures or user interface interaction."

 

I have a "display message to user" function in my V.I which requires an "OK" button to be pressed. Will this be an issue? Is this what could be called a "user interface interaction?.

 

This message is used in my server V.I to pause the V.I until the "OK" button is pressed.

If this is an issue is it possible to create a shared variable for it so I can access it from another V.I in my project library ?

 

Thanks in advance.

 

 

 

VBAI crashes during inspection of large .avi file

$
0
0

I am having trouble inspecting a file. I implemented different steps including finding an edge in a region of interest and measuring the distance to a defined point. In the beginning the procedure works, but after a while the program crashes. I used VBAI to inspect a large .avi file (high image rate. highspeed camera used to make .avi video).

I tried cutting the video with a video-editing software, but after editing the video VBAI wouldn't accept the .avi file.

Any suggestions?

Thank you!

HELP!!! I have struggled for way too long.

$
0
0

I have created my main VI and everything is working. I now want to make the terminal connections on this VI so it can be used in other VIs. I want to create a test VI that would basically let me test that all the terminals are working as expected. To that end, I started that process by configuring 2 terminals. The strange thing that happens is the name assigned to the terminal by LV is not the label, but the caption. I am using both of them.

 

I then create a new VI and add the main VI to the block panel and add 2 controls to the new VI front panel wiring them to the main VI as I did so. . I then run the VI. No errors occur. But nothing happens either, except that the main VI is running. I double-click on the icon and make changes to the controls on the main VI front panel and that still works. Whenever I change a control on the new VI, it never propagates to the main VI. I even stuck a probe on both wires in the new VI, but they just say "Not executed". Then I figure I need an event structure for the controls, so I add that to the new VI, encapsulating everything in a while loop. That causes the main VI to never run when the new VI starts. So I went back to the original state, but still nothing.

 

I suspect there is some detail or setting that I just don't know about that is causing my pain. Since I did create several VIs that provided calls to a dll in the main VI, I thought I knew how to create and use VIs, but apparently not. It would seem to me that I have everything constructed correctly or I would be getting errors, but since I am not getting any data transferred to the main VI, I think it might have something to do with why LV choose the caption and not the label when I created the terminal. I know that everything is based on the label name because I discovered that you cannot change the label while the VI is running.

 

So if you can help me get this working I would be very grateful. Thanks.


Generate 2 sine waves, different period, same # of samples

$
0
0

LabVIEW 2015 (backward compatibility for older Windows OS).

USB-6212 DAQ (using both analog out channels)

 

I have a VI that monitors a number of inputs, and so far has been generating a single sine wave on AO0.

Now I have to update it to generate a sine wave on AO0 and a second sine wave on AO1.

I am using the DAQMx Write VI (Analog 1D wfm, N Chan, N Samp).

Now when I create the task, I set it up to use Dev1/AO0:1) so I can output to both channels simultaneously.

When the user sets the desired sine wave period (30 - 120 beats per minute; 0.5 - 2.0 Hz), I calculate the frequency (Hz) and amplitude.  I also set the number of samples so that the end of one sine wave crosses zero at exactly the point in time of the starting zero of the next sine wave to prevent a 'jump' between the waves.  No problem.

 

However, with 2 outputs, I have to set the number of samples the same for both waveforms or I get an error (-200103) when I call the DAQMx Write.

 

If  the user selects the same BPM, it all works well.

 

I'm hoping there is either a solution to the Write error with different number of samples, or a quick way to calculate the smallest integer that satisfies both sine waves (integer number of samples in each sine wave so they both start and end at zero.

 

Thoughts?

LabVIEW and NI-USB 6008 or 6001 INTERRUPT

$
0
0

Hello!

 

I have a problem about interrupt.

I am using NI-USB 6008 and 6001 and LabVIEW.

 

I really want to know that can I use INTERRUPT for the programs at LabVIEW?

For example, if I press an external button while executing my LabVIEW program, so it will run another task in the same LabVIEW program that previously not running because of waiting for my inteerupt.

It is like in Arduino: AttachInterrupt.

 

I really need interrupt, because if I use "If condition" in my program, it takes time for the device to respond after I press the external button.

 

Thanks a lot! 

myRIOを用いたLORD microstrain社製 IMU 3DM-GX4-45 のドライバ

Combo with Stringa having different BG colour

$
0
0

In machine control applications generally there are numerous digital inputs which need to be read to know the state of a switch / level / motor overload status etc.  While it makes sense to show individual status on a page as bi-coloured LEDs, it become overwhelming when there are some 50 plus indicators.

 

I was just wondering if it could be done this way :

1. Group indicators of the same family  … Like motor Overload relays  or Filter Clog  status and create a Combo indicator.

2. If all of them are healthy, then the combo reads " Motor OLRs Healthy " and shows a green back ground. 

3. Even if one motor OLR is tripped then the combo reads " Motor OLR fault " and shows a Red back ground. 

4. The user then can click the combo to see which particular OLR is showing Red. 

 

Idea is to reduce the space on the FP and also group indicators of the same family. But as I can see the Combo does not allow selective BG colouring of Test strings. Maybe a cluster can be used, but it occupies space again. 

 

I am attaching a sample Combo string which  needs such a facility... 

ComboTrial.png

 

Another option is a small subVI that has all the grouped LEDs in its FP and invoked by a Button called " FILTER STATE ". If any filter clogs then this button turns to Red and user can click to open the VI and see ? 

 

Any ideas apart from  this ?

i2c slave on myRIO-1900

$
0
0

Hello,

For a project, I have to communicate a Raspberry Pi and a Ni MyRio 1900 in i2c. (Master for the Raspberry and slave for the ni myrio) is this possible?

Thank you,

Viewing all 69264 articles
Browse latest View live