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

Controlling 2 state machines in separate loops with a queue

$
0
0

Is there a method to control 2 parallel loops that have the same state machine control with a queue? 

 

I'm looking to run two tasks in seperate loops but I want their states to change at the same time. I'm running into XY graph issues when my AO turns off...

 

I've attached the VI. Please excuse my mess. 


Application Crash (Access Violation) -> ThEvent.cpp(235) : DAbort: Bad verifier in event.

$
0
0

I've been seeing this crash sporadically. Unfortunately, as of this writing I am unable to reproduce on demand but I believe the error occurs with relation to programmatically accessing Excel. Attached are the auto-generated zip file with the minidump files plus a screenshot of the error message. Has anybody seen anything like this?

working with regid\ster

$
0
0

I am serarching for saturation add function and also have some connection problem with register storage value.... can anyone help?

NewPort XPS strings

$
0
0

Im working on a motion control project. I am challenged currently by how to proprely format strings for propritary vis that were included with XPS Q8 motion controler. I have tried searching LabView Help, XPS Q8_Labview_manual(assotiated with the vis), and I strugle to see the answers from the vis themselves. Specifically I need to know how to format a string for multiple axis group name. Generally I would appreciate any suggestions as to what sort of resources could help me learn how to utalize the more complex vis included in  the FTP of an XPS Q8 motion controler(xy,xyz,multiple,etc...). I believe this is propritary subject so i procede with caution. 

saving labview project

$
0
0

I am saving a project and while opening only back panel is coming and not the front panel .... Why so?? How can I get both panelss saved??

getting wrong amplitude in FFT

$
0
0

HI all,

 

Simply I am doing frequency sweep. The attached photot has three graph, on the top left you can see I am getting - 16 dBm which is the same as I generated, on the right top graph is the FFT of each single step. the below graph shows the result of the power and frequency sweep of the total steps.

I am getting some wrong values in AMPLITUDE after inserted them in FFT, I tried to add zero padding to make the FFT work to power of 2 but i still have the same problem.I have read that the problem beacuse of spectral leakage but I don't know how to overcome this problem. Any support? Thanks in advance

 

Regards

 

Subtract Function error

$
0
0
I use Labview Subtract Function and experiencing something that looks like failure. 1. Two numbers A = 0.15 and B = 0.1. 2. A-B = 0.05. 3. Check if A-B = 0.05 labview answer is no. 4. This is because the Subtract function has released a value that is 0.05 + 13.8778a. Are there others who have experienced this? Tips to fix? Please see attached labview code I use Labview 14.0.1f3 (32-bit)

Data not being displayed in xy graph

$
0
0

Hello,

First off I am working in NI LabVIEW 2015 Full Development System for Linux on a computer  running CentOS. The problem I am having is with xy graphs. My code is supposed to take data from a MySQL database and plot it on an xy graph. When I run it, the data gets sent to the graph (I checked by also displaying it as an array) but it does not get displayed. The really weird part is if, after running the code, I copy and paste the blank graph into a blank VI, it shows up with the data that should have been displayed initally. This sometimes go away if I simply copy and paste the entire code in a new VI. Does anyone know why this happens? My progarm is fairly large an I think this may have something to do with it. I would post the code, but the thing I am working on is proprietary.

 

Thanks


interrupting a prodcer consumer structure to test servo position regularly

$
0
0

hey guys, I'm relatively new to labview, and am currently trying to make a multi stage snake like robot. I'm interfacing with USB controllers from pololu and want to manualy control the first stage and have the remaining stages follow, I've got the first stage working with commands from the front panel. I use a producer consumer template and have button pushes activate an event and then queue a case in a second "hardware loop". 

 

my current problem is now I want to start working on controlling the secondary stages passively, so I want to move the front stage angled up and then start to drive foward and the second stage begins to follow into the same position. I want to regularly interrupt and check the positions on the servos to compare and act accordingly. my first thought is to interrupt on timeout in the event structure and test if the servos are at the same postion. the problem is my visa reference is in the other loop. 

 

what would be the best way to go about this? should I just queue into my hardware loop on a time out and test the servo positions. or is there a way to share my visa resource in the producer loop? I originally wanted to store the reference in the producer loop and pass it everytime I went to the consumer loop but I couldnt figure out a good way to return the updated reference and I kept  getting errors.

 

are timed loops an option here? any advice would be helpful. even if you have a better structure to redo the whole project. I'd love to hear it for next time if nothing else. also if theres a better sub forum ill gladly move the post. 

 

thanks guys

LabVIEW - VISA COM Device - How to use Hex protocol to receive Data

$
0
0

Hey everyone!

 

I am pretty new to LabVIEW and data collection, so this might be a pretty easy question.

I want to read the data from a Extech Instruments HD755 device, this is connected via USB to a COM Port.

I can see the device in MAX and I am able to open the VISA test panel.

I simply don't know what command I have to send now, neither I know how to search Google for this (I've tried several commands, but they didn't work).

I attached the Communication Protocol from Extech and my first try of a VI.

 

Thanks a lot in advance.

Tobias

XY Graph reset

$
0
0

Hi there guys. Can anyone tell me why my XY graph will not reset when my boolean button goes from false to true?

 

 

How can I interface/Control an Android Phone from LabVIEW 2015

$
0
0

Hi,

I am developing a test module where the ECU will make a voice call to an android phone and I would like to be able to monitor the voice call status (if it is in progress) and be able to hang up the call   from LabVIEW 2015. Since this is for automated testing, I need a method to be able to hang up the call to the phone which the ECU is dialing.

I want to connect, disconnect and monitor the status of the Voice call from LabVIEW 2015 application  .

 

Could anybody can suggest what is the best method for doing this ?  LabVIEW 2015  is running on Windows7 64bit desktop PC.

 

I am thiking about Bluetooth communication in LabVIEW 2015.

what all are the bluetooth dongle which will support LabVIEW 2015 and Windows7.

 

If anybody having command set or similar example for communicating with the Android Phone over Bluetooth or Serial kindly share with me.

 

Appreciate your help..

 

Regards,

Jijith

Editing tables ( changing cell entries , inserting rows etcat runtime

$
0
0
I have a table indicator with entries that I may want to edit before proceeding with my program. Is there a way to turn this same table into some sort of a control after initially working as an indicator and displaying the iinitial entries,, so I can make modifications to it ?

Convert text file to excel file

$
0
0

Hello all,

 

I can store FFT plots as two-column text files using the VIs in the circle area attached in the image. However, I would like to convert and save these text files in .xls formats (excel files). I would appreciate if anybody could be of help in this regrad.

 

Thanks.

Use multiple versions of same hardware and the same LabVIEW code

$
0
0

Here is my dilemma, 

 

I have many different NI 9213s (16 channel thermocouple module) that I use in my lab. I only need to use them one at a time, but I want to use the same LabVIEW code with each. I use NI MAX to create a task for the NI 9213 that I am using, but when I plug a different NI 9213 into the computer I need to delete the first task and make a second tast with the second NI 9213. 

 

My questions is, is there a way to be able to plug in different NI 9213s into the computer and not have to reconfigure the tasks in NI MAX? If so, how? 

 

Thanks,

Maddie


Will LabVIEW 2014 work on Mac OX El capitan

$
0
0

I'm upgrading my mac from mavericks to EL capitain. Will LAbVIEW work ? Any reported issues ? 

The oficial website from NI does not support that version. 

Any comments ? 

more mouse buttons needed in labview

$
0
0

When using the "Aquire Input Data" Vi in labview. Only 4 mouse buttons are able to be read. I have a mouse with more than 4 buttons. Anyone have any ideas on how to approach this. I have looked at making a visa driver but then it deletes the windows driver and I stopped there. Don't know why they limited it to 4. "Query input devices" vi shows that the mouse has eight buttons. A gaming type joystick allways displays all the buttons. I bought the mouse specifically for the application but did not check the vi as I usually use a multibutton joystick. Any help is appreciated.

arduino toolkit, problems with DS18B20

$
0
0

Hi everyone. I'm working in a project and I need to use the sensors DHT11 and DS18B20, so I'm trying to modify the firmware of toolkit for Arduino to use both sensors, but actually I only obtain an error in the code, I will be grateful with your help. I attach my modifications of the code.

Sorry about mistakes, I am not a native speaker of English. 

save grayscale as rainbow

$
0
0

Hi

 

How can i save a grayscale sgl as rainbow?

 

i analyze the image in grayscale but for presentation i need to show it in rainbow.

 

my code doesnt work, however

 

save grayscal SGL as rainbow.png

real measurement different with displayed labview chart

$
0
0

hello all..

im using labview connected with NI-USB 6251. i need to generate PWM signal using analog output, not digital or counter output. my VI as below :

pwm ask.jpg

 

it seems well on waveform chart, but when i try to connect NI-USB 6251 with oscilloscope to see the generated signal, i got the signal generated at constant 7 Volt. it never goes to 0 Volt. i wonder where is the mistake?

i set the DAQ Assistant as pict below :

pwm ask2.jpg

thanks for your help guys

 

.

 

 

Viewing all 69579 articles
Browse latest View live


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