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

How to save XY Graph programmatically

$
0
0

Hi

I have a LabVIEW program that would automatically export its logs to predefined file names, and paths, the only part that I am having an issue with is exporting an XY Graph.
I would like to export this XY Graph just like using the following menu command:
2019_01_30_17_51_33_Window.png

 

I want to save the XY graph into a predetermined path, block diagram follows:
2019-01-30 18_00_40.pngThank you very much in advance Smiley Happy


Trigger for timing hub

$
0
0

I am currently using an NI USB-6356 DAQ with 8 analog inputs and 8 digital. All 8 analog inputs are being used and I wanted to implement a trigger for data collection. However, my trigger (the button on the power supply) is also analog. I was curious if there was another way to add a trigger convert my analog trigger to digital so it could be in the digital input area. Attached is a copy of the current block diagram.

Remote debuger connects but program hangs

$
0
0

I am attempting to remote debug a program that I have debugged before. But now when I connect the remote debugger the program just hangs. Bringing up the block diagram and starting the trace shows nothing on the diagram, no data flow or anything it just sits there like it is waiting for someone to tell it to start running. I don't even get the File Open dialog that should popup as soon as the program starts.

 

I can run the exact same code compiled without debugging and it runs fine except for the bug I am tracking.

 

The bug I am working on is the program hangs when Exit is pressed.

 

Ideas? Suggestions?

 

I attached my code with all the company branding removed

Error on dll call from python

$
0
0

Hello,

 

I write simple addition and subtraction vis then create dll file. I use ctypes package of python to call this dll file. Although I can load the file successfully, I find that the output is always 1018 no matter what the inputs are. I suspect that 1018 is the error code of LabVIEW. How can I solve this problem? Thanks a lot!

Frameworks/templates for multiple asynchronous tests using shared DAQ device?

$
0
0

I have a few potential customers that are looking to create some fairly simple tests- for example, read a couple temperature sensors/booleans/analog values and record them to file. Sometimes there will be a few outputs (analog or boolean) but nothing fancy.

 

The customers are asking for multiple asynchronous tests be to run on the same hardware. For example, they may have four test bays where they can load a DUT and hit "Start test 1", let it run, grab some coffee, then load DUT 2, hit "Start test 2", and so on.

 

Are there any existing frameworks that let you use the same DAQ across multiple tests like this? Normally, the single test will lock down the DAQ card even if it just uses one AI channel. Adding a second test wouldn't work with normal DAQmx calls. Requiring 4 DAQ cards when a single DAQ would work is an expensive way to do this when many DAQ cards have literally dozens of analog inputs.

 

My initial thought is to create the whole thing in the Actor Framework and make a background "DAQ scanner" that reads all potential DAQ channels all the time. Individual test actors would then "subscribe" to the individual channels they need, and would read data from the Scanner actor instead of DAQmx calls directly. That solution is definitely doable, but it's certainly not trivial. Does such a beast already exist somewhere, at least as a starting point?

 

(A side benefit to this setup is that multiple subscribers can read common inputs- for example, a supply pressure dropout boolean might trigger an abort across multiple tests.)

 

Edit: Forgot to mention, I don't think this is something TestStand does natively, but if it is that would definitely be a possible way to go rather than LabVIEW.

Starting data acquisition from combination of two triggers

$
0
0

I have a program recording data using DAQmx VIs: Create channel -> Sample clock
-> Trigger start (T1) -> Start.Retriggerable-> Analog waveform read (Sequence) Read vi is inside of a FOR loop. This way I am averaging predefined number of waveforms.
T1 is generated continuously by an external device.

Is it possible to start the Sequence programmatically by another trigger T2 from different external device, i.e. trigger T2 "arms" Trigger start vi to accept multiple T1s to start multiple waveform acquisitions synchronized with T1?

I did look into Start Arm Trigger, but to my understanding it works only with counters.

 

Thank you.

Large number of test steps - Sequencer / State machine

$
0
0

I have a program that I need to make that has 650+ steps. Each step needs to be logged individually as a test step. Most steps are repeats that have to do with timing and sending a few commands in-between. 

 

In LabWindows my company has made a sequencer which allows nearly automated logging and easy addition/removal of test steps. In LabVIEW it seems state machines are the way to go and when I created a program of 16steps everything was ok. Now I'm tasked with writing code for 650+ test steps and I'm unsure how to handle this.

 

Can you shed some light on how to handle such large sequences? Doing this through a state machine the way I'm thinking, where each step is a state, is unfeasible. In these scenarios do people turn to TestStand? 

 

Thanks in advance.

data storage and manipulation

$
0
0

Hi there,

 

I have currently builded the schematic shown below, my aim is to take the data of 2 waveforms, store them in 2 arrays (using the index array to separate the signals) and then zero pad each array using the insert into array function. However, there seems to be a problem in the connections. Any ideas will be greatly appreciated.

 Thanks in advance!Screenshot 2019-01-31 at 22.08.07.png

 


How to use time delay properly

$
0
0

Hello Everyone,

I am new to using LabVIEW and have encountered and error with a .vi that I am working on. I am attempting to sample 100 samples every 900 ms at a rate of 1000 Hz. When I run my .vi it works fine for a while and then gives me the following error.

 

Possible reason(s):

The application is not able to keep up with the hardware acquisition.

Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.

Property: RelativeTo
Corresponding Value: Current Read Position
Property: Offset
Corresponding Value: 0

Task Name: _unnamedTask<10>

 

I have attached the file I am using to try and determine what the error is.

 

Thank you, 

Jon

High Rate FM Data Collection Help

$
0
0

I am currently working on a project that involves LabVIEW Communications.  I need to capture data from an FM signal (ex. 95.5 MHz) at a very fast rate (10MHz or greater) using an FM Rx and a USRP.  I have slightly modified the "Spectral Monitoring (History)" code to capture the FM modulated signal, but it captures the data in frames at a very slow rate (~500Hz).  I am very new to this LabVIEW Communications.  I notice that the intensity graph is captured in a matrix form, and can be saved as a CSV.  I have made the samples/frame as low as I can without glitching the program.  I want as many frames per second as possible. 

My Rx receives 88-108MHz signals.  My USRP is rated from 50MHz to 2.2GHz. 

Every time the USRP receives a new bit of modulated data, I want LabView to Capture the data.  Ideally, I would want a complete 500ms of data, where if I re-transmitted that modulated data at the original frequency (ex. 95.5MHz) it could be captured, and deciphered from another receiver. 

Attached is a screenshot of the program I am looking at. 

Waveform Chart Properties bug

$
0
0

I'm using LabVIEW 2017. When I set some Chart XScale properties, I see the changes reflected on the chart. If I then make the chart invisible and then visible again, my change is gone. I've attached a snippet (I think so anyway - I've never used snippets before). If you run that code with HighLight execution on, watch the chart X scale change as expected, but then change back at the end unexpectedly. Can anyone explain this behavior??

 

[Trouble Shooting] FlexRIO cannot read camera-link camera image

$
0
0

Hi,

 

Now I'm working on the FlexRIO PXIe-7972R + NI 1483 for the camera-link camera. I already installed and connect all devices properly. The camera I used is pco.edge 4.2, with full camera-link communication, support for 10-tap 8-bit data. I just modify the example code from "10-Tap 8-Bit Camera". Now, I can detect the camera clock as figure, and the module is enabled. I use the IO Module\CL Control 1 to send the trigger command. However, when I start to acquire the image and send the trigger, there is no any image transmitted. I also discover the IO Module\CL Frame, CL Line, and CL Data are not valid as figure. Is anyone know where might have problem? Thanks.FlexRIONI1483.png

 


Best,

Yong

Predicting Temperature Rise Curve

$
0
0

I have to be a little vague due to NDA but I'll do my best to try to convey my current conundrum. 

 

I am a self taught Labview user in an R&D environment and am curious if anyone has some suggestions on the best approach to do as the subject says.

 

I have some large mechanical components that need to have measurements taken at a certain temperature. I can control variables to bring the temperature up or down on the equipment, but seeing that it can be very large components it can take over 24hrs to thermally stabilize. This can create a long test time if I have to wait a day to see if I ended up at my target temperature. If I undershoot or overshoot I manually have to guess again to see if I get to my target temp.

 

I'm looking for a way to predict the stable temperature of the equipment after x amount of time. I've tried extrapolating data after a certain amount of time, and that works to some degree, but I'm curious if anyone has any better ideas. 

 

Is there a way to implement Newton's Law of Cooling formula in some way?

 

I'm open to anyone's suggestions that would be a better approach than what I'm currently doing.

vi package manager

$
0
0

Hi guys..

 

I would like to ask a few question as a beginner for labview.. I just started and facing a few problem. Hopefully you all guys can help me. 

 

1- What should I install for VI package manager? I think this part very important to interface between hardware and software.

2-Any link or reference i can explore for myrio? especially in design the block diagram. Currently in my lab I have myrio and labview 2016

 

thanks you.

Call Explain Error Dialogue programmatically in EXE-File

$
0
0

Hello,

 

in a built EXE (LabVIEW-Version 2016) I want to call the Explain Error Dialogue programmatically.

 

In LabVIEW development environment it is reached via menue item "Help->Explain Error...". Programmatically call can reached via invoke node (see picture in attachment). But invoke node doesn't works in built EXE, because the menue item "Help->Explain Error..." does not exist here.

 

Is there another way to call Explain Error Dialogue?

 

Thank you in advance.


Basic TCP/IP Communication LabView - Question

$
0
0

Hi, I want to ask a question. If you help me, I appreciate it.

 

On my project, I use ultrasonic sensor and NodeMCU ESP8266. I write a code on Arduino to start and receive data of sensor. Arduino code send Trigger signal to start sensor, then it generate Echo signal whose length give us sound waves' travel duration. Then I apply some formulas to find distance (cm). I want to calculate distance on LabVIEW, and create a executable file which is written all distance measurements.

 

First of all, NodeMCU ESP8266 connects to server and IP address, so I can see duration time coming from sensor on HTTP Web Page. (As you can see on duration_http.PNG) 

 

I can send Trigger signal to sensor and receive Echo Signal from sensor to use Wi-Fi ( wifi.server (80)) on Arduino code. I want to process signal to show distance (cm) on LabVIEW. So, LabVIEW should listen and read TCP/IP. But I can not communicate, because measurement on duration_http.PNG does not print on front panel on LabVIEW.

 

If I would listen and read TCP/IP port, then i will continue signal processing. 

 

Please, share your comments and suggestions.

 

Program fo Card NI 4139 smu, get sine

$
0
0

Hello,


I have a problem with the PXIe-4139 SMU card, and with the LabView program.


The program must generate a sine for the range of 100 measurements / samples from 0.01 to 1 V, and then the pxie card must make a measurement, which is written to the table.
I need to generate a sine and give it to the capacitor and then measure the sine.

Capacitance for the layout element.in the specified range.

 

 

Measurement performed at 1V, 50 Hz, and 100 qF

Phase shift = 71.733
Impedance = 110
Capacity = 150qF


The Exel file is the theoretical results for: 0.02 V
Thanks for help

How to find out which lines a user has assigned to a DAQmx task

$
0
0

I have written an application in LabVIEW (2018) that allows the end user to plug in low-end USB DAQ device (USB-6008, USB-6001 etc) and select the two digital output lines that they want to connect to their equipment.

I can check that they have assigned two lines but I haven't found a way to determine which two.

 

I am outputting a byte at a time (Digital U8 1 Channel, 1 Sample) in which the bottom two bits carry the output data. I need to know which IO lines the user selected so that I can shift the data to the correct positions. I can find out all sorts of info on the device (how many digital outputs it has) etc, and the DAQmx Channel property tells me how many lines the user assigned to the task but not which ones.

 

Any clues?

 

Many thanks.

Best way and performance to not overwrite files transfered by FTP

$
0
0

Hello to all, first of all thanks a lot for reading this post and being able to help.

 

I would like to do the next:

 

I have a PC Server FTP with a folder that contains 1000 files.

Then I have a PC client with a folder that contains 1005 files.

 

Now I would like to send just the new files (5 files) (so not overwrite the other 1000 files).

¿So what is the best way to transfer just the new files to the PC server?

I can transfer 1005 files from PC client to PC Server but I think that is not the best way in performance...

 

Thanks a lot

Not able to write into console when VI hasn't been called with CMD

$
0
0

So I created a basic Vi that search for the current CMD process that's open and then write messages to it.

My problem is that my VI only works when I call it with CMD even though it should logically work when I open it manually as long as a CMD.exe is already Open.

You'll find the VI attached to this message.

Simply go to CMD.exe type C:/..../your_vi_location/Prototype-02.vi and the VI should type success in your command.

But then try letting the CMD.exe open and compile it ,sadly it wouldnt work.

Can someone tell me why is this the case and how can I fix it?

Thanks

Viewing all 67024 articles
Browse latest View live


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