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

restart.vi error the operation exceeded its time limit

$
0
0

Hello,

 

I am using the Replication and Deployment Utilitiy.

 

Recently I got an error from the utility, when I tried to deploy an image to a cRIO 9023 controller.

I don't know what this error is and how to fix it. I got the open source Labview Code for the RAD Utility aand tried to debug and fix it myself but my LabView skills are quite poor.

But I could find the location of the error.

Can you please help me to fix this problem?

 

Here is my analysis:

 

The VI - The error occurse in the restart.vi (from the ni syscfg)(its in the bottom left area)

Picture RAD_Deploy Image Wrapper VI.png

 

Error Log from the RAD:

Model    cRIO-9023    

Model Code    73D2    

Serial Number   016219C9     

MAC Address    00:80:2F:13:1F:41

IP Address    192.168.130.180    

Host Name    AIS9023    

App Image Name    test    

App Image Version    1.0.2    

Time    0%    

Result     Error -2147220323 at nisyscfg.lvlib:Restart.vi:1680001<APPEND>

(complete call path: nisyscfg.lvlib:Restart.vi:1680001
rad_Deploy Image Wrapper.vi:4490002)

Description of the error code -2147220323 from the Lab View help: The operation exceeded its time limit.

 

TargetSettings In (the variable out of which the session is created for the restart.vi, if I'm not mistaken)

Target Settings in.png

 

Session (the session variable for the restart.vi)

Session Variable.png

 

 


Ambiguity function

Conversion Required from Labview 2014 to Labview 2012

$
0
0

Kindly anyone help me to ge the attached file converted in Labview 2012 version. Currently It is in Labview 2014. 

is there a utility to convert vi files to text and back agin

$
0
0

I work somewhere you cant transfer binary files from one machine to another, only text files. Is there a utility somewhere that will convert the native binary vi file to text (like xml) or something and back again? Preferrably in perl or python or even c source code.

Thanks

Visual Studio LVUserEvent Message Cluster

$
0
0

Hi, It is possible to use a queue to exchange messages between a .dll and LabVIEW? Yes. Check image.

 

It is posilbe that the data contained in a cluster and are variant? You can convert a data to variant in .dll and convert a variant data to data labview?

 

And I tried to implement a function with the following code, but I err when I run LabVIEW.

 

#pragma pack (push,1)
typedef struct
{
 LStrHandle newStringHandle;
 LvVariant* Data;
} MessageCluster;
#pragma pack(pop)

 

...

 

MessageCluster Message;

 

...

 

PostLVUserEvent(*rwer, (void*)&Message);

 

Thank you very much.

Zooming a chart

$
0
0

Hello,

 

I am printing data from DAQmx card into a chart and I want to implement zoom future for the chart. As x axis shows time, I want to first value on x to be time when chart started to work, and most right value to be last printed value. So all ganareted values are shown on graph in same time. Second zoom would be second half of generated values. And third zoom last 1000 values.

 

For the first two zooms I have idea about how to do them, but... I tryed adding to property node minimum for x scale 0 value, but that sets it to year 1904... So I figure I need to get value of time when graph started working and that value to insert into property node minimum, problem is how to generate that tipe of time value so it works as minimum on scale. Once I do that  I can do same for second zoom, just find middle time between starting time and ending time, and put that into property node minimum.

 

I can get time (actually already doing that) when I start programm, but how to save it for later use when i press button for zoom 1? (off topic question and maybe a bit beginner question but I am a bigginer Smiley Sad ) Should I use shift register to save value just on first iteration (when i for while loop is 0) and then use it when needed?

 

But for third zoom i dont really know how to implement that. Counting while loop iterations and save time each time counter generates new value beyond 1000 values? And write that into minimum.

 

If needed I can provide whole project so people can see what I am doing.

 

 

Thank you in advance! Smiley Happy

Create SubVI - Priority subroutine

$
0
0

 

Why is it not possible to create a SubVI from a code with a subroutine priority ? (with "Create SubVI")

 

(LabVIEW should just set the SubVI with the same subroutine priority)


Is this an expected behavior ? and, if so, why?

Robotics

$
0
0

Hi everyone,

 

I am new to Robotics and still trying to figure out some things. I want to use the Quadrature shaft encoder on Starter Kit 1.0 (sbRIO 9631), can anyone provide an appropriate VI or some information to guide me?

 

Thank you in advance for your help!


How to reset a square wave graph?

$
0
0

I am using a PID controller to monitor a setpoint pressure so I want to create a square wave graph that runs for 60 s at a value of 1 and then for 1s it runs at a value of 0.

I have created a formula node with the following code:

 

u1=0;
P1=0;
Reset=0;
 
if {(u1<= 59)
P1==1
}
 
else {
(u1>59)
P1==0
}
for (i=0 ; i<0.5 ; i++) ; //this section just gives a time delay of 0.5 s
reset==1
 
my formula node has an input value of u1 which stands for time and two outputs P1 (pressure) and reset which resets the graph to the above code continuously.
 
Capture.JPG
The image above shows what I have so far where I want to reset the code that is running in my program every time the 60 s interval is done (which should look like the graph below)
 
Capture1.JPG
my amplitude is supposed to be my pressure P1 which runs for 59 s at amplitude of 1, and 1s at an amplitude of 0. I want to get this pattern continuously therefore that is why my code needs to be reset. Anyone know how I can do this?
 

 

CLAD Question

$
0
0

The following question I found on the recent (least I think it's recent) CLAD sample exams.  I got this one wrong.  I answered it as D because of a key word, "Invoke."  The answer is apparently B.  This is my question to you, LabVIEW world, how is the answer B?  I have changed values of controls and indicators using value of a property node before.  I even went straight to a Block Diagram and tried wiring to both a control and an indicator property node value without any issue.  Is this question wrong?

 

Q38: Which of the following apply to Property Nodes?
Property Nodes:
A allow attributes of files on disk to be programmatically manipulated
B can be used to update the value of a front panel control or indicator
C return an error if you attempt to read a property before it has been written
D can be used to invoke methods on a control

daq assistant

$
0
0

Hi!

How can I find DAQ Assistant it doesn't appear into Function EXPRESS and MEASUREMENT I/O? 

 

LVCompare load dialogs

$
0
0

I have written a tool do do automatic compares between files I have locally and their repository counterparts in a SVN repository.

 

Due to frequent RT deplays and code re-use over different targets, this causea a LOT of VIs to be marked as changed even though they are logically identical.  A problem occurs when trying to batch compare these files with their repository counterparts (LV Compare, not binary compare) with the aim of automatically reverting any VI whose change is not "real".  I keep getting "File not found" or other messages meaning I need to essentially sit in front of my PC waiting for it to do this automated work.  I could do other things with my time.

 

Is there a way to completely remove and pop-up dialogs when running LVCompare vir super private methods?

Front Panel - How to make text object change when a condition is met?

$
0
0

I am designing a semi automated procedure for verifying PXI-4224 cards. What I would like to have is a front panel similiar to the FP png attached.

Question #1:

I know it would be a true/false condition, but what object do I use to have pre defined text determined by said condition?

 

Question #2:

I am quite certian there are better/ more efficient ways of accompling what I would like, but I am doing the best I can with what I know. With that being said, How would I impliment the DAQmx Reset, SelfTest, and SelfCal to accomplish in the attached routine? I just need them to be acomplished and then drive the conditional text change (from above) occur.

Controls and indicators move on front panel

$
0
0

Hi,

 

Having created a gui and distributed it as an exe, I have found that some controls and indicators do not appear

at the location they were not intended on another user's monitor. But most controls/indicators are okay.

 

One of the 'moving' controls had to be deleted and re-created again for another reason, this then located okay.

 

So why should just a few controls/indicators move slightly from their intended position when displayed on another monitor ?

 

(Labview 2014 SP1)

 

 

Thanks,

 

Gary.

USB Port Reset without using DevCon.exe

$
0
0

The problem I'm facing is as follows: I have a device connected to a USB port of a laptop and control this device with Labview. The device shuts itself off when it encounters errors that are prescribed by the device manufacturors; in this case, it is a water bob, that when it sinks (thereby physically sensing a change in water level in a water bath) the device registers an error and shuts itself off and cuts the connection to the PC. In order to fix the problem, the user puts more water into the water bath, thereby raising the bob once more, and resets the device. By resetting the device though, the connection to the PC remains off, and so it's necessary to also unplug and replug the USB cable to the PC. This wouldn't be a big problem, except that control of this device is a larger part of a Labview program, and thus all of the error handling, etc. should be within the program. Yes, the user does have to reset the device and pour water, and so it shouldn't be such a big deal to just unplug and replug a cable in. However, as the software continues to run despite hardware problems, I would like the program to simply continue once the water problem has been solved.

Thus my question: Is there a way to rest the USB port just using Labview? I've read about DevCon.exe. from Microsoft, but this would mean that all future users of this software would also have to have DevCon.exe. installed on their PCs. Is there a different, rawer method of doing this, or do I simply tell the user to pull and replug the USB cable?

As this question has little to do with the Labview program I've written, and more to do with a method that I will insert into the program, I have attached nothing.


Keithley 2400 Random Error -113

$
0
0

Hello all! 

 

I am running into a problem with my LabView program when I try to use it with a Keithley 2400.

 

The Keithley 2400 is connected to my computer by GPIB via an Agilent 82357B USB/GPIB Interface and I am using LabVIEW 2014

I made a modified VI from the examples of the Keithley 2400 VIs that measures and records the current at an applied voltage over time.

 

When I start the measurement all works perfectly however at random intervals the Keithley will stop measuring for a few seconds to continue afterwards as expected. That translates into points where the current is 0 in my measurements. The error that reads on the Keithley screen is ERROR CODE -113. Sometimes, although rarely, the system will even stop measuring completely resulting in the need of restarting both Keithley and LabVIEW. As the error is completely random, and due to my limited knowledge in LabVIEW, it is very difficult for me to try to debug it.

 

I attach the .VI where I am having the problem.

 

What could be the solution?


Thanks a lot in advance,

 

Best,

 

Daniel.

Correct application of a 50Hz filter

$
0
0

Hi,

I need to apply a 50Hz filter to a DAQ signal acquisition (just noise for the testing).

When I apply the filter, the resulting signal has huge oscillations in the first part of the acquired signal (as you see in "Filter output.png"), after those oscillations the signal becomes filtered as it should.

I tried to change the sampling rate, the acquisition rate of the signal, and all other parameters, but I can't get rid of these oscillations.

What am I missing? 

In "Diagram.png" you see the diagram of the filter.

The signal is acquired at 10k rate and comprises 30k points.

 

I have some experience with Labview, but I never used its filters.

 

Thanks for the help

 

Filter output.png

 

Diagram.png

TTL signal with NI 9381 device

$
0
0

Hi,

 

I want to control a TTL input with the NI 9381. It allows you using a digital output.

 

I have measured the output signal and it was 2.8 V. The control has failed and I think that 2.8 is not enough to control a TTL input.

 

The device specifications:

Output high, VOH Sourcing 100 µA..................2.7 V

 

Could anybody help me?

Why do Boolean switch events stop registering after a user prompt.

$
0
0

Let me start by saying my labview experience is limited. I was more of a labwindows guy. It has been over 10 years since my last time using labview so sorry for the dumb question.

 

I am trying to simulate a Keysight 66309D power supply. When the user clicks on the voltage switch the event pops up a prompt user box requesting the channel and voltage to set. After that, none of the other switches will toggle when clicked and no events can be registered. But if i don't select a switch that has a prompt user box, multiple switches can be clicked and the event s perform properly.  Any ideas on how this can be corrected? I'm not using the event register , could that be the issue?

ADCS type descriptors for each PID

$
0
0

Hello,

 

I am working with the Automotive diagnostic command set and ran into some problems with the type descriptors needed to read each PID value as a usable number.  It is my understanding that the numbers come back in a binary format so im using the [Convert to Phys.vi] to convert them to a double floating point number.  Each PID requested from the vehicle needs its own type description to structure the data to be readable. [The engine monitor.vi] has two examples however im using 8 different PIDs and cant figure out the ones needed. I was wondering if there is a master list somewhere(becuase i was unable to find it) or if anyone has had experience with this and could help.  Thanks

Viewing all 68931 articles
Browse latest View live


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