I have Visa Alias setup for COM3 to "UUT". From time to time the system will stop communicating and what we are finding is that the Alias is no longer set to "UUT", but COM3. There was no hardware change. This seems to happen randomly and typically after a system is powered down for a period of time or even a weekend. I have multiple setups and it does not seem to happen on them all. I also have seen it happen on different revisions of NImax. Any suggestions are appreciated.
Alias in NI Max Resets to Default
How to synchronize analog input acquisition and do and output to digital I/O milliseconds later?
I am performing an analog acquisition with a NI USB-216. It is started using an Daqmx StartTrigger.vi, set for digital edge, on PFI2 (I am externally triggering the acquisition). This part works fine. As the AI acquisition occurs I need to control one digital I/O line several milliseconds after the acquisition starts. The timing need to be precise. I wish to use the start of the analog acquisition for the start of a millisecond timer (T0), then after several milliseconds set a Digital line high. I can't seem to find a proper working way that would allow me to do this. I tried using StartTrigger.vi setting it for digital edge on PFI2. That didn't work, Also tried using ExportSignal.vi to export setting input as "StartTrigger" and directing it out to PFI15 which is hardwired to another port line which I try to read but could'nt get that to work either. Seems I would need to run that in a loop to keep reading the port and I didn't want to do that. Any help would be appreciated.
Start/Stop large data processing at will?
Dear all,
What is the best way to do start/stop large data processing at will? Such as when the user click the "start" button, the button will change itself to "stop" button, meanwhile the data processing starts and diplays results. This processing will stop either when it finishes or the user click the "stop" button. If it finishes naturally, the button will become "start" again.
Is "producer/consumer" structure can do that? how the 'procducer' stops the long processing in'consumer'?
Thank you very much!
Animated Gif in PictureBox DotNet
Okay so I'm unsure why this isn't working. I have an animated gif that I want to load from a file on disk. I do not want to embed the gif on the front panel I want it loaded from a file at runtime.
Using the .Net PictureBox I can load an image from a file, but if it is a gif it is not animated. I've tried several gifs and all of them just show the first static frame. Is there something I'm missing to allow a gif to be loaded in a PictureBox? Attached is an example gif and code for loading an image taken from here. Thanks.
Republishing an Unpublished Web Service
Hi everyone,
If a web service is unpublished, is there any way to re-publish it on a remote windows PC, if I have the .lvws file, but not the installer?
Thanks,
Soheyl
LabVIEW and CAN getting started programming
Hi!
I am new to CAN and LabVIEW communication. I am trying to write and read a message from a CAN bus. I have LabVIEW 2015 SPI. I was reading through the NI-CAN Hardware and Software Manual and in chapter 7 Channel API for Labview (pg 128) and it said to use some blocks that are not available to me. I was wondering where I could find these blocks and if thereare any resources out there for just starting out with CAN communication.
Here is the link for the CAN Hardware and Software: http://www.ni.com/pdf/manuals/370289k.pdf
Turn on LED when measurement is made
Flat sequence is best way to turn on boolean led during measurement? Is there any better solution for this?
Trying to Add a Timing Element to Case Structure
Hello, I am new to LabVIEW and currently working on a project to design a system that detects when an accelerometer has exceeded a predetermined value and then triggers a case statement. The condition to this is that I would like the case statement to be delayed 10 seconds to determine the final case. I have looked into multiple timing functions and LabVIEW and have had no success as I believe the while loop I am using prohibits them. I am currently using LabVIEW 2016 (Student Edition) with an NI MyDAQ to collect and analyze my data. Could someone help me with this issue?
Get function or unit from multimeter HP34401
I need to read what function or unit is set on multimeter. I set multimeter, then i click button in vi and i just read measurement from multimeter, always only one measurement. Measurement will be placed in multicolumn listbox, i need write to multicolumn listbox unit (V, Hz, ...). Problem is i dont set function in code (DC Voltage, AC Voltage, Resistance, Frequency) and i dont know unit from measurement. Is there any way to get function or unit from multimeter?
TEDS Manufacturer Defined Templates
Is it possible to use custom templates with the DAQ TEDS library? I have created valid templates with manufacturer IDs other that "0" (IEEE std) and template numbers above the IEEE range. I can write these to a VTEDS file, but only if I also use the "IEEE Standard" value for the Selector of Description, (choosing the "Manufactor Defined" value as the Selection of Description throws an error in the Write VTEDS file vi).
However, the VTEDS file cannot be loaded into the device with the DAQmx Write TEDS vi - it throws an error. In fact that vi seems not to accept any template that has a ManufacturerID other than "0" or a template number above the standard range. If I save my custom template using standard values - for example ID "0" and number "41" then the write proceeds fine. Of course this is just a test case, since these values refer to an existing standard template.
What am I missing?
How to set properties of control references when I get them from "Controls []" property
If I create a reference to an indicator, I can set every property I need to. I'm trying to duplicate what I did on a single boolean indicator on 20 of them. I used This VI, to Pane, to Controls[] The references aren't useful at all. I tried casting them to more specific class (Boolean) but that doesn't work either. How can I get an array of references that will work the same as ones I create by right clicking?
labview 2015 (32 bit) crashing
I am using labview 2015(32 bit) on my laptop that has windows 7 64 bit. It was working fine but now it shows the crash report as shown in the attached file, whenever I try to open labview. The only change I have done is I installed NI DAQmx 16.0. I am not sure whether it is causing the problem or not.Any suggestions and help are highly welcomed.
Thanks,
Mystery offset when using references to build array
Hello,
I am trying to update color boxes and text in an array from a subvi using references. Sometimes, everything works perfectly. Other times, there will be some random "default value" boxes between the [0,0] of the array and the intended output.
I've created a "simplified" .vi to illustrate the problem. The 4 arrays update from the pass/fail boolean array control. Below is the correct case:
Sometimes, the arrays calculated using the reference/index method will be offset by some amount, which is not necessarily the same between the two arrays:
As you can see, the resulting arrays are mostly correct, just shifted off the true [0,0]. I've found that editing a cell in that array will cause this issue. I'm not sure if this is the ONLY thing that causes this issue.
The result after running:
Please see attached vi for block diagram. How can I make sure my vi always uses the correct [0,0] index?
Announcing... the LabVIEW 2017 Beta Program
Greetings,
You are invited to register to participate in the LabVIEW 2017 Platform Beta Program.
You can register by visiting http://www.ni.com/beta and selecting "LabVIEW 2017" from the list of beta programs. Please be sure and enter your complete address information in Western characters. All customers outside the United States will have to pass Export Compliance as defined here.
Please complete the profile questions to help us understand your experience and use cases with LabVIEW. This information can be critical in whether we accept you into the Beta program or not so more information is better. Make sure you agree to the Terms and Conditions (T&C) of the beta program so that you can complete your registration.
After you register, please be patient while the beta coordinator processes your application. You will be notified if you have been approved. Registration does not necessarily guarantee you a position in the beta program. Determination of acceptance into the program is up to the sole discretion of National Instruments.
We will have a private section of the Discussion Forums set up for beta users to discuss the beta version of the LabVIEW 2017 Platform. All questions or comments regarding a LabVIEW product that is in beta must be discussed in this private forum. Make sure and include your forum alias in your application. This will allow us to more easily grant your access to the LabVIEW Beta forum page.
Thank you for your interest in helping us test LabVIEW.
Lisa Ely
LabVIEW Beta Coordinator
National Instruments
Parsing J1939 data stream
I am working on J1939 and have looked through the J1939 frame input stream.vi in LabVIEW examples. Parsing the data stream coming from J1939 is what I am aiming to do as every byte holds information for the products that I am working on. LabVIEW example code and front panel images while running is attached.
Error Loading 'lvanlys.dll': Missing export 'SystemFuction036' from 'ADVAPI32.DLL'
Greetings,
I am upgrading from LabVIEW 2012 to LabVIEW2016. This code compiles and functions flawlessly when compiled on 2012 and run on LabVIEW RT 2012.
After upgrading to 2016, everything compiles fine with no errors, but when I start the RT I get the below error when starting my application.
Error Loading 'lvanlys.dll': Missing export 'SystemFuction036' from 'ADVAPI32.DLL'
I have done a lot of searching on this and have checked several things, the main being "Remove unused members of project libraries" is checked when compiling the RT.
I have also found that if I remove "lvanlys.dll" from the RT is seems to load fine. is this even needed?
Thanks for any help! I'm really stuck!
Multithreading in Labview 2014??
Hello
I have a simple question. How do I set my VI for multithreading in Labview 2014?
I made a test VI for a data aquasition project to determine exact timing of pulses being sent out and read events on Ocean optics spectrometers. I'm trying to do a single read by controlling output pulses to the spectrometers and it seems my program will only one thing at a time, either read or send out pulses. This is despite the two tasks having no dependancy on each other.
To further explain: I have an oscilloscope connected to my output pulse and to the feedback pulse from the spectrometers. If the read command doesn't return then it'll wait until a 5 second timeout occurs. I can watch when the program hangs and see that my pulses have not apeard on the O-scope until after the timout has occured. If the two task were in parallel then shouldn't the pulses come regardless of what the read is doing?
Sorry for the messy code, this is a test program that I've edited many times
How to edit STDF file in LabVIEW
Recently, I'm using LabVIEW STDF library. My purpose is very simple that read out certain record from STDF file and make some edits , then store the change back. I found it's hard to use the current STDF library to only check out the record I want and only store the change back.
I have no choise but to read all content and store all of them back whatever changes I make.
I attached my code and example stdf file. Hope anyone can give me better idea.
main VI is "Edit STDF File.vi"
stdf file is " DEMO.stdf "
Thanks.
measure capacitance in labview
hi,
I am currently working on labview to measure capacitance. i wonder if i dont add impedance range, will the capacitance able to be calculate? because i tried running the program and there are output display from the program.
The details about the program is attached below. i want your help to check whether my design about to measure the capacitance is correct or not. this program also cannot control the instrument (E4980A) when it is connected. How do i correct them to make it able to be control via labview?
Most tricky CLAD questions
Most tricky CLAD questions list is given below.Please give your answer with explanation.