I am (still) trying to control the ThorLab stages LTS300 and MTS50-Z8. I have written the program attached below for this. The program essentially starts communication with the stages, then does some movements with them, then disconnects them. I have been asked to also include an "ABORT" or "STOP IMMEDIATELY" button, just in case anything goes wrong with the stages, that termiantes communication witht he stages straight away. The stop immediately button in the below vi does stop the program when pressed, however, I expected the program to run the movement routine when the button has not yet been pressed. But nothing happens. Could someone explain where I am going wrong. I've also included images of the true/false case for the button and the subdiagrams the button should trigger. I fear that this is very simple...
Thanks in advance
Case structure only executing one case
Labview + phidget (ratiometric setting)
Hello there,
MySQL Connection Error
Hi,
I am new to labview and database programming. I am trying to retrieve the data out from mysql database and show it on labview. I keep getting an error message and i am not sure how to fix it.
Please kindly advice. Thank you.
FYI:
I am using:
32 bit labview 2012 and
64 bit ODBC connector
Even Structure Case Number
Is there a programmatic way to extract the Number of the Event Structure case shown in [] to the left of the name? This can be useful when debugging which case has has fired Actions for a Queued State Machine.
Carsten Thomsen
write multiple regs modbus
hello
i have labview 2013 and this library for modbus:
http://www.ni.com/example/29756/en/
and i could write single regs on my board(arduino) but when i want to write multiple regs i dont recieve any data on my lcd
who can help me ?
Why i countinuosly get this messages opening a vi from my project?
Hello,
I need an help to understand why i get this message when, after i modified something, I open a vi from my project:
and after clicking revert..
After re-opening the vi the error does not present himself anymore and the functioning of the development system it's ok.
Thanks in advance.
Flush from cache to disk failed - data discarded
Hi,
I have a problem with one of our bench. At the end of a test (during the recording) we sometimes get the following error:
WARNING: flush from cache to disk failed - data discarded. (see enclosed picture)
Because of this error, our RT application lost the connection with the software on the PC and the data we wanted to record.
- Is this error due to the disk ?
- Is there a way to scan the disk ?
- Any other idea ?
OS : PharLap
Software: Labview 8.5.
Logging timer
Hey guys and girls
I am pretty new to labview and need some assistance. I want to be able to choose how often I want the data to be logged. If it is every second or every ten seconds. My next question is. When I start logging why is the graph delayed? As if it is too much for it to process?
Thans alot
Installer problem Serial Runtime 15.0
Hi everybody,
I'm using Labview 2015 on windows 10. I've already created an application and now I would like to make it an installer. In my application I read data from VISA ports so I need the Serial Runtime for my installer. The problem is that it could not be found. I've attached a screenshot of the problem.
I've already tryed to install it again but nothing changes.. Any idea?
Thank you very much.
VISA read from single digital line
Hi,
I'm currently trying to connect a Decagon 5TM soil moisture sensor to a NI PCI-6225 card.
The sensor has three wires: GND, power, and data. Data can be send via a DDI serial protocol at a 1200 baud rate, see http://manuals.decagon.com/Integration%20Guides/5TM%20Integrators%20Guide.pdf (page 10). When the sensor is powered, it sends 1 start bit, 8 data bits and 1 stop bit. Afterwards the sensor can be powered off, which increases its life time.
I would like to power the sensor via a digital line of the NI PCI-6225 card and then read in the data via a second, single digital line of the same card.
Since data is send in a serial fashion, I thought it would be possible to aquire the data using the 'VISA configure serial port' and the 'VISA read' function. However, 'VISA configure serial port' expects a COM port as input and not a single digital line.
Does anybody have an idea how I could circumvent this problem or if there's another way to read the data? In the end I'd like to read data from 12 sensors of that kind, which should be accomplished using the 24 digital channels the NI card offers.
Any help would be appreciated...
Kind regards
Sepplovich
Application Builder skip sub vi
I created an exe, for some reason the exe does not execute some (many) of my sub vi
there is no error pop up, any explanation and how to solve it?
How to batch-change the font size of many listbox item names at once?
Hello Labview specialists
I do use many listboxes on a front panel and populate them using the item names property node.
As I want my front panel objects to adapt to the current monitor resolution I have tick the 'Maintain proportions...' and 'Scale all objects...' options in VI properties. I also use a VI Property called Controls[] to set the Label.FontSize.
The problem is that those do not seem to impact my listbox item names and I am forced to individually use the Caption.FontSize and Label.FontSize property nodes which is awfully time consuming to program (in my case).
Has anyone found a trick to avoid going individually through this process?
Thanks a lot for all your suggestions
Christophe
Get dependencies of VI in a packed project library
I am building a test sequencer that uses packed project libraries. I want to be able to get the path to a VI that is part of the packed library but not explicitly part of the lvlib the PPL was built from. If I try to get VI dependencies of the library or of any VI in the library using the Get All Decedents method of the VI, I only get dependencies that are explicitly part of the lvlib, even though I can clearly see that there are VIs that are part of the packed library, I can open them, and I can view the code.
Background:
My test libraries have a variant input onto which I put a global variable used byt the test sequencer. So that the tests can have access to these global variables, I want to unpack the variant values and write them to the test step's local (namespaced) copy of the global. This funciton works, but in order to use it, I need the path to the lvlibp's copy of the global. I hvae tried wiring the VI name, since I know it is in memory, but this returns an error. I have tried also wiring hte VI's name prefixed by the lblibp's name, following hte format used in the title bar of the global opened from within the packed library.
I do not want to include hte global in hte library explicitly, since it will be used by other libraries. I could deploy the global in ots own packed library, but I wanted to see if I could make this solution work,a s it seem elegant and transparent for the other people in my group to try to use (just use this global!), and it requires fewer files to be deployed.
Re: event structure and radio buttons
Hello,
I'm quite interesting about that topic. In my case I have 2 groups of Radio button but I have to show some graphics depending on which Radio Button is tagged. I tried to do with AND port but it doesn't show anything. Here I have a Spectral analysis but it has two possibility. It would be in Spectrum of Amplitude and Spectrum of Phase. So I have even a third opcion where I show two waveform graphs and again depends on Radio Buttons combinations.
If you want I can show my code.
Compilation error - Slice LUTs size exceeded
Hi.
I am usingLabview 2015 with cRIO 9063. The compilation tool is Xilinx Vivado 2014.4.
I am having problem with compiling my FPGA vi. Please find attached pictures of the error report. I am also attaching my FPGA Main.vi.
I am new to Labview, can someone please advise me the cause of the error and how to fix it? I believe this is caused by the numerous arithmetic function, am I right?
Thanks,
NA
Simulation is not running
I am a beginner in LabView. I tried implementing the following example : http://www.ni.com/tutorial/7595/en/ to learn the state machine implementation. But the simulation does not seem to work though I have followed all the steps. What could be the possible reason? I am attching the screen shots of the connection I have made.
How to display two signals on multiplot chart
Hi, I am currently working on a LabVIEW program that requires me to display two signals measured by two current sensors with the help of NI MyRIO. I'm facing problems displaying the two signals on Data Dashboard, may I know how and what should I connect in the Block Diagram/Front Panel of LabVIEW so that the two signals measured by the current sensors can be shown on Data Dashboard?
Not able to use snippet in my LabVIEW Environment
While i am trying to drag and drop code snippet to my LabVIEW BD only the link gets copied in my BD and the same happens in my FP too.
Not able to get information from the below post.
Do i need to change any settings in my System?
Converting data from MySQL database to usable values
Hi,
After connecting to the database and retriving data out of it. How do i do something to it ? Like for example i wanna do an addition with the values obtain from database.
how to insert image in IMAQ Browser insert
hi,
how to insert multiple image in IMAQ Browser insert vi. will taken image from folder.