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

Run .exe in a web broswer

$
0
0

I know of remote panels but thats not exactly what I want. I have a .VI that takes in text from the user on the front panels and then transmitts that text via TCP/IP to message server.

I want the complete vi and all its inner working to be accessiable from the brower. Can it be done?

 


LabVIEW 2015 SP1 missing palette set for touchpanel target

$
0
0

Hi,

 

I have had an interesting issue with my install of LabVIEW 2015 sp1.

When I select a new project for a touchpanel target, I don't get the palettes for adding functions and controls.

The palettes appear, but they are empty.  (Note, if the target is "My Computer" it all works fine)

 

After lots of head scratching and searching on here I found that there is a way to manually load .mnu files to populate the palettes.  This all looked good until all I got back were lots of icons with ? in them. 

 

I then tried the install on some other machines and they all worked fine.

 

Next I discovered that when selecting a location to load the .mnu files, on my main pc, with the issue, it kept pointing to a different directory to the one on my working pc..  I have searched and searched but cannot find where LabVIEW gets this location.  All my paths are set to default.  I have even checked registry keys (that I can find) and they are all ok too.

 

So, I ended up cheating and copying the .mnu files into the path its looking for and its now working.  I am not happy with this as its bound to cause me problems if there are any updates etc..

 

My pc was looking for this path

<C:\Program Files (x86)\National Instruments\LabVIEW 2015\Targets\menus>

My working pc was looking for this

<C:\Program Files (x86)\National Instruments\LabVIEW 2015\menus>

 

I am guessing my problem will be solved by resetting LabVIEW default locations but I am unable to find a way to do this.   I have done several un-install/ re-installs and still no luck.  If anyone knows where these values are stored, then please let me know.

 

Regards

Andy

 

Detect the time between two peaks of data coming from an ADXL345 Accelerometer

$
0
0

Hi,

 

I want to detect the time (in seconds) between two peaks of data coming from my ADXL345 Accelerometer. How do I program that in LabVIEW. I am using LINX to read my accelerometer.

How to send different types of data periodically over Serial Port?

$
0
0

Hello! Everyone

 

I have to send data from LabVIEW to my embedded device over Serial Port.

 

I know how to send data over serial port in LABVIEW, i have done this part already.

 

Now the problem is i have multiple types of data which i need to query from my embedded device, so i want to send query command periodically.

 

So lets say my four Op Codes are as follow, which will send four different types of query command to my embedded device over serial port.

(To be honest only OP_LED and OP_SENSOR is used right now)

 

0, OP_SYNC

1, OP_LED

2, OP_SENSOR

3, OP_FUTURE

 

Basic Packet Structure is as follow:

Header(0x2C), Lengh(Op Code+Data Length), Op_Code (1 Byte), Data Length (n Bytes), Checksum 

 

For OP_LED i need to send the packet as follow:

0x2C 0x02 0x01 0x00 0x2F (Where 0x2F is the XOR Checksum) (Checksum calculation part is done and is present in SUB Vi form)

Here 0x02 is packet length

0x01 is Op Code for OP_LED

 

Similarly

For OP_SENSORi need to send the packet as follow:

0x2C 0x03 0x02 0x00 0x00 0x2D (Where 0x2D is the XOR Checksum) (Checksum calculation part is done and is present in SUB Vi form)

Here 0x03 is packet length

0x02 is Op Code for OP_SENSOR

 

So how can i do this periodically in labview and in such a way that period can be adjusted whenever required.

Is there any thing in LabVIEW to do so.

 

I had done the reception and decoding part and is working properly.

http://forums.ni.com/t5/LabVIEW/Store-data-coming-from-Serial-Port-in-Buffer-and-then-take/m-p/3272260#M955422

 

So do i need to implement read and write part in same while loop?

 

 

Launch N-instances of same vi

$
0
0

Hello dear LabVIEWers..

 

From my Main VI, I need to pass a n dimensional array to n parallel instances of the same Sub-vi. Each instance will handle a single index of the array, do some logic, and return the output back to the main VI.

 

I know that I need to set them as reentrant in order to keep the give each istance an independent memory.

 

But I cannot use "Asynchronous call by reference", because this is what NI says: "You might want to call subVIs asynchronously when the calling VI does not require the results of the subVI immediately".

 

Any advice on a road to follow?

 

Thanks in advance

 

LoBa

xy graph with double (or more) y scales

$
0
0

Deaar all, graph made on 128x64 GLCD is attached to show-describe what I would like to do in LabView with your help ofcouse.

It shows air pressure and air humidity for 96 hours back and I would like to have something simmilar in LV if posible.

GLCD is driven by PIC18F4685, where for pressure, humidity and for hours care three diferent software buffers, each with 96 memory places.

Any idea or example how to do it would be very appreciated.

 

Regards, Vlado

error 200022 with NI9244, NI9246 and NI9237

$
0
0

I´m using NI9244 and NI9246 to make a powermeasurment program in LabVIEW. I plan to expand the program with NI9237 which will measure the force on a load cell. However when running the program I encounter an
error 200022: Resource requested by this task has already been reserved by a different task. Why does this happen and how do I resolve it?

Accessing Array elements via Property Nodes

$
0
0

LV 2013, Win7

 

Starting from a control reference, I need to traverse a data structure of arbitrary complexity, in order to produce a list of NAMEs and VALUEs (variant) for each element.

 

Simple control tyoes are easy:

 

I get the NAME (label) and append to the prefix I started with, and then get the VALUE, which is already a variant.

Append those to the array:

Convert 1.PNG

 

 

 

-----

 

If the thing is a CLUSTER, then it's not difficult either.

I simply cast the reference to a CLUSTER ref, get the controls from it, and recursively call myself for each one:

 

Convert 2.PNG

 

-----

 

However, if the thing is an ARRAY, then I'm stumped.

 

I know that if I ask for the VALUE of an array, I get a single VARIANT, which contains all the elements values.

 

But that's not acceptable for my purpose (assigning a PROPERTY in a TDMS file).

 

I know that there is really only one element in an array (as far as properties go).

 

But I need to build a name, and a variant value, for every element in the array.

 

And the element might be a boolean or a cluster, so I need to recurse using a reference to the individual element.

 

I tried setting the INDEX VALS property before accessing the ARR ELEM property, but...

1--- That changes the on-screen view, which I don't like, and

2--- it doesn't work.

 

When I set the INDEX to 0, and use the ARR ELEM to get the VALUE, I get the value of the last element (#2).

After that, I get 0.

 

 

Convert 3.PNG

 

 

So how can I get a reference to a given element, so that if I recurse, I get the values from that one element?

 

How can I figure out how many elements are in the array ? (remember that I don't know what type of array it is) ?


Write PNG File VI won't overwrite existing file

$
0
0

Hi All,

I am using Write PNG File VI to store the graph to a png file. I am able to save the file with a given file name which includes date, model number, serial number etc. After the graph is saved as a png file, if I make changes in the graph (like autoscale, turning on and off legends etc.) and try to save the file again with the same file name, Write PNG File VI does not seem to save the changes I made on the graph. I am looking at the time stamp on windows explorer but it is not getting updated. I opened the VI itself (which is write protected) to see if it generates any error if I provide the same file name, but it does not generate any error.

I am not sure if I am missing anything.

Can you folks please help me to figure out a way to overwrite existing .png file ?

I am using LabVIEW 2013 on Win 7 machine.

p.s. I am using second method mentioned in this article:

http://digital.ni.com/public.nsf/allkb/5AE4ADCBB65A6D8F86256FBF007A1AC1

(Programmatically with the Get Image Method).

Thanks for your help

OPR

Add specific number of zeros to exponent in number to string palette

$
0
0

Hi All,

 

I want to read a string and convert it to a number with the string being in the form 2.000000E+00, add some number to it, and convert it back to a string in the same format. I can read the string and convert to a number okay, I am just unsure from the help files how to convert it back to a string in this specific format. Using "Number to Exponential string" gives me the correct number in almost the correct format, it is merely missing the extra number in the exponential.

 

E.g.

2.000000E+00 -> string to number -> add 0.5 -> number to string -> 2.500000E+0

 

The last zero is missing which I need for stage position commands. I can edit the string to add it but as the position values will vary, how the string gets edited would not be consistent. I preferably need a way of converting any number into this format.

 

Thanks,

 

Paul.

Graph of an alternating output

$
0
0

Hey Everyone,

 

I'm currently investigating reading and displaying multiple signals using serial (RS 232) communication with an instrument.

 

So far, I have managed to implement the reading of the multiple signals and a display of the output in a 'text' format.

 

However, I have become stuck when it comes to displaying the output in a graphical format.

 

I have tried many ideas, but my latest idea was to try and use arrays to get around the alternating signals...

 

I have now become perplexed as to how I can get around the problem, as using the 'split signals' VI doesn't work on a 1 output signal with an alternating value.

 

I have attached my most current test VI as reference.

 

Any ideas as to how to solve this problem would be greatly appreciated.

 

Thanks!

Decimal String to Number Conversion, cutting off needed zeros

$
0
0

I am new to the forum, but have been using labview for a while. Finally found something that really stumped me, hope I can find someone who is smarter than me! It may be an obvious thing too, but here it goes. The vi attached is the root cause of the error. I have a serial number that I need to convert from a decimal string into a number, I later use the number for "math" so need it in number form. The system always receives a 6 character serial number (ie. 123456), but today the system received a serial with two zeros preceding the ladder digits (ie. 003456). This set off all the alarm bells down stream (4 digits sent), but tracing the error found it started at the "smarts" at the beginning for the program. I would like to know if there is a way to force the the Decimal Number to String to not shave the preceding zeros off of the 6 digit value.

 

File is in LabVIEW 2014

 

Any thoughts or comments, Thanks!

 

 

Using Match Pattern function to find and display specific substring

$
0
0

I'm taking a string of data from a sensor, and I need to parse the string into three different strings.

 

Here's an example of the string:

0 106 13 21.0 C 1002.0 mbar 40.7%

 

At it's fullest, it's 34 bytes long.  I'm looking to extract the temperature ("21.0" here), pressure ("1002.0") and relative humidity ("40.7").  To do so for the temperature, I'm using the match pattern and searching for the C.  How can I get the function to return only the "21.0"?

 

The closest I've gotten is this: I search the substring for "[~3]+[C]", and it will return "21.0 C".  I need that, but without the C.  

 

Can anyone help me figure out how to search the string more effectively?  I don't understand how to manipulate the special characters.

 

Thank you!

converting .imu files to excel or csv using .net

$
0
0

Hello,

 

Not sure if this is the best place for this question, but here goes. Can you convert .imu files to something like csv or xls using .NET? I've never used LabView, so that wouldn't be an option for me, and like most demands I get, it's needed for yesterday so i don't really have time to learn it. Long story short, we have an old LabView application which generates .imu files (some kind of report, or results files from what i gather), which are normally converted to xls by our Labview application, which seem to need to have MS-Office installed on the machine to work. It only works with older version of office though, and asking the client to install office 2003 or 2007 on their machine isn't really an option. I just want to make a small tool that would take those files, and convert them to something else, like xls or csv through possibly an open-source library or the like. I just need to be able to make sense of the .imu file to begin with, i'm pretty sure i could manage after that. Any help or pointers would be greatly appreciated.

 

English isn't my first language, so i'm hoping what i just wrote make sense. Let me know if any more details are needed.

 

Thanks!

software crashes on windows 10

$
0
0

 

Hello,

 

I have written a very big program with a rich user interface. I wrote this program in 2012 and created an intaller to install on different machines. It has been working fine since. Recently I bought a laptop with windows 10 on it. The program crashes in the middle of a very sensitive operation, if the user try to manipulate the chart's scale or sometimes try to bring up a 3D maps e.t.c.

 

Can someone explain why it is doing that? The program runs fine on windows 7 or 8.


wire labels cannot be moved

$
0
0

I've developed VIs using LabVIEW 2010 and inserted wire labels.  Now I'm running 2014 and new wire labels cannot be moved.  Old ones, created in 2010, can be.  Is there some option that needs to be reset?

support vector machine LLB usage

$
0
0

Hello I am Preethi, pursuing masters in Biomedical engineering please someone can assist me in using the LabVIEW SVM llb to classify a given set of  microscopic images.

Is the latest LabVIEW 2015 SP1 compatible with Veristand 2015?

$
0
0

I think it is, but can someone confirm it?

 

Thanks.

 

Ian

Custom tick marks on dial control?

$
0
0

Hello,

 

Does anyone have any examples on how to add custom tick marks to the scale of a dial, knob or slider?  I would like to put special tick marks for upper and lower warning and alarm levels on the controls.  Or is there a more elegant solution?

 

Thanks!

 

Bob

Data received from bluetoothsmirf

$
0
0

Hi, I have a project that require me to use arduino to send ecg signal to labview and i want to do it wirelessly (in this case via bluetooth smirf). I manage to connect bluetoothsmirf to my laptop's bluetooth and receive data. But I dont know why the value plotted are not the intended value. Is it because i convert string to unsigned byte?
I have only used labview for less than 1 month Smiley Sad I hope someone can help me with this. Thank you.
Attached below are the labview and arduino codes and results I got.

Viewing all 69686 articles
Browse latest View live


Latest Images

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