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

How to access .Net List with a structure (int, double,double,double) elements from a dll in LabVIEW?

$
0
0

I have a C# dll which consists of a list which is of type structure consisting of datatypes int, double, double, double. How can I access and write values to individual elements of this list structure?


wlan api

$
0
0

Hi, Now my test station need to test wifi signal strength all connect . I use Wlan  API under windows. But the function “WlanOpenHandle” returns error 87. who can told me how to call this function. Thanks

TCP/IP Error 59/63 in NI LabVIEW to communicate with Eurotherm 3504

$
0
0

Hi Everyone,

I need to control the Temperature of an Oven with LabVIEW with the help of Eurotherm 3504.

 

I am been trying to figure out the basics of the MODBUS Toolkit as I can connect the LabVIEW to the Eurotherm 3504 with the help of Ethernet.

 

However, everytime I run a basic VI to read the Data from the 3504, I get a mix of TCP/IP Error 59 / 63, which suggests that the network is down.

 

Enclosing a snippet of the BD I have been working on,

 

1.PNG

 

 Hence, may I please request the attention of folks who have had success with the Eurotherm 3504 or other devices with TCP/IP if they can help me in establishing the connection.

 

I found a helpful video over the Internet regarding setting up TCP/IP over the Internet. Have attached the link for your kind reference,

https://www.youtube.com/watch?v=H18jsb-mBws

 

I would be very grateful if anyone could help me figure out as to where I am going wrong.

 

Kind Regards,

Jalashwa

 

 

 

Configuring Resolver in MAX

$
0
0

I am new to labview and MAX. I am currently doing upgradation work of labview from version 7 to 15. I want to create a virtual channel in MAX 15.0 for resolver. I tried the same way how they created earlier in MAX 3.0 for labview 7 using the same values. But some parameters are missing in MAX 15 for configuring that channel. Attached the Screenshots

How to connect HTML link in ActiveX Front Panel to labview

$
0
0

I have an HTML page that I load into the Front Panel with the ActiveX Web Browser, and I'm looking into how to connect links clicked on that HTML page with commands run in Labview. In particular, I want a link clicked on the HTML page within the Front Panel to run a Case Structure. Any ideas on how this could be done. A very simple example would be greatly appreciated.

how to read back digital outputs from NI-9403

$
0
0

We are using a cDAQ-9184 with (2) NI-9403 32 channel digital I/O Module. The modules are being used to control RF switches to route various RF paths as required by our radio test team. I would like to read back the values to verify that at least the output state is correct. A read/verify operation if you will. Is this device capable of allowing such operation, if so, how to go about it.

Zip. Labveiw and Matlab in Parallel

$
0
0

i am running Labview 2012a and matlab R2013a executables in parallel, as parts of larger analysis programs. each runs a zip app writen using the built-in subroutines provided by the two companies. each program runs fine *independently.* when run simutaneously, Labview at low prioritiy and natlab at normal priority, both apps ran fine for a few minutes, then they both froze. After I killed the Labview app, the matlab app resumed. when matlab completed, i killed it - and the Labview app was re-started and ran fine. i would like to run these programs 24/7 in parallel - without them clashing.

 

1) is there something i can do to keep these 2 apps from clashing?

2) it is my belief that both packages use JAVA for zip functions.  is that correct?

3) The operating system is windows 10 home premium. is there something at the system level that needs to be set?

4) perhaps i need to use a system call to see if java is already running zip, if so, wait..

 

thanks for your time and efforts.

 

 

a cercle with intensity graph

$
0
0

plz can any one tell me how to plot A circle with a black contour on a white background using an intensity graph


Simulink Model to Labview

$
0
0

Greetings of the day.

I am trying to use models of wind turbine and PV array that are readily available in Matlab-simulink 2016b in Labview 2016. Can anyone help me in doing this?

Thanks in Advance.

how to creat the best chunk size for parallel iteration of for loops?

$
0
0

Yes, I read the help of For Loop.

 

"LabVIEW partitions loop iterations into chunks consisting of loop iterations. With parallel iterations enabled, processors execute chunks simultaneously to improve execution speed. By default, LabVIEW schedules chunks by size from larger to smaller. Executing larger chunks first decreases scheduling overhead, while executing smaller chunks last decreases processor idleness. You should programmatically configure chunk size only if the For Loop would benefit from an iteration schedule different from the default, such as a schedule that executes smaller chunks before larger chunks."

 

Yes, I search the key word on NI Website.

 

http://www.ni.com/tutorial/9393/en/#toc1

"If you choose the Specify partitioning with chunk size (C) terminal schedule, you must wire a chunk size to the (C) terminal. Consider the total number of iterations when selecting the chunk size. If the chunk size is too large, it will limit the amount of parallel work available. If the chunk size is too small, it will increase the amount of overhead incurred by requesting the chunks.

For finer control over the chunk sizes, you can wire an array of chunk sizes to the (C) terminal. For example, if you know that the first iterations of the loop take longer than the last iterations, you may want to create an array with small chunk sizes at the beginning to prevent the first chunks from containing too many long iterations and with large chunk sizes at the end to bundle the short iterations together. If you wire too many chunk sizes, LabVIEW ignores the extra values. If you wire too few chunk sizes, LabVIEW uses the last element in the array to determine the size of the remaining chunks of iterations."

 

However, I am still puzzled with the chunk size definition. For example, I have a size of 10000 array should be multiplied with 5. So what is the best chunk size array or number to reduce the cost time as much as possible?

 

1.png

LabVIEW hangs at RunVI invoke node when right-click menu is opened

$
0
0

Hi,

 

I noticed that VI will hang at RunVI invoke node when doing kind of operations like opening right click menu or holding the left mouse button, even the operation is on the running VI or not. Opening VI pallette on a new VI makes it hangs too.

 

I tried to change the VI Priority, Preferred Excution System or reentrant property, it didn't work at all.  Why there is a lock here?  Could I get around it?  Appricate if anyone can help.  Thanks in advance.

 

2016-12-30_100242.png

 

Analyzing Graphs

$
0
0

I want to create a graph as in the following example. (example graph is attached)

eg: For each value of 'Vcb' , i want to draw graph between 'Ie' and 'Veb' and have to calculate slope and if the value of slope exceeds some limit,have to change the colour of graph. 

Anyone please show an example code for doing this.

How can I create use producer consumer architecture using typedef clusters?

$
0
0

I am acquiring data using cdaq 9223 @ 1M samples / channel and it consist of 3 channels. I am currently queueing the data in producer loop and dequeueing at consumer loop. But it is bugging me. I want to use it with typedef clusters. How should I do it?

Do I need DSC RTS?

$
0
0

Hello to all.

 

First of all thanks a lot for reading this post and being able to help.

I am developing an application which has some shared variables created via modbus following this tutorial: http://www.ni.com/tutorial/13911/en/

Now I would like to create a .EXE of this application.

My question is: Do I need DSC RTS? or is enough check the option "enhanced DSC Run-Time Engine" when I create .EXE? See image:

 

Thanks a lot!

block diagram

$
0
0

May be my question sounds very basic but i have a confusion. I want to represent matrix in the following form in the block diagram of the labVIEW, not front panel. How can i make such matrices using block diagram not by front panel??? Please look at the diagram below first. Can someone help me?


Arduino send xbee packet of double to Labview

$
0
0

Hello
I'm a newbie and use a union code to send a double number to labview using arduino uno .
this code
union {
   double f;
   byte b[4];
} stuff;

stuff.f = number to send;

payload[1] = stuff.b[0];
payload[2] = stuff.b[1];
payload[3] = stuff.b[2];
payload[4] = stuff.b[3];

and in my Labview vi i receive:



sending number        payload 1   payload 2   payload 3    payload 4
0                                     0               0                  0                   0
1                                     0               0                128                 63
2                                     0               0                   0                 64
3                                     0               0                   64               64
4                                     0               0                  128              64
3,14159                        208             15                 73                64

how can I get the double in my vi??? I've tried join numbers ..and didn't work....

thanks

Dynamic reference?

$
0
0

Hi all,

 I am supposed to be untangling a mess of spaghetti code and adding documentation so that it can *at some point* get fixed. It's been a wild ride. This is supposed to be a data collection application for a PXIe system that will eventually also run the controller associated with the system. The guy who wrote it told me the biggest issue is that the sampling rates are too slow. I've figured out that the issue is probably the use of the Write to Measurement File express VI in a timed loop that is supposed to run for only 1ms, but I've hit a bit of a wall on part of the project. There are loads and loads of dynamic VI references in the project, and I can't figure out what exactly they are being used for (as opposed to just wiring outputs directly to inputs). I've attached a few screenshots and the main VI from this project, but a bunch of the subVIs referenced are missing even to me and it's just generally a mess so I wouldn't expect to get it running anyways. 

 

Any help, or glaring errors you see that I missed would be great!

 

Also the project is much larger than my 2 monitors can fit (or any monitors for that matter) so bear with me 

 

byreference.JPGbyreference.JPG

Swapping x and y axis in a chart

$
0
0

Good Day!

Using LV2015 Base Dev System, I created a six sensor temperature logging vi.  I would like to swap the x axis so that it shows each sensor's temperature value in a bar chart.  Attached is an excel chart showing what I am trying to accomplish along with my vi.  I have tried using the property nodes to flip the axis, but this does not work.  I have searched the community forum as well as other blog sites with little success.  Any suggestions?

Cheers!

 

IMAQdx: write text on *.avi

$
0
0

Hello,

 

For project at my office we need to write some text on video at the same time we record the video. We have the text on the display screen of labView but not on the * .avi file.

Have you any idea to resolve this probleme

Thanks.

 

Actual code: 

source is 1d array of cluster of 1 element the sink is 1d array of double

$
0
0

When i am trying to calculate statistics of peak present in the data of analog voltage pulse train. I am getting the error "source is 1d array of cluster of 1 element the sink is 1d array of double". can anyone help? may be this a small error! but i have tried so many types. attached vi along with this post. 

Viewing all 69241 articles
Browse latest View live


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