Hi,
Sorensen power supply driver
Append to word using MsOfficeReport.vi
Hi,
I am trying to log the status of few buttons as indicated in the screenshot and writing the status to a word file. Each time, I click the PING button, a new word file gets created. Is there anyway to append the data?
Image may be NSFW.
Clik here to view.
Attached below is the screenshot of the word document(report generated after pressing PING button). Is there a way to format the data in 1st row, 1st column?
Image may be NSFW.
Clik here to view.
format and append data to word file
Hi,
I have designed a GO button when clicked it has to write the status of few buttons to a word file. As of now, the data is populating vertically.
1) How to populate data horizontally?
2) When the vi is running, for each and every click on the 'GO' button, the data has to keep logging.
This is not happening as a new word document opens every time I click on the GO button. Kindly help. Herewith, I attach the vi here.
Image may be NSFW.
Clik here to view.
I dont understand PWM code
Hi
While searching abount PWM control using labview, I found this VI.
But I can't understanding this mean 'Steps in a Cycle' and 'Cycle time PWM'
Please someone explain about this code.
配列の要素を取り出す
LabVIEW gets into hang mode while interfacing with Eurotherm 2404
Hi, I am trying to interface a Eurotherm 2404 with LabView 2018 SP1. I have designed a code to acquire the data from the controller. The eurotherm controller is connected with a temperature sensor which reads the room temperature and display it on the controller & also, the same data is shown on a waveform chart. But, when i try to run the program LabView gets into hang mode after sometime (i.e I will not be able to stop the execution) or it will close all the windows of LabView generating an error report (a snapshot is also attached) or sometimes the system will restart by itself. I am exactly unable to figure out the reason behind this. it would be really great if someone would help me out in solving this
NI 9205 fluctuations
Hello There
I am using NI9205. Here I have connected 5 Torque Transducers (TT) of which one is on 12V supply and four are on 24V supply (common to all four). When I start mesurement through the module, the torque value signal varies from 0.001V to 0.01V which is nearly 10-15Nm variation. Though for 12V supply TT i have connected 1 MOhm register (as shown in manual of module) between TT signal output GND to pin-17 common of the card.(not shown in diagram) Which works good. My queries are as follows,
1. Whether the connections I have made are ok? need any improvements.
2.How should I connect other TT?
3. Is there any specific way for receving signal and software filters? Because I am just using DAQ to read signals and some software signal filters to minimize the variation, but it slows the signal reading.
Please help me out
Thank you in advance
Accessing TestStand StationGlobal within LabVIEW
For a current project I am attempting to access and set an existing StationGlobal "SimulationMode" of type Boolean in TestStand from within a LabVIEW VI, using the following code depicted below:
Image may be NSFW.
Clik here to view.StationGlobal access
A fair number of examples depict this being done in the same manner, yet somehow I am not able to access this particular StationGlobal "SimulationMode". Even just trying to get the Boolean value (without the prior set Boolean) does not yield me the value of the StationGlobal Boolean. I am certain that I have correctly applied the Application Manager to link to the TestStand application, as per the following paragraph.
In a separate VI I was able to find that LabVIEW can determine that this StationGlobal exists: by using PropertyObject with the 'Exists' method I am able to obtain the accurate Boolean condition for whether the specified StationGlobal exists or not. It returns a true on "SimulationMode" as string input, whilst any other input (such as "SimMode") returns a false.
How would I be able to access and set the value of this StationGlobal of type Boolean in Teststand from within a LabVIEW VI? I am using LabVIEW 2017 SP1 and TestStand 2017 (TestStand 2017 API Ver 1.0).
Serial Data Write
Hi All, i am stuck in problem regarding writing data to labview.
Actually i want to send/write data to any port so that i can read data from other computer on the same port. Also i need to know that is there any way to read data from graph and then send that data thorough port.
Attached is my vi screenshot in which i need to get data (Center frequency, gain)in numeric form from graph and then want to send it to any com port.
Problems with the two Elapsed Time vi
Dear All,
I would like the realize the following purpoes, as shown in the attached figures:
In Loop 0:
Elapsed Time1 increase from 0 to 5s; Elapsed Time2 increase from 0 to 5s.
And then in Loop 1:
Elapsed Time1 increase from 0 to 5s; Elapsed Time2 increase from 0 to 5s.
In Loop 2:
Elapsed Time1 increase from 0 to 5s; Elapsed Time2 increase from 0 to 5s.
…..
InLoop 7:
Elapsed Time1 increase from 0 to 5s; Elapsed Time2 increase from 0 to 5s.
However, the real situation is:
In Loop 1:
Elapsed Time1 increase from 5 to 7s.
This means that the Auto Reset was not properly used in Elapsed Time1.
I have spent several hours to solve this problem, but failed.
Anyone can help me? Thank you very much.
Generate coordinates of intersection point of two lines
Hi guys, this is my first post 🙂
So basically i have 22 coordinates which i plot into a XY graph to make a "path". The problem is that i am not getting the "path" that i am looking for because i do not have enough coordinates to plot what i want, so i have to create or estimate more coordinates (with the coordinates that i already have) for my graph to be ok.
So i would like to generate the intersection point coordinates of some points so i can have the graph that i want. The first image is the path that i have and the second image is the path that i desire. you can take a look at my VI here.
If it wasnt clear, i would like to know how i can get "automatically" the intersection coordinate of 2 other consecutive coordinates? I started with a case structure to modify the estimation of coordinates, so if i have a D in the text file it means i will have a straight line so i dont need to calculate the intersection point, however if i have a C it means that i want to calculate the intersection point of 2 coordinates.
You can use the text file to get the coordinates i am ploting.
Thanks for your help.
Luis.
Advice Please. Talking to a PLC through Ethernet IP.
Hello, I just got a project and I'm a little unsure where to start. All I was told that I need to create a project that reads and writes data to a CompactLogix PLC using Ethernet/IP. I need some links/ideas for how to start wrapping my head around this type of communication. Really anything would be helpful. Do I technically not set up a device under the project tree on the labview side, just VIs that use the address? Thank you.
Problem: Real-time graphs vs show all points
Hello guys,
I didn't really know how to simply describe the problem, so I'm sorry if the title is not the most adequate. Here is my problem:
I have a VI that every minute reads some csv's and outputs the data to some graphs. This was implemented using a simple while cycle. What I want to implement now is a way to show the last 100 points of my csv.
What happens is that everytime a minute pass, the graph is refreshed with the same last 100 points read. For example: On my first iteration it shows the 100 last points, but on the next it shows 200 points being 100 points repeated from the last interation and so on...What it is doing now is just adding 100 points to the data already present on the graph whereas I only want it to show the LAST 100 points and nothing more.
How do I solve this problem?
Image may be NSFW.
Clik here to view.
plotting 1st column and 2nd column of excel sheet separately
How can I plot 1st column of excel sheet if I am having total 10 columns??
I am new to LABVIEW and have to do it as an assignment
Counting amp cycles
Hello all. I am desiring to count cycles in a current wave. I am measuring current on heater plates and I wish to count each time the current hits a threshold. My issue is that it appears I am counting only groups of cycles instead of individual cycles. The attached screenshot shows an example of my situation. . So in a 1 second time period, the Waveform graph shows about 80 cycles, 40 on the positive side of 0 and 40 on the negative side of 0. Yet, my Cycles counter will only show about 3 or so. As we have seen, the heater plates cycle 24 times ~ 0.16 seconds, then are at rest (~0 amps) for ~0.12 seconds. So in 1 second, you should get about 80 cycles, so our cycle counts should be much, much higher. Is Labview counting a group of 24 cycles as 1 cycle?
I may have a misunderstanding on how the Level and Hysteresis works. I am seeing a peak amperage of roughly 2 amps, so I set this as my level. I then set a Hysteresis of 1.5. So shouldn't this mean that if Labview detects a current within 0.5 to 3.5, it would count this as a trigger? I want to count on the rising edge as a count, so according to the Help for the Basic Level Trigger Detection VI, I would use Level - Hysteresis, which here would be 2 - 1.5 = 0.5. Am I thinking of this wrongly?
What's the difference between machine learning and deep learning?
Hello,
I really want to learn difference between machine learning and deep learning. Because, after some days, I'm gonna start a new project to recognize an object in LabView. When I search some examples about machine learning in Labview, I couldn't find anything for machine learning. Still, I do not know what should I use for object recognize. Machine learning or deep learning?
Thank you for all answers.
Graphing Two Temperatures in 1 Plot + X-Axis Scaling
I currently have a LabVIEW code that plots the temperature from around 120 or so thermocouples. I was wondering if it is possible to plot two temperatures on one graph? Also, it is possible to have the x-axis scale? For instance, the x-axis following the temperature but we want to see the temperature trend throughout the entire time.
Error recognizing numbers in text file encoded UCS-2-LE-BOM
Image may be NSFW.
Clik here to view.
I am trying to convert a peak area and height read in from a GC file (.csv) from string into a number. The only way Labview will read in the file is as a string, I have tried many other read options. I have tried a number of ways to attack this, but in the end it appears that the file encoding (UCS-2-LE-BOM) is to blame and creates spaces between numbers that Labview does not recognize. I have tried a program to remove the spaces, they are not seen. If I externally convert with notepad ++ the file to ANSI, everything works fine. This isn't practical for my application. Any thoughts on a workaround that I haven't tried?
Help with missing iterations - TTL pulse timed loop
Hello Labview gurus,
I'm having an issue with an application using an externally triggered timed loop and I wonder if anyone can advise on a potentially more robust solution.
Background - I'm trying to slave the scanning mirrors of a fluorescence laser scanning microscope using the trigger interface of the microscope controller.
The microscope can be configured in software to acquire images (via raster scanning of a laser across a sample, line by line) upon arrival of a TTL input pulse. The microscope controller then generates 4 digital timing outputs:
- pixel clock (used to configure analog input sample rate)
- line clock (signifying the start of a new line)
- frame clock (new img frame)
- beam blanking pulse, which runs at the same rate as the line clock but with a longer duty cycle.
The sensor which collects the emitted fluorescence (a PMT) is separate from the microscope, and so data is acquired from a separate amplifier at the rate of the pixel clock - I'm using an NI PCIe-6374 multifunction IO card for all of this.
The GUI i've written in Labview cannot talk directly to the microscope hardware, so instead I set it up to trigger a short sequence of images (3-4 is sufficient) and then use counters to capture the characteristics of the 4 digital timing outputs. I can then configure the Labview GUI to perform various imaging tasks using these settings - so far so good
The problem i'm having is how best to implement triggering and data acquisition without missing loop iterations. I've attached a sample VI using a Timed loop with the beam blanking pulse as the trigger for the loop (it's crude, sorry). A digital line is set up and started to trigger the microscope, then the loop begins. A second trigger can be sent to the microscope if just one frame is required, as it doesnt stop scanning until the frame finishes.
What I found however is that the loop misses iterations, despite being triggered by an external TTL pulse. It's triggering at about 500Hz, so nothing crazy. The pixel clock runs somewhere between 600kHz and 1MHz, but the 6374 should be able to handle up to 3.5MS/s so don't think that should be a problem (could be wrong).
At first there were quite a few things going on in the loop, but even after stripping them out it didnt make a difference. Reducing the number of samples to acquire also made very little difference (even going down to 10 samples - from over 500 - made no difference in the number of missed iterations, so AI sampling doesnt immediately leap out to me as the problem.
TL;DR: Can anyone suggest a way to reduce the number of missed iterations using an externally-triggered timed loop
Any help would be greatly appreciated. Is there a better way to achieve what i'm trying to do that doesnt require loops in this way?
Thanks!
Allen
Interval preset for write to measurement/text file (other than time save interval)
Hi,
I am wondering if it is possible to write to a measurement/text file at a user defined non-time save interval.
I am acquiring different physical signals (about 32) with Labview 2015 from non NI-Hardware (HBM Quantum X MX840a and MX1609, Heidenhain EIB741, Arduino-based FluxDAQ). The acquired data is sampled by time and write to a file without any issues.
Nevertheless, for the data analysis it would be helpful to have the data sampled by space instead of time. For instance, I currently save the data with a time rate of 10 Hz and I would like to save the data with a space rate of 0.1 mm.
Attached is a MWE (minimal working example) for a time save interval (see Figures, too).
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.Time save interval - Labview 2015
Two signals are simulated: triangle and sine for travel and load, respectively. Furthermore, these signals plus the measurement time are saved in a file with the express VI Write to measurement file at the sample time given by the control Time rate when pressing the control Meas. Start. Instead of writing at a 10 kHz sample time rate (in this case for the MWE) I would prefer to write at a 0.1 mm sample space rate.
Main problems (here the first decimal point of the travel values is taken into consideration because of the chosen sample space rate of 0.1 mm):
- Identify and search the multiples of 0.1 mm (0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9) in the travel values
- The increment of the first decimal point of the travel values may be non-consecutive:
- 500.1256
- 500.3265
- 500.7521
- 500.8569
- 500.9963
- The first decimal point of a travel value may appear repeatedly:
- 500.2356
- 500.2659
- 500.2787
- 500.2989
- The operations performed on the travel signal must also be carried out on the other signals (load and time) to have the same number of data.
- Due to the long-term measurements, the space sampled data have to be written to a multi-file. File termination condition for starting a new file should be after a certain number of samples or when the control Meas. Start is switched again.
In theory: my first idea is to save the data into an array and after the file termination search for the multiples of 0.1 mm, interpolate in the case of b., calculate the arithmetic mean in the case of c. and write to measurement file with the express VI.
In practice: which is the best way to achieve this in LabVIEW?
Any kind of help or ideas will be really appreciated!
Thank you in advance