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

XML from Movicon

$
0
0

Hi everybody,

 

I'm attempting to read an XML file created from a Visual Basic Script in Movicon.

My VI shows this error: "Error -2628 An error occurred while parsing the document".

By reading XML files created with Labview, with the same VI, I don't get any problems. The problem occurs only with files generated in Movicon.

Do I have to include a particular heading in Movicon?

Does anybody ever dealt with this problem? 

 

Thanks in advance for any advice


Positioning fixed active cell in multicolumn listbox

$
0
0

Hi guys, I have a problem and maybe you can help me.

 

I'm trying to make program for choosing something (time string in this case). I want to have one fixed cell in middle of multicolumn listbox with active value and when button is clicked values go right or left. See below.

 

1.PNG

 

1. By clicking on button "Right" it should swich to:

2.PNG

2. one more click on same button it should switch to:

3.PNG

and so on. Same thing is in other direction.

 

Is this possible to achieve with multicolumn listbox? The total width of listbox should be fixed and should not be able to change.

 

Also afted changing active cell and stoping the program, and running again "reinitialize to default " doesnt work because last highlihgted cell stays 200px wide and it shoulg go back to 100px like shown on picture below.

 

7.PNG

 

What am I doing wrong?

 

Thank you for your help! 

LabVIEW 2015 Init_Open_Close.vi Equivalent?

$
0
0

Can someone help me determine what to do to update an old program to LabVIEW 15? The program currently uses a couple Init_Open_Close.vi functions that are no longer available and need to be updated. I'm not sure what newer function to use to replace them or what other steps need to be taken. I've attached a couple images of my current program.

 

I'm also having a problem with a 32-bit "File Dialog Wrapper.dll" and need to use a 64-bit version, but don't know how to create/change that either.

VISA vs TCP

$
0
0

Hey LabVIEW community.  Allow me to apologize beforehand, this is not the most "LabVIEW' related question.  More of a design question that I thought I'd ask the very smart people in the NI community.

 

I am updating a system that used LabVIEW to talk to a serial device and of course send and receive commands/messages while doing various other things.  The client has requested that they now be able to take the laptop to a decent distance and still be able to control the system by plugging into an ethernet port.  The system uses a cDAQ with ethernet.  I know it's not wise to try to send serial at any amount of long distance.  The question here is: is it possible to convert the RS-232 data to ethernet and then convert back to RS-232?  Or should I be trying to send the data on the network via TCP and have a converter on the other side that just converts the TCP data to RS-232 and if there are any messages to be read... somehow figure out a way to decipher that from any other incoming data?  Idk, I'm kind of stumped on this one.  Cuz I don't want the client to be carrying around converters with the laptop either.  Any thoughts?  Again, sorry about this sort of LabVIEW question.

Help Build pmw control with accelerator and arduino

$
0
0

Hello,

good night,

i am new to labview
pls help me to build a project or give the design,  because im confused how to connect accelertor to PMW with arduino,

 

This the rules:

Create a program using LabView configuration between the sensor
Accelerometer with the speed of a DC motor is used. Where speed motors
DC will change according to the level of the tilt sensor accelerometer.

 

Im waiting your aswer,

please share .vi

 

Thank & Regards,

Stew kidz

 

Create Equation From an Array Based on String Equation Using Indexes

$
0
0

I have a 1D array that will have n inputs and would like LabVIEW to preform an equation on the array elements based on the location of the index numbers in a string equation. The issue is I have no idea where to start.

 

Example:

Array: [1,2,3,4]

String: "(0+1)/3+4"

Result: "(1+2)/3+4 = 5"

Can I combine global shared variable libraries?

$
0
0

Every time I add a Global Shared Variable, another Untitled Library (lvlib) is added to my project.  I now have 11 of them!  Can these be combined into one library?

Why am I getting Error -229771

$
0
0

Hi

 

I recently downloaded labview with the purpose of writing a script that would take in voltage measurements of a battery using the NI-USB 6008. My code had been running just fine until I extended my labview trial for the 45 day period. I keep receiving Error -229771 referencing my DAQ assistant. Is there any way for me to fix this??

 

Thanks


class in labview

$
0
0

hello eveybody 

i want to use this class in labview  :

c# code

public Employer(string nom, char indicP, int npf, float indp)

{

this.nom = nom;

this.indicP = indicP;

this.NPF = npf;

this.IndP = indp;

}

please help me

 

Measuring Values from Two Oscilloscope Channels on the same Timescale

$
0
0

I'm reading inputs on two different channels on the same oscilloscope, and need to trigger a timer between when Channel 3 hits a certain value and when Channel 2 hits a certain value. I need these to both be in the same timescale, so how can I get information from only one of the graphs? Thank you for your help.

smartscreen warning when installing

$
0
0

I have several program installer all built with LabVIEW 2015.

 

Some trigger a smartscreen prompt under windows 10 and some don't. What makes a difference to determine if this gets triggered or not?

 

 

 

(sorry for the ugly screenshot. Apparently print-screen does not work when this dialog is up Smiley Sad. Nice Moire pattern, though Smiley Very Happy)

Get Pict Ring Images from EXE

$
0
0

So lets say I have on my UI a picture ring.  From within my EXE, I'd like to be able to get the images of each state of the picture ring.  I have a few hacky like options but none make me happy.

 

Parse the Type Def control:  This method involves reading path to the type def picture ring, then using either LoadResFile or a similar function, to find the PNG images in the file.  For this to work I'd need to always have my picture rings be type defs, and I'd need to make sure that disconnecting type defs in the EXE aren't done.  Oh and I'd have to have a Load Resource File that works outside of the IDE (this I already have).

 

Use Get Image Method:  This would have my code use the control as it is, then change its value to each of the possible states, then taking an image of the control with that value until I've gotten them all.  This is the way I planned on going, except I have an issue, how do I know what is the maximum value for the picture ring?

 

Given a picture ring control reference, is there a way to know the number of images loaded into it programatically, and from within an EXE?  I'm so surprised at how the picture ring is seemingly incomplete for so many years.  I get that it isn't used all that much, but not being able to read the images in it, set the images in it, or even query how many values it has, seems crazy.

 

Oh and there is another option I don't care too much for, and that is to get the images when in the IDE by running the VI, and then have those images included in the EXE.  Thanks.

 

EDIT:  Okay finally found the Number Of Items Property so that method will work.

How to disable selectability of front panel indicators

$
0
0

I have a VI whose front panel is shown below where a String Indicator is having an issue. The indicator here reads the value 'Please record the value for Air Temp [C]'.

 

Problem

When the indicator is clicked on in the front panel the text area becomes 'editable' in appearance (only) and I did not want this

 

Question

How do I eliminate the behavior shown below in Picture Two, when the indicator displays as editable? How can I leave the system simply in a state of Picture One Smiley Happy?

 

Picture One - Normal Front Panel

orig.png

 

Picture Two - Front Panel with Click on String Indicator

withClick.png

Resetting plot names and cursor lists

$
0
0
I have gone through some old threads about resetting plot names and cursor lists but didn't seem to get a robust solution to that. Since this is 2016 I am optimistic there must have been new upgrades/revisions that allow these to be done even cleaner Smiley Happy
Would be glad to have some information on how ( the best practice) to do this.

Adding fields to HTTP GET via Headers?

$
0
0

Hi,

 

i am creating a small library to talk to the IOT server Pushbullet.  This service accepts notifications from other websites and then pushes them down to a client.  I can get a list of my active pushes with no problem, but the API lists different fields that can control how the data comes back.  See below:

 

list pushes.PNG

 

 

if i perform the HTTP get with none of the above fields everything works, but how do i send the field data like 'modified_after' or 'limit'.  I assume it is something like this, but i just cant seem to figure out how.  I amu using labview 2014.

 

Somebody out there must know how!

 

 

example.PNG

 

 


Default Control Style

$
0
0

I assume this should be an easy task but I haven't stumbled on a solution yet.

 

I used an example vi to create something new and the default style in the sample vi was set to classic. Did a save-as to create a new one and every control and indicator I create from the block diagram is in the classic style. Is there a way to change it so new ones are created in a different style? So far the only way I've found is to copy and paste into a new vi.

 

The default has already been set to modern (my fav) as per this guide: http://digital.ni.com/public.nsf/allkb/9B3AF1A89123340A86257A09004C9DBF. That only has an effect on new vis though.

 

Is there a way to change the default control style of an existing vi?

i need NI labview vision toolkit tutorials as i want to design a face detection based automatic attendance system

$
0
0
i need NI labview vision toolkit tutorials as i want to design a face detection based automatic attendance system in which a camera interface with my pc is fixed at the entrance of the building the LABView based application will automatically mark attendance and note down its entry and exit time accordingly

Waveform FFT

$
0
0

Hello,

 

Anybody, please help with data. I want to do FFT for data, but it seems that I don't understand how to get FTT, because if I connect like as shown in figure I see only one line, it doesnt look like FFT spectra. How to do FFT from Waveform? I dont know how to do sampling. 

 

Thank you

vi for 18-48 to 48-18 value flip

$
0
0

Hello, I'm looking for a sollution for my problem. I have a PID, and the output is 0-100%. The servo low position is 48, the high position is 18. I would like tohave a vi which corresponds 0-100% to 48-18 values.

 

So 0->48  100->18.  Im using the PID percentage to EGU, but is doesnt seems towork with low value 48 and high 18.

 

Or i need a vi which "flips" between 18-48 --> 48-18.

 

I guess it is an easy task for experienced users.

half counter vision builder

$
0
0

Hello everyone Smiley Happy

 

For example if we have task counting of circles of dominos, is it possible to count half parts(if dominos have it )  and how to do it ? How to do it in vision builder counter of half objects ?

 

My job is to progammed how to set vision builder to count from 0 to 20, and half parts are included(1.5, 2.5, 3.5... see picture attachment)

 

Thanks

Viewing all 62941 articles
Browse latest View live




Latest Images

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