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

Built array of clusters from INI file

$
0
0

Hello:

 

I am trying to see if there is a faster or more elegant way of building an array of clusters from an ini file.

I have several products each with different configurations I am testing.  I am storing the test limits inside an ini file and want to extra the information out to an array of clusters for test processing.

 

I am currently doing this in a unmaintainable way of just extracting the key-val pairs one by one.

 

ini_to_Cluster.png

Attached is the ini file I am parsing through.

Any suggestions to do this smarter or use another format maybe?

 

Thanks,

Mike


Can't call web service

$
0
0

Hello everyone.

 

I call web service from LabVIEW 2018 to a web application in LabVIEW NXG but it doesn't show the value. What should I config or what should I do?

 

Thank you in advance. Cat Happy

bl11w web service.PNGlabview2018 block diagram.PNGblock diagram nxg.PNG

Delay analog output signal generation

$
0
0

Hi all,

Thanks for such a wonderful platform. I have always got some idea to solve my problem here.My problem today is to delay the analog signal generation by certain seconds of time.

 

I have been generating an analog signal using NI-9263 module on NI-cDAQ 9174 and using a 5v external TTL signal to trigger the same.

I would now like to start the generation. say 5s after I press the trigger.I wonder if this can be achieved.

Looking for some helpful suggestions.

 

Question about the compatibility with specific equipment

$
0
0

Hello everyone,

 

In short: I do not have that much experience with LabView product, but i know it's possible to connect specific hardware to LabView and program it (example Arduino / Raspberry).

I've assigned myself a project to program this equipment:

http://www.economik.com/dpa/4007a/      (microphone)

+

https://www.thomann.de/gb/focusrite_scarlett_solo_2nd_gen.htm    (Focusrite - audio soundcard)

 

I want to create with LabView a graph that shows the [dB] level (information recieved from the mic). So my question is, do you think it's possible that LabView and this hardware will be compatible via USB serial connection? Will i be possible to get the signal from the microphone?

 

I'm asking this because i still have not bought the equipment, and can't really try if it will work.

 

Thank you for your help and have a nice day! Smiley Happy

io-link

$
0
0

Salve,

vorrei capire se ci sono moduli/software per poter leggere sensori Io-link. Nello specifico il sensore è di pressione prodotto dalla casa ifm SBG246.

read data from impedance analyzer e4990ato labview on pc

$
0
0

Hi,

I am not familiar with labview very much. I have connected the impedance analyzer with labview with USB because in my keysight connection expert, I can see this. I want to read data from impedance analyzer e4990a to labview on pc. So, can someone suggest code for the same?

Write datas to a file, which path to specify?

$
0
0

Hello to all,

 

I am developing a LabView application using the producer-consumer pattern. The application is going to run on a compactRio cRIO-9045.

 

The producer acquires several data from the cRio, performs some operation, and send data to a FIFO. 

 

The consumer writes data on a text file (using the FIFO). I would like to save that file either on my computer or on the cRIO.

 

I have a problem using "Open/Create/Replace File" functions, because, my application is running on a cRIO-9045, but I don't know what path to give to the function  "Open/Create/Replace File".

When I try to give a path located on my computer, it obviously doesn't work and return an error (operation canceled by user). How can I tell the function to save the text file on the target, or somewhere else?

 

Thank you.

Voice-Controlled(speech recognition) system.

$
0
0

Hi everyone. I'm a second-year CS student and one of my modules this semester involves using LabView. University happened to be my first exposure to programming and this module is my first exposure to LabView. 

 

While I understand the basic logic, I would greatly appreciate some help. 

 

I have to create a system that recognizes the user's voice and processes it into outputs. Such as: turning on an LED, perhaps. 

 

I would greatly appreciate if anyone could direct me to some useful links on what external frameworks I may need, or perhaps there's a comprehensive yet intuitive guide online. 

 

P.S I'm a total noob still, so I'd appreciate as much patience as you professionals could offer. Thanks in advance! 


Application Builder on MacOS failing due to (false) dependency on Windows Registry.llb vi's

$
0
0

We recently moved our code from LabVIEW 2016 to LabVIEW 2018.   I have opened the top level vis in our application and there are no conflicts.  However, when trying to compile on MacOS we get the error attached.  It appears to be looking for a registry.llb file in vi.lib which appears to not exist on MacOS.  Any idea why this is happening?  Could it be confused by a conditional disable structure and looking for a file in a disabled case?

cursor triggering waveform

$
0
0

Hi everyone,

I'm trying to do a triggering of a waveform with two cursor one for start and other for finish , so if i get the position of the two cursors ,i want to get a subset of the first graph in another graph ,any idea of how i could do that please ? 

i've joined a picture of what i want to do .

Best regards,

VI Package Manager- Checksum is not valid fix

$
0
0

So this isn't a question, but is an answer for future Googler's like myself, who couldn't find the answer.

 

I was having trouble downloading a specific package from VIPM- it was MGI's Class Method Browser, hosted on the standard NI repository. It was returning the message "Checksum not valid, contact the repository manager" with error code 42. Other MGI packages on NI's repo installed just fine, so I initially thought it was a problem with the repo, but I spoke with NI and they were unable to reproduce.

 

Turns out, the issue was with my server's firewall. Going around the firewall on a different network showed no issues. Somehow, my firewall was specifically blocking just this one file. I'll talk to our network guy when I can to see why it decided to not let that specific file through- it's not flagged as a virus or anything. Maybe it has something to do with it modifying the quickdrop template? I dunno.

 

Anyway, it works- future Googlers looking to find this error code, try turning off your firewall or connecting to the NI repo via a phone hotspot or something to download the package Smiley Happy

Passing control information between front panel and subpanel

$
0
0

I have instantiated a multiple subpanels within tab controls using the RunVI property for each VI.  On the main front panel, I have some simple buttons (Run, Apply, Save) that need to be applied to all subpanel VIs.  In each subvi, I have the same Run, Apply, Save controls, invisible all wired as inputs to the subvi call.  I can create an event structure in all the subvi's that handle changes successfully.  Now, I simply want to tie the FP buttons to the subvi controls. 

 

How do I simply cause the event to be replicated in each of the subvi?

io-link

DAQmx subVIs missing from exe application

$
0
0

I've read through about 4 or 5 threads describing a similar problem to my own, but none of the solutions offered help me. 

 

I've written a program using the LabVIEW 2018 trial-edition that works just beautifully until I compile it into an executable and try to run it on any machine, including the development machine.

 

When I run the executable, I am given a list of errors that all relate to either DAQ-Assist subVIs or property nodes within my code (see attached).

 

Is this an inherent limitation of the trial edition? The disclosure of limitations on the NI website did not indicate there would be any issue in creating an EXE file with DAQ-Assist VIs in the code. 

 

Initially, I was running with NI-DAQmx driver package 18.6, but upgraded to 19.0 in hopes it would fix the issue (it hasn't).

 

Any help is appreciated. It's frustrating to have a program that works perfectly in the IDE but throws over 20 errors when the code is compiled to an EXE file. 

 

Thank you!

NI 9213 thermocouple noise w/ crio-9068

$
0
0

I've been having an issue with thermocouple noise using the NI 9213 for some time now. The issue is not the value of the signal (the actual temperature reading +/-, but the signal going in/out (see below).

 

The noise is from 120V 60hz resistance heater wires. These thermocouples are used for high-temperature heat tracing, so they are in close proximity to NiCr heating wire. The TC is electrically isolated from the NiCr, but there is inherently some induced noise. TCs will read correctly when no power is applied, but as temperature and power increase the TCs start to go in and out. Even at high temperatures, turning off the heater power immediately restores the TC value. With a heater on full-blast, the temperature is sometimes completely unreadable.

 

The issue is somewhat improved when using sheathed and ungrounded thermocouples, but we prefer the flexibility of welding thermocouples directly to piping.

 

We use all shielded and grounded (on read-side) cables and minimize power cable/TC wire contact. The TCs lay perpendicular to NiCr heating wire. NI-9213 is in high-resolution mode. 

 

The only success story to this problem existing in the forums is to use an alternative device to read TCs. Any suggestions or other success stories?

 

 

 


TCPIP over Visa - connection handling

$
0
0

    Up until now, I've done TCPIP communication in LabVIEW using the TCP protocol VI's under Data Communication \ Protocols. With this, it is common to program a reconnect strategy, so that if your connection drops, you automatically attempt to reconnect. But that all has to be done at the LabVIEW level.

     I now have a simple example of using TCPIP over Visa, and would like to build on it. But I cannot find any definitive information on how VISA handles TCPIP connection issues. Is auto-reconnect built in at a low level, like Network Streams? Or do you just start getting time-out errors if the connection drops.

     I've done some forum searching, and have found a few posts that suggest that the latter is the case. One even said that VISA can't even detect whether the TCP connection is good or not. Where-as my possibly faulty recollection of the TCP protocol VI's is that you do get an error if the connection has dropped.

     At this point, I'm not even sure if the instrument uses the INSTR or Socket version of the VISA TCPIP connection, so answers on both/either would be appreciated.

 

Thanks,

     DaveT

Error -1074396009

$
0
0

Hi.

I have a problem with open avi file with imaq driver.
I need to process large files, so I get an error -1074396009 with Imaq AIV2 read.
Ok. I've found this topic
and ready to use Imaq AIV read.
And I get almost the same error BUT with imaq avi OPEN.
see images.

paly.JPGerr.JPGbd.png

 

So, I can open file with avi2, but can't do it with avi.

How to fix this problem and how to open this avi?
you can download the example of my video here (500Mb):

One button to create new file and log data

$
0
0

Hello, 

 

The "Write to Measurement File" VI has two terminals that I'm interested in. Enable (enables the VI) and new_file (which has a latch when released action that creates a new file). I want to be able to control when data is being logged at the same time I'd like the files to be logged separately. I'm too lazy to click 2 buttons (create a new file + log data) and would like to use only 1 button. What I have in mind is a sequential process. When the button to log data is pressed, create a new file and log data until the button is released.

 

I came up with something that almost works using shift registers, but whenever I release the button, labview puts the last iteration in a new file. Does anyone have a better solution?

 

image.png

 

 

 

 

SERIAL - XY Graph

$
0
0
Greetings. I would like help with the program i am developing:

About the program:

- I am always reading serial to get the ADC values ​​sent by Cortex-M4, being converted to decimal at the end of each reading.

- When receiving values ​​other than zero, I would like to display them on an XY chart, the Y axis being the voltage values.

About the problem:

- The problem is to develop the X-axis. I would like each received value to be tied to an increasing order on that axis.

+ Example:

1nd Value received, being greater than zero: axis x = 1;

2nd value received, being greater than zero: axis x = 2;

3nd.....

I have attached a copy that I have so far.

 

Getting the "time" for which in LED is turned on of off.

$
0
0

Hi, everyone. I'm doing an experiment where I connected a photogate to an ni usb-6008 and then to labView.

 

What I did:

Added a "DAQ" assist to the front panel (digital acquisition "line") and then a boolean expression on the block diagram (round LED).

 

When I run the VI, each time I block the laser from the photogate, the LED in labview get turned off. And when I unblock the laser, the LED get turned on..

 

My question is, when I block the laser, is there a way to calculate the exact time the laser is blocker (LED is turned off)???

 

Anything will help, thanks!

Viewing all 69005 articles
Browse latest View live


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