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

Export Syslog Data of a specific duration

$
0
0

Hi all,

 

In our project Syslog VIs are used for logging debugging information. Now there is a need to copy a specific duration of syslog data to another file. But I am not able to locate the file where this syslog is stored. My doubts are,

  1. Will the syslog data be stored only by a syslog collector?
    • Will there be no local data in the syslog client only system?
  2. Is there any API to get only a specific duration of data - say 1 hour or 1 day etc.?

P.S.: I have not used Syslog before & this part of the code was already developed, hence starting to learn now. Have referred to online links, but did not get clear information for the above questions.

 

Thanks,

Priyadarsini S


LabVIEW 2019 f2 Patch Details

$
0
0

It looks like there was a new LabVIEW 2019 f2 patch released today. However,I cannot find any details on the patch yet. I have found the details for f1 patch, but it appears to not have been updated yet for f2.

Please Critique my State Machine Code

$
0
0

I wrote this program to control a 3D DLP Printer.  It flashes a lamp, lowers the build platform, moves the wiper blade back, raises the platform, brings the blade forward, waits for a while, then does it again.  I welcome any comments or critiques.

 

A couple issues I have:

1.  Can I clean this up at all, especially the initialization state?  A coworker suggested I use a stacked sequence to initialize things, but I read those are not good practice.  I wanted to make a subVI for the stepper motor since I use stepper motors in this way at work pretty often, but most the code is in the initialization state, which it seems like I can't put into the subVI anyway.

2.  I used the LabView State Machine template to start off, and it only checks the stop button when its waiting on user.  Should I make another event-checking-loop in parallel with the state machine to watch the stop button in case the user wants to stop during the print?

3.  I welcome any advice on error handling.  I think I should make an error state and deal with things there, correct?

 

Thanks for any time.

LabVIEW Community Edition

To read the pressure transducer value using USB 232 serial port.

$
0
0

Objective is to display the Pressure Dynamic curve (P vs t) with respect time using USB 232

I have pressure transmitter which show the pressure(Backside Transmitter Connection)

20190821_144515.jpg

USB-232 is connected to the PC port

20190821_145824.jpg

 

 

Questions:

A. I was reading Chapter on Control of Stand alone Instrument from Lab-view book. The chapter require to have GPIB interface bus.This required NI-GPIB device connected to the computer. In my case, I am just using USB-232 to the computer port? Is it correct way or do I need aforementioned device or DAC to read my transmitter data? 

 

B. I use MAX to check if my USB-232 deice is connected  properly to my computer. I have no issue in that but The Measurement and Automation Explorer gets different Visa resource names every time I unplugged the USB-232 port and reconnect back to PC port  it show with ASRL21:INSTR, if I reconnect then again it shows  ASRL24:INSTR  the numbers keep getting bigger.? Why this happen Is there any issue with my Window or Is it normal? 

2.png

C. I tried to create the block diagram it shows the following error? I didnt understand it clearly. 

3.png

 

D. I  tried to create the block diagram without the loops it shows the following error? I didnt understand it clearly. 

4.png

They both show the Same ERROR. 

4 - Copy.png

Any  advice How can I run my block diagram?

I have enclosed the VI file with this 

"Prompt User For Input" not working?

$
0
0

Hi All,

I am still learning Labview and have only basics for now.

I am tying to prompt user to input text  but cant get it working.

I specify the inputs but the inputs does not show on the .vi and when I run it, there is nowhere for user to input information.

See picture:

 

I appreciate your help.

 

 

Can you set Table or Tree controls to overlap cell text?

$
0
0

I need either a Table or Tree control where some strings are fairly long (used as subsection headers, one per row) and some are fairly short (used as Name/Value pairs, two items per row). Right now I have to have my columns set to be the max width of the "parent" item, even if that's the only thing in that row, otherwise you can't read the entire Parent item. I can't find a setting or property that lets me do this. Is it possible? Example with Tables shown below, but you get the same behavior with a Tree.

 

overlap.png

Adding an FPGA target under Project vs My Computer in LabVIEW/Configuration of FPGA Desktop Execution Node

$
0
0

Hi everyone, I have experience with LabVIEW and now have been trying to learn LabVIEW FPGA. I am using PXIe-7975R Digitizer inside a PXIe Chassis and am communicating to this Chassis using an MXI-Express Link x8 system. I have been trying to follow this youtube tutorial: LabVIEW procedure: Make your first FPGA application. I arrived at one issue. In the tutorial, the person adds their target under the Project tree directly. In my application, I am only able to add it under my Computer which makes it a different level. Is this because the Digitizer card I am using is only a target while MyRIO used in the tutorial is a device of its own? What is the difference between a device or a target? The reason why I am asking this is because I actually can't get through the tutorial because I/O Pins become an issue.

In the tutorial, they are creating the FPGA Test Bench VI and place a Desktop Execution Node down, after doing so, terminal configuration window pops up.

In the tutorial, this is what they see (forum Question 1 .PNG). They first select front panel controls and indicators (Front Pannel Controls and Indicators.PNG) and I am able to do this as well (), and then they select simulated I/O (simulated.PNG).

 

When I try to go through these steps, I am only able to select the front panel controls and indicators which I believe is because I was able to add the Target under MyComputer instead of the Project which would give it the same hierarchy level as MyComputer. I'm not really sure where to go from here and am new to working with FPGAs and LabVIEW FPGA, any guidance or help is appreciated.

Screenshots of the tutorial steps when I try to do them are labeled as Select VI tree.PNG and available resources.PNG. I cannot access direct I/O connections to the FPGA and thus cannot finish the FPGA Desktop Execution Node Configuration.


How to recompile a 32 bit library into 64 bit

$
0
0

Hi,

 

I'm trying to recompile a library created in the 32 bit version and convert it into 64 bit version. I'm new to dll and lblib file. I'm wondering

 

1. How could I open the original dll file? I need to see what functions it includes then try to duplicate it. Should I use the 32 bit Labview to view its block diagram? Or should I compile it in Visual Studio or other compilers?

2. In which way I can change it into 64 bit? Not sure what's the difference I should change. I know x64 is 64 bit based and x86 is 32 bit based. But when it goes to a code in Labview, how could I configure it?

Data range selection on a XY graph using cursor

$
0
0

Hi Friends,

 

I would like to select a data range from a XY graph using cursor for further data processing. I tried to use property node's cursor position and cursor index, none of them worked, both pupped up an error 1055 , saying the possible reason is object reference invalid. Attached is my VI:

XY-graph_DataSelection.vi, which has first part to generate data and dynamically graph it, the second part is to select data range on a static graph.  

 

I found a related VI on this forum, also attached: PlotSelection.vi, which is very complicated.

 

I am wondering if there is a simpler way to make it work?

 

Thanks,

Gu 

 

I searched the forum and found  

There is a problem with the software installation

$
0
0

There was a problem in the following figure when installing LabView 2016. Does anyone know how to solve it,please?

There was LabView2012 in the computer, and can be used.I have uninstalled 2012, but I can't install it anymore.

The computer is Windows 7,  32-bit operating system.

NI ELVIS III SFP failed to open

$
0
0

Hi All,

Our school has recently bought a few NI ELVIS III to conduct some basic experiments. I had never used it. However, I am trying to just open Oscilloscope on SFP (with google chrome) on https://measurementslive.ni.com/. I see NI ELVIS III is connected, but I failed to open Oscilloscope and Function generator, Digital Multimeter and variable power supply on the SFP (It shows "failed to open," please see attached figure). Although I could open Bode Analyzer and Current Voltage Analyzer. I need to do some basic experiment. Could anyone please help me, how can I open these instruments on measurementslive.ni.com or on LabView? Also I have installed LabVIEW 2018. I was also trying to use Oscilloscope from LabView, But I do not see ELVIS III on it as shown in the following link:

http://www.ni.com/documentation/en/ni-elvis-iii/latest/getting-started/creating-an-elvis-iii-project/

 

It is very urgent. Please help.

Thanks a lot.

Benchmarking PXIe based Data Acquisition

$
0
0

Dear Experts,

 

I wanted to test the available hardware to its limits. I have a PXIe 1065 chassis with Industrial Desktop computer with LV RT connected over MXI. The PXIe chassis has 5 pxi 6259 cards.

 

I wanted to test the system and made a small program which digitizes 32X5 channels at 31KSPS which is near the maximum acquisition rate supported by 6259 card.

 

When I am executing the program the cores in Controller are jumping to 99-100% load which I believe is not a good sign. Is there is any solution to achieve this by making some optimizations in the code.

 

I am attaching my snippet for your reference and comments. I have tried with all the data types. U16, double , waveform and even raw type.

later I aim to add consumer loop for data logging.

 

Pls give your suggestions.

Code Taking Long to Deploy to cRIO

$
0
0

My code is taking a very long time (more than 5 minutes) to be deployed to my cRIO-9040 RT. Usually it only takes less than 10 seconds.

 

I am really not sure what changes have I made to the cRIO or LabVIEW software that cause it. It can be deployed very fast in another computer though.

 

Any workaround on this?

How to find two pulses

$
0
0

Hola a todos!

 

Estoy trabajando con un transductor de ultrasonido para medir el grosor de algún material.Adjunte la imagen de la señal cuando use el transductor.

Estoy interesado en las señales (pulso) dentro del cuadro naranja.Después de recibir esta señal, aplicar una HT (Transformación de Hilbert) para obtener la señal de la imagen 2.

Sinceramente, no tengo mucha idea de cómo proceder. Pense en el detector de picos, pero como puede ver, entre el primer pulso y el segundo hay varios picos.para compararlo con el resto.

Me podrias ayudar


Reshape array

$
0
0

Hi,

I have an 1d array of 0,1,2,3,4,5,6,7,8 using reshape array I can make it:

0 1 2

3 4 5

6 7 8

But I want the even rows to be arranged in the reverse order i.e

0 1 2

5 4 3

6 7 8

Can anybody tell how can I do that.

kind regards,

Zoton

USRP for MAC OS LabView 2018

$
0
0

Hi, How can I install USRP driver for MAC OS when working with LabView 2018.

cRIO list not found in Labview 19

$
0
0

Hello Labviewer,

I can't find any cRIO when I click "Project" => "New" => "Target and devices" with LabVIEW 19.
I do find cRIO with labview 18 even though I don't have LV RT 18 installed.
I have the LV RT 19 installed though.

 

I've been having difficulties connecting with my cRIO for weeks now. I installed 3 versions of LV (15,18,19), And several driver version (18 - 19). My IT already contacted the NI support but If I could get other advices that would be really nice. My project is falling behind because i can't connect and start to work on the cRIO. Everytime we started a new installation, my IT support made sure to get things done properly by uninstalling older version. Just recently, I have installed the Labview 19, RT 19 and FGPA 19 through the "Ni package manager" because the IT is on holidays (he forgot to install the RT before leaving).

 

Summary :
I have the same version of Ni RIO installed, the same version of LV RT installed.
I can add the cRIO on LV 18 but I can't work since there is no RT or FPGA module installed..
I can't add the cRIO on LV 19 but I don't understand why.

 

I added several screen capture under to show what versions of LV and driver I have installed.

Thanks anyone for your help

 

edit : capture 1 to 3 are from Ni MAX showing software installed on Host (1, 2) and cRIO (3)
Logiciels means Softwares

Systèmes déportés means Embedded system (i think, not sure of the exact translation)

 

Capture 4 is when i add a new target through LV 18

Capture 5 is when i try to add a new target through LV 19.

I have the LV 19 "F1"

 

USRP-2901 device can not be detected

$
0
0

Hi, I am working with LabView. I am trying to connect the USRP-2901 device but it is not detected by the Ni-USRP Configuration Utility. 

I couldn't for the love of god get NI MAX to work.

$
0
0

I have been trying literally the whole day to get NI MAX to work. All I want is to read data from my expensive NI DAQ hardware.

My system:

Window 10

Labview 2019

NI MAX 19.0

 

I came across all sort of errors just by opening NI MAX:

1. The software took more time than my Sims 3 to load.

2. Timeout on getting info of my system.

3. There's a 50/50 chance anything will display at all, and when it does, I try clicking on Devices and interfaces to look at my DAQ hardware. Couldn't do that, crash immediately. Same with trying to look at software side.

4. Try to put down a DAQ assistance on Labview. 50/50 it will go pass initialisation, and when it does, it does not recognise any analog input at all!

 

I have tried:

1. Reset NI config

2. Reinstall NI DAQ

3. Reset MAX's database

4. Restart my laptop.

 

I have not tried bang my head on the wall yet but willing to. Why would you guys make something that is so heavily dependent on each other to be efficiently used like that! Please for the love of god help me out on this.

Viewing all 67370 articles
Browse latest View live


Latest Images

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