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

Getting SVN Revision while using EXE app

$
0
0

Hey all,

 

I have searched and found the attached VI("Get SVN Rev.vi").

I combined it in my main VI and when using it in the labview editor it works fine.

After I built my main VI to exe file, it does not work anymore and cannot find the SVN revision.

What part of the VI("Get SVN Rev.vi") is not compatible with exe app? Do you have any suggestion?

 

Thanks,

Shak.


Labview 2014 SP1 and LINX problems

$
0
0

Hello I am trying to use the LINX on an Pi 2B to read data and to controll LEDs.

 

I am able to read data from the Pi, but I am not able to send commands to the Pi.

When I press the button on PC main the button on Pi Main lights up, but the LED Connected to the button on Pi Main does not start.

When pressing button on Pi Main the LED also lights up.

Way does it not work using global variable when I use my main computer as an global variable server.

 

Look at the video link.
PC Main.JPG

 

Pi Main.JPG

 

increase data acquisition time on waveform graph of voltage

$
0
0

I pretty new to LabView and I am using a pressure transducer. I understand that using this will give me a voltage and I have calibrated it so I know the conversion of voltage to pressure.

 

After calibration I want to use it to measure the pressure through a pipe over a period of 5 seconds. However, I used DAQ assist and for the calibration it gave me perfect results over 1 second. I am using the same code but I am unable to increase the time scale of my graph from 1 second. If I increase the axes to 5 seconds, the graph stops at 1 second. My graph continously runs but after 1 second it reruns.

 

I would be very grateful if someone could help me record more than 5 seconds of results so that I can see the pressure changes. Thank you so much in advance.

looking for a way to generate experiment sequences

$
0
0

Hi,

 

I'm trying to figure out a way to use labview and NI USB-6211 to generate and control the output pulses and data taking in well timed sequences. The goal is that I can input a table of parameters in the front panel and the DAQ can generate the corresponding sequences (a simple illustration attached(sorry about the bad drawing)). I would like to have a precision on the level of milliseconds between shots and microseconds within shots, for now, and I might use some external timing source in the future.

Screenshot (5).png

I tried the stacked sequence, using a counter channel as the main output, and other channels triggered off it to ensure precise timing. The VI is attached, the file name is mainsequencebettersync.vi.

The problem with such method are: 

1. the timing between shots are not very precise.

2. I have resources conflict problem when either multiple analog output channel, or multiple analog input channel are active within a shot (error 89137 and 50103). 

3. if I want more shots (frames in the stacked sequences) with different configuration, I have to create then in the block diagram and reconfigure all the front panel controls. In the future, there might be tens or even hundreds of shots, so it will get out of hand real quick. Not to mention I will need to modify the number of shots and the configurations within quite frequently. 

 

So here's my question: is it possible to achieve the goal I described above with the software-hardware combo I have? If so, can you tell me how to do it? If not, can you recommend some hardware and software that can achieve my goal?

 

Thank you in advance

Machine Learning Toolkit for LabVIEW 2018

$
0
0

Is there a version of the Machine Learning Toolkit for LabVIEW 2018?  When I try to install it, it wants LabVIEW 2017 installed.  

 

Thanks

How to extract the fundamental from a single cycle of a square wave?

$
0
0

Hi, I want to extract the fundamental waveform from a single cycle of a square waveform. But using square waveform VI I am not getting the correct fundamental waveform. 

Screenshot_9.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I thought maybe because since the waveform is not completing a full cycle at t=10 by jumping back to 1. So I had increased the no. of samples by 1 to make the waveform complete, but I am still not getting correct results.

 

Screenshot_3.png1 Square Wave cycle with an additional Sample

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Please help with this problem.

Square Wave.png

LabVIEW Real-Time and FPGA Online Training

$
0
0

In the exercise manuals for LabVIEW Real-Time 1 & 2 and LabVIEW FPGA online training, a cRIO-9074 integrated chassis and controller and multiple other NI hardware items are required for the courses. Is there any other alternative to learn LabVIEW Real-Time and FPGA without spending thousands of dollars on hardware? Would going through the online courses without doing the exercises be enough to become adequate with both? Is the NI RIO Evaluation Kit a good alternative to learning how to use LabVIEW Real-Time and FPGA?

Programmatically Altering Chart Legends

$
0
0

Hi Everyone,

I am struggling to program chart legends and I am hoping to get some help. My code is simulating a NI9205 with NIMAX and DAQmx.  I am trying to programmatically update the legends by the user specifying the channel names.

 

I am having two problems

  • I can’t get the unused channels to disappear on the legend. I only want the legend to display channel names specified in the “Channel Names” Array. Reading online this seems to be a bug in LabVIEW. Any idea how to get around it?
  • I can’t get the first channel name to be displayed on the legend. I clicked the Execution Highlighting (light bulb). It shows the first channel name being indexed; however, even though it enters the property node the channel name is not displayed on the chart. This has been bothering me for hours, and I don’t know what I am doing wrong. Attached are my codes.

 

ANY INFORMATION WOULD BE APPRECIATED!

Thanks

Image.PNG

Image 2.PNG


Displaying timestamped data on a graph

$
0
0

Can anybody tell me how can I read and display the timestamped data on to a waveform graph from a text file (attached)?

How do I convince my team to switch away from LabVIEW?

$
0
0

Hello everyone,,

So, my team has always used LabVIEW, and it sucks big time, but as far as I know, they want to keep using it aside from 1 or 2 mentors. How can I convince them that there really aren't quite as many companies who are looking for LabVIEW skill, and that we should switch away from it?

Timeout error

$
0
0

Dear users,

I am having similar troubles as others with timeout error -1073807339. First I want to say that I have reviewed solutions for this in https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L3mSAE&l=nl-NL, and I have installed all the drivers I could find applicable for this.

drivers.JPG

Now the equipment I am using is TDK-Lambda GEN 57 750W power supply, and the instrument driver I am using is TDK-Lambda G series.
I have explored and I see the error happening here:
ERROR 0.JPGeRROR.JPG
So the error happens at VISA read. 
I have done serial port loopback and it works, I have checked the address and baudrate of the instrument and setup in labView. The address is 6 and baudrate is 9600. I have also sent manual commands through PuTTy to check if the tool responds, and I could control the power supply. At this point, I cannot imagine what else do I have to check, so I am wondering if the driver is correct even?

Any input is appreciated, maybe something else I should/could check?

Blend moves

$
0
0

Hello, I am programming a software for helical winding machine. I have two axes : Axis 1- Mandrel should be always rotating at constant speed and Axis 2 Carriage should be moving along a straight line back & forth to make the winding. I have made a vector from these two axes. The profile would be as follows : 
1. Helical Pass : Mandrel rotates while the carriage is moving from the start till the end of the mandrel to have a specific winding angle
2. Helical Dwell : at the end of the pipe the mandrel should continue rotating while the carriage does not move
3. Helical Pass : same as 1 but in the reverse direction
4. Helical Dwell : Same as 2 but at the start of the mandrel


For slow speeds I have no issues. But when speed increases the mandrel speed will decrease at the dwell and then increase after blending the helical pass move

The vector speed always decreases when the carriage changes direction but mandrel only begins to decrease its speed at high speed profile. 

When checking the speed of the carriage I have noticed that I am having issues when the carriage does not reach the null zero position at the dwell. It decelerates and directly accelerate.

I have LV2014, NI Motion 14.0 and PCI7344 Board controlling Siemens servo drive system.

Please advise. Thank you

fill a 1000 dimension array with data from serial port using VISA

$
0
0

Hi there, I'am trying to store data from serial port into an array of dimension 1000, which I want to plot afterwords but doesn't seem to work. After getting 1000 elements from serial I only have two in my array. What I want to do is append every one of the 1000 values to the same array, but it doesn't seem to work. What am I doing wrong?Capture.PNG

 

 

Waveform chart

$
0
0

Hi, im having some trouble setting up a waveform chart with multiple plots. The plot gives the excel output in the picture, but i dont need to plot the channel name (102,103,104), just the values. I'd like a separate plot on the same graph for each channel. Probably something to do with the arrangement of the array but cant seem to fix it.

Thanks 

HMAC-SHA256


Deployment with .VIMs

$
0
0

I am trying to build a set of VIs that will be loaded dynamically by a built LabVIEW app (.exe)

I'm using a 'Source Distribution' type build spec.  One of the VI's to be loaded dynamically calls a malleable subVI which in turn calls another (ordinary) subVI.  That bottom-level subVI doesn't get copied by the builder (breaking the callers).  The malleable VI seems to be embedded in the built 'top-level' VI, it is not saved as a separate file; and when I open it (in the IDE), LabVIEW displays:

mx.png

Apparently the Source Distribution builder gets confused by malleable VIs.  Is there a known workaround for this?

Waveform Chart Multiple Plots Problem

$
0
0

Hi, I'm new to LabView and am trying to mimic the visual side of drive cycle testing using a waveform chart. This involves having one predefined plot and a second plot that is drawn up in real time by the user twisting a knob. The aim is for the user to follow the predefined plot as closely as possible by twsting the knob. However, I'm not sure how you would go about plotting a live line without overwriting that predefined line, or even how to link up two sources of input to the waveform chart (it only accepts one input).

The image attached below shows my current logic. So far, you can load different types predefined plots (using the "Cycle Type" combo box and pressing a "load" button). The issue here is not knowing how to plot a live line using a knob starting from 0 seconds and not knowing if the predefined line will be overwritten. The second image just shows what one of the predefined plots look like. I have also attached the project and one of the predefined plots. Thanks in advance!

Detect the presence of child window in exernal application

$
0
0

I am trying to send mouse clicks to an external application. The external application controls a power supply and runs through a number of set tests. At the end of each test a child or more probably grand child window pops up to say that that each individual test is complete and results can be read from any connected test equipment. In this case an oscilloscope is connected and I want to take a screen shot at the end of each test and have Labview click on the OK button to start the next test.

The problem I have is that using the Labview windows utilities labview_win_util32_8.6 that make calls to LVWUtil32.dll There does not seem to be any way of getting access to child windows.
I did find a reference on the forum to using .Net, this gave an example using an invoke node Process>GetProcess. As child windows are created by other programs this does not show any change in the number of processes.
It may be that accessing the  EnumChildWindows function in user32.dll may work, but I have not been able to successfully make any call to this dll. Examples work OK but even when I try to copy them they fail. I'm obviously missing something here, not least relating Labview types to Windows types and how to actually make the call. 

All other parts of my program are functional, I'm just held up trying to find out when this window pops op. Does anyone know how to use Labview determine the presence of a child window.
 
 Thanks in advance
 Peter

Latch when released not working

$
0
0

I have a button, and the mechanical action is latch when released. But when I run the program, its working as switch when released and not latch. What could be the cause of this. I have used this same code in another vi in this project, there the latch when released works perfectly. 

cant see any COMs in the serial port list

$
0
0

Hey guys, 

So im trying to make a simple EXE program to blink an arduino using LINX.

everything works great on my computer.

i compile it and put the exe on a different computer and there i cant see any COMs in the serial port list.

arduino drivers are installed fine, and arduino IDE works too.

(i have the runtime engine setup and the program works... just the serial port list is empty)

 

Thanks for your help

Viewing all 69241 articles
Browse latest View live


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