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

Controlling whether charging or discharging process to run

$
0
0

Hi, 

Right now, if the SOC is more than 100, A will be 1. If SOC is less than 50, B will be 1. However, we will have a case where the SOC will be less than 100 and more than 50. When this happen, both A and B will be 0, we will not know if its charging or discharging. 

How can we make sure that only either one of the process is suppose to run at anytime?


change the shape of the run button

$
0
0

hello.

    In order to match my UI. I want to change the shape and place of run button, abort button in the toolbar of the vi. But I don't know how? So if you know,please tell me, yourhelp will be greatlyappreciated.(picture 1) 

 

Programmatically Appling LVLib Icons to All VIs

$
0
0

Hi All,

 

I want to programmatically change icons of all the VIs in a LVLib, if I use the "Apply Icons to Existing VI items" method, i get a popup for saving the VIs,is there any way to programmatically avoid this popup or any other way in which I can apply the icons to all VIs of a LVLib.

 

Thanks and Regards,

Sree

File i/o operations

$
0
0

hi...actually i am new to labview... i want to do some simple file input output operations.... i tried a few..but now my requirement is to write a set of data such data each data in a new line... so can you plse help me how to do it

Remote Debug Problem

$
0
0

Hello,

 

I have a small debug problem with the "Profile Performance and Memory Window". An LabVIEW application is running on a remote machine, after some hours of working the program slows down. I think it is a memory problem, something (Array, Number, Buffer) gets bigger and bigger and slows down the code. The CPU usage increases and the Application RAM usage is more or less constant over the time.

When I connect with the debuger to the remote machine everything works fine. BUT if I open the Profile Performance and Memory Window, I see no subVIs, nothing! What did I wrong? 

 

Paul

 

 

How to make sure plots in xy graph are present?

$
0
0

Hi community,

 

since updating to LabVIEW 2014 this week I have an issue with code that worked previously (or didn't but the problem was unnoticable).

As shown in the example llb I created to showcase the issue, I'm filling xy graphs with quiete some data and then programatically colour the plots.

 

The problem is that if there are too many plots then the property nodes that are to colour the plots thow errors as if the corresponding plots were not present in the graph yet - even though I used a single frame flat sequence structure to try to make sure data is written to the plot before trying to colour them.

Maybe this would have happened in LabVIEW 2013 too - but the threshold for the number of plots was higher. All I can say is that I observed this with data sets that worked fine in LabVIEW 2013.

 

To reproduce simply run "colour the graphs.vi" with sufficiently high values for "numerisch" and "numerisch 2" (50 on my machine may be more on yours). I left the error out terminals of the property nodes unwired so you get taken to the right position when the error occurs. :smileywink:

 

Can I somehow check whether all plots are in the graphs yet? That way I could introduce a delay that makes sure I don't try to colour graphs that aren't there yet - regardless of the speed of the target PC.

Has xy graph behavior changed in LabVIEW 2014? Or maybe its performance?

 

Best regards

Florian

cRIO andsbRIO PTP TimeSync

$
0
0

Hello,

 

I'm tring to synchonize a sbRIO 9606 and a cRIO9076 using PTP time sync without success.

 

From MAX I have installed the following add-ons on the two real-time targets:

- NI 1588-2008 Network Management 14.0.0

- NI-TimeSync 14.0.0

-NI-TimeSync Plug-In for software based 1588 14.0.0

 

From the tab "Time Settings" the "Software 1588 time protocol (Ptp)" is enabled, but I can't get any kind of syncronization.

 

Can you explain to me the procedure you followed to synch your hardwares?

 

Thankyou very much!

XML tutorial or Help

$
0
0

Does anyone have a good tutorial for Labview XML schema.  I have created an INI file in LV XML format through flattne to XML string and save to XML file, but every time you write to an XML file it overwrites evertyhing in the file.  I wanted to extract the string and search for data to replace, replace it and store it again, but this seems to be introducing new formatting parameters, that throw everything off.

 

Any help appreciated.

 

p.s. I do know how to use basic LV XML vi's, so if something has some indepth knowlege of overwriting specific nodes in the XML, while keeping the format and syntax of everything else the same is what I am looking for.  Also ways of sorting the data within XML file, without letting LV choose where in the file it wants to store the data?

 

Thanks


Bug in "Get and Set Time.vi" example for RT systems

$
0
0

There is a bug in "Get and Set Time.vi" that ships as an example in the "NI System Monitor" package.  The routine does *NOT* return the hour correctly.Screen Shot 2014-10-24 at 10-24 9.16.40.png

 

Note the string "%#H:12:39.371" as the time of day.  That should be 09:12:39.371 as it was 9 AM at the time.

 

Mac OS X 10.8.5

LabVIEW 14-64bit

NI System Monitor 14.0.1

Pharlap RT PXI embedded system version 14.0 updated.

 

NOTE: it is odd that the default "New Time" has #H as the hour but that is hard wired into the VI as a sentinel case.

Event structures casees large

$
0
0

Hi All,

 

I have been working on an application where there is extensive user events and corresponding actions need to be taken.

I'm using event structure to capture those events in while loop. But the number of cases in event structure is increasing ( Now has reached 50 cases, most of it are like disabling a control on click of button).

 

Does this effect the performance? As only one case will execute at a time.

Is there any architecture where all the UI related events are handled more efficiently. I have been reading about the producer consumer architecture , but still number of cases in event structure would  be same and the actions in consumer loop with equally number of cases.

 

How do experienced programmers deal with this sort of issues as one's application becomes large and complex.

Any pointers of what i'm doing worng would be much appreciated

 

  

Can anyone please recommend me which Module and equipment I need to do some counting/ triggering/ timing / calculation with my cRIO-9012?

$
0
0

My inputs:

 

  Inputs are from some laser or some photo voltaic cells.

 

I want to do: 

 

   Triggering some counter/ timer by those inputs when they are active.

   Reset the counter/ timer by those inputs when they are not active.

   Extracting the time interval between this two events. (probably in millisecond)

   Comparing all these time with each other to make some decision to some calculation

   Making all events with a time stamp (real clock time).

 

I have:

 

NI cRIO-9012, Labview 12

 

How do I encrypt a data file so that only I can retrieve the info?

$
0
0

How do I encrypt a data file so that it cannot be read without the proper authority?  

 

I have an application where the customer should not have access to the data I need to record for troubleshooting purposes.  (there are industrial secrets I wish to protect)  My plan is to record a datalog (currently I am producing a tab-delimited spreadsheet format) whenever the device is running and hide the files where they will probably not be found.  But some sort of encryption or at least password protection would be better.  

 

I've never tried to do this before, but thought it would be fairly easy.  Maybe I'm just not looking in the right places.  

 

Thanks

Analog output on NI9264 for variable voltage control

$
0
0

Hello everyone,

 

I am a bit rusty hooking up my electronics but I was wondering if it is possible to use the analog output from the NI9264 to control a variable DC device. I have a valve which is controlled by varying the voltage from 1.5 to 3V where it can draw up to 1.8A of current. 

 

I am trying to hook up the AO pin directly to the ADJ pin of a LM317 where the Vin is 10V and then controlling the AO thru Labview. 

 

With this direction connection, I don't seem to get any response from the LM317. For testing, I tried the standard setup where I connect a 200Ohm resistor between the Vout and ADJ. With this setup (the value is not hooked up yet), I seem to be able to re-adjust the voltage. Would this setup be safe to use with the valve - I am afraid of 1.5A of current running back to the NI9264.

 

Thanks in advance!

 

Thomas

use GPIB-USB-B with suse 13.1

$
0
0

I'm trying to use a GPIB-USB-B with openSUSE 13.1, but unfortunately, no driver exists. Drivers exist for different versions of openSUSE, or drivers for different GPIB's work with 13.1. I've tried different drivers, but to no avail. Changing my operating system would also be very difficult and buying a different GPIB adapter would cost too much money. Does anyone have a suggestion on how to work around this issue?

how to allow tabs to be viewed during runtime

$
0
0

Hi, guys.

 

I have a VI where I have 8 different xy graphs going, but I only want to show 4 at a time and have them cycle every minute, so I included 4 of them on a tab and 4 on another one and I have a while loop cycling through every minute. However, I would like to include a bit more functionality to these tabs and I'm not sure how to go about it. I want to be able to select a tab during runtime and view it. Currently, the tabs cycle between "mid" and "exit" every minute smoothly, but when I click on any other tab, nothing happens.

 

I have attached the VI. Thank you! 


Multivariable least square fitting

$
0
0

Can Labview, specifically General LS linear Fit VI do the following fitting?

I have x, y, P as independent variables, and fit a curve B to a function of :

 

B = b0 +b1*x +b2* y +b3 *P + b4 *x^2 + b5*y^2 + b6 * P^2 + b7* x*y + b8*x*P + b9 * y*P;

 

There are 12 data points to get 10 coefficients, b0-b9.

 

I'd appreciate any comments. Thanks,

NI cRIO 9068 TCP Listener

$
0
0

I am trying to get a TCP listener to work on the NI 9068 cRIO chassie and have been having issues with my VI not responding after it recieves a TCP connection.

 

I went to the LabVIEW TCP Named Service example project and added my 9068 cRIO chassie and moved the TCP Named Service - Server vi to it and experianced the same non responcive behavior when the Client connects to it. I added my 9082 cRIO chassie and moved the Server VI to it and it worked without issues. Note you will need to change the address in the client's block diagram to match the cRIO's IP address.

 

I am using LabVIEW 2013 SP1

 

I was wondering if anyone else has seen this before and had clues on how to resolve this issue.

 

Thanks,
Jeremy Crismore

Waveform graph label positions change in an undesired manner when resizing with pane.

$
0
0

I have a simple test VI with 3 panes (pane 1 stretches as needed while pane 0 and pane 2 are fixed width, each pane has its origin in the top left corner):

 

3PaneFP.png

 

The block diagram just reports the position of the Time/Amplitude labels and polls for the stop button to be pushed:

 

3PanelBD.png

 

 

 

The graph has the Scale Object with Pane option set to TRUE and the center pane has the Scale Objects when Resizing property set to TRUE as well.

 

 

Anyway... when resizing the pane the axis labels march all over the place.  After about a minute of resizing the pane while the VI was running I ended up with the labels looking like this:

 

3PaneTestFail.png

 

 

Luckily the properties for axis label position are not read only, so I already have my workaround.

 

 

If there's a better way to configure resizing graphs / panes I'm all ears, or perhaps this issue is fixed in a more recent LabVIEW? (we're still using LV 2011 on this project for the time being)

 

 

Best Regards,

Error -1074360293

$
0
0

I am using a couple of web cameras  mounted over a  plataform.  My routine  is made of 4 steps as a secuence

 

1. go to the initial position and find a pattern on an image which comes from the web camera #1 (continuous acquisition). the pattern can be in the image several times so I have to locate all of them and capture their positions.

2.  go to another position and take a continuous image using the camera 2 . the idea is to monitorize a motion.

3. go to a third position and find again a pattern which can appears several times  so it is esentillay the same as step 1

4. go to fourth position and take a continuous image using the camera 2 .  again the idea is to monitorize a motion.

 

Although the steps 1-3 and 2-4 looks simmilar, they  need to be considered as separate steps because of some conditions.

 

I attached a simpler version of  my program (but it includes only the vision components) which  show the 4 steps and reproduces the problem I am having. i.e. show explicitely the error message 

 

The problem appears  in the step 3 and the error  message is:


----------------------------------------------------
Error -1074360293 occurred at IMAQdx Get Image.vi
Possible reason(s):

NI-IMAQdx: (Hex 0xBFF6901B) Timeout

-----------------------------------------------------

I discovered that if I use only one camera, the problem dissapears , however, in that way I can just either find the patterns or monitorize the motion (note that both actions are not simultaneous ) because the cameras are located in differenrt positions on the plataform .


I am using a machine with: 

 

windows 7 de 64 Bits
Intel core i7 @2.3GHz
4 Gb ram

LabVIEW professional development system 2011 SP1 version 11.0.1f2(32bit)
2 web cams logitech c170

 

I appreciate any suggestion to solve this problem

 

Avoid Coercion dot

$
0
0

Hello,

 

Can you tell me how I can go about resetting the INPUT cluster in the attached VI when you enter into step 3 of the program and avoid the coercion dot that is currently in the program?

 

Thanks,

hiNi.

Viewing all 66826 articles
Browse latest View live


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