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

Having problem with DAQ assistant

$
0
0

Hey guys,

I'm using DAQ assistant to do the measurement, but when I ran the programme it appeared errors with the "SubVI": SubVI 'DAQ Assistant' is not executable. I have no idea of what's going on here, so I wonder if anybody could help me with that.

Regards!

10.jpg

11.jpg

 


LabVIEW web server config - redirects/This site can’t be reached

$
0
0

I was trying to mess are you with LabVIEW's web server, and ended up screwing up the ports so that I can no longer connect to it when I click "configure web application server".

Now when I click "configure web application server", it tells me "This site can’t be reached".

If I try to manually connect through URL(http://localhost:3580), it will redirect me to http://localhost:21/, which gives me the same message mentioned earlier.

 

The reason I am trying to configure my web server is that I am pretty sure the web server was turned off after an NI/Windows update. I get an error message "invalid server IP address" when I try to load my HTML document that the web publishing tool creates.

All of this was working before, after windows update/NI update, it looks some settings got moved around and I am not sure what to do.

I need to be able to delete a user from a previously created database thanks...

$
0
0

For example I already have the database created but now I want to be able to add and delete users from this database ...

clearing XY graph

$
0
0

Hi fnds,

I am facing a problem in clearing the previous value of XY graph before starting a new execution. I went through NI forums & blogs & fed my X & Y value to express XY graph along with reseting its value from one of its input. But still the same output remains, not able to clear previous value. any suggestion please.

Passing two Datatypes Via Queue to subvi

$
0
0

Hi,

 

I am currently trying to get two queues to pass data over, one via strings and one via numeric. I have it seperated into to VIs where the operator has it split between two monitors. I am a fairly new labVIEW user and keep banging my head against the wall. I've seen this done with one queue and wondering the strategy to get two datatypes over to the other VI. 

 

Attached is a screenshot of my current block diagram. 

 

Thanks!

Command Line Interface Emulator

$
0
0

Hi All,

 

I want a String Control on my Front Panel to emulate the behavior of a command line interface.

 

Some features might include:

- ability to cycle through previous commands using 'up' and 'down' arrow keys

- prevention of cursor moving further back than the most recent prompt

- pressing 'Enter' sends the user-entered text after the most recent prompt for processing (e.g. enqueues it for consumption by a parallel loop), and displays reponse when ready, before displaying the subsequent prompt

 

I have a few ideas about the best / cleanest way of implementing this, but it would be good to hear any suggestions.

 

Thanks!

Saving variables in a text file

$
0
0

Hi there,

 

I am using a VI which receives some variables and I'd like to save them all in a text file.

 

I would like to have a row to be added for each iteration of my while loop so that I would get, say:

first line: 2500.000000, 2502.000000, 0.000000, 2529.000000, 2488.270176, 2551.494700, 4704, 423564, 57.303482, 2016-11-10 15-38-42

second line: 2500.000000, 2502.000000, 0.000000, 2529.000000, 2488.270176, 2551.494700, 4704, 423564, 57.303482, 2016-11-10 15-38-42

 

etc

So far I've managed to save my variables in that text file, but the format of saving is not really ideal (not displayed in line, and each iteration saves the new values + everything that has been saved during the previous iterations...)

 

I've attached an example of output as well as my current VI

 

Thank you,

Flo

LV Compare VI Icon (B/W) difference

$
0
0

I am using LV Compare and one of my VIs keeps saying that I have changed the VI Icon (B/W).  I usually just don't commit this vi, but its frustrating to have it change and manage it every time.  Even if I do save and commit, the next time I load it up I see the same difference once the VI is run.

Capture.PNG

 

Can someone elaborate on what that detail means?


Labview freezes no matter what I do

$
0
0

Hello, I get a DWarn about ProjectItem.cpp whenever I start up labview. This started happening last night after working with labview for the past few months with no problems. I've uninstalled it and reinstalled it, but same problem. I've sent usage reports to NI after i force close through ctrl+alt+del. 

 

After opening a file, there are about 3 seconds of action available to me and if I open a save prompt the software wont freeze, yet when i close the save prompt and let the software sit for a second, the whole program freezes. This has put a complete standstill on my work, and its super frustrating. 

 

I tried to search for projectitem.cpp within my computer files to maybe get a closer look or try to delete it, but no results. 

 

Any help would be greatly appreciated.

 

Here is debug code from this morning: 

<DEBUG_OUTPUT>
11/10/2016 9:22:18.888 AM
DWarn 0xE3683EB2: Clearing connections while a cfile has an active iterator: [LinkIdentity "NI_Fuzzy_Config.lvlib:Fuzzy System Designer.vi" [ NULL Context]
e:\builds\penguin\labview\branches\2015patch\dev\source\project\ProjectItem.cpp(1336) : DWarn 0xE3683EB2: Clearing connections while a cfile has an active iterator: [LinkIdentity "NI_Fuzzy_Config.lvlib:Fuzzy System Designer.vi" [ NULL Context]
minidump id: 33738faa-69fe-4a85-85a2-2c09da1e6100
$Id: //labview/branches/2015patch/dev/source/project/ProjectItem.cpp#1 $</DEBUG_OUTPUT>

Can I prevent someone from saving a file in a later version

$
0
0

I am sending out VI's in 2014 to students and want to prevent them from being able to save in later versions. Is this possible can I force them to save in 2014 or before.

Best way to get digitizer p2p data to fxp in FPGA

$
0
0

Hi everybody,

 

Currently I am working with a setup that contains a NI5122 digitizer and an 7966R FPGA module.

The p2p stream between the Digitizer and the FPGA is working but I want to do some digital signal processing and controlling based on the scope data.

I am a bit confused about the data format the scope streams via the P2P channel.

 

As most of the DSP stuff is going on in fixed-point format I would like to know what is the easiest way to get  a measured analog value like 1.7V to a fxp representation that can be used in the FPGA?

 

Transparent Scatter Plot

$
0
0

I have a large set of overlapping data in a scatterplot that I need to display. I am currently using as XY graph but I cannot get the markers to be transparent. The reason I am trying to display the data this way is to get a feel for the density. Is there any way to do this?

Opaque

Opaque.PNG

Transparent

Transparent.PNG

Small UI pipes pixel

$
0
0

I have a 2D treating plant graphicdisplaying pumps, valves, tanks and pipes. The pipes require control over the color, size and location during development and programmatically. I have stumbled on the simple string indicator which works fine as a pipe but I cannot get the pixel size below 5 for my small pipes. Any ideas, thanks.

Variable Baud Rate

$
0
0

Hello,

We are going to communicate with a serial device. The nominal Baud Rate will be 2400, but because of the hardware, (on-board clock generation), this can vary by up to 10% depending on the unit. - But each individual unit will be stable.

On power-up, the unit will transmit a "u" (Hex 55).

Is there a way of getting LabView (2012) to capture this and set the Baud Rate to match automatically?

A VISA configuration setting perhaps?

One solution is to run through the range of Baud Rates until we get a valid response, but this may well be quite time consuming, and may involve cycling the unit power, as well as opening/closing/flushing the COM port.

Any pointers are welcome.

Thank you, Roland

Keithley 2015 THD DMM driver

$
0
0

I am trying to use a Keithley 2015 THD DMM to measure THD of an audio circuit.   Unfortunately the only driver i can find comes from the tektronix website and was made for LV 5.1.1. I have started with the instrument driver creation wizard and things seem to be going in the right direction but I have never created an instrument driver before and was wondering if anyone has had any experience creating a driver for this particular instrument... any advice / assistance would be greatly appreciated. i would like to accomplish this using a gpib-enet/100 in LV 2016 on a Windows 7 machine. 


modbus communicate over USB

$
0
0

Hi,

 

I am trying to communicate to an APC UPS over USB using modbus. This manual discusses how the protocol works with the UPS. 

 

Does anyone know how to setup a vi to send a given message (register 130 in the above manual) and receive the response all over USB using modbus? It looks like a particular driver needs to be downloaded as well to allow for interrupt transfers.

 

Thanks

Beginner question re: random number function & timing

$
0
0

Hello,

 

I am a student learning Labview. I am programming a Flashcard project for school. I have most of my code in place but am stuck on how to have 1 single random number be generated, and then wait for the user to enter a number in a numeric control before continuing on. I am supposed to use a sequence structure in the project. I need the user to see a set of 2 numbers to be either added, or multiplied. The user needs to then enter in their guess at the answer. The correct answer needs to be displayed, and then the loop starts over.

 

I am stuck on how to implement the random number function to only generate a single pair of numbers, and then have ther VI wait for the user input before continuing on. The answer should not be displayed until after the user has entered their guess.

 

I have included my VI so you can see where I'm at.

 

I appreciate any help or advice.

 

Thanks very much,

 

George

String numbers into dbl percision without dropping zeroes

$
0
0

Hello all

I'm using Labview 2009, and have a String from Match Pattern, Match SubString that contains 5 digits. Example: 03926 Since the zero is a place holder to denote the 10,000's position, I can not lose it. I need to get that number into a Double Percision format in order to feed it back to an input that is also Double Percision. I have been trying this using Scan from String but can't seem to come up with the right format condition to keep my leading zero, or zeroes. Can Someone help me get past this knot?

TDMS: "Rows before columns"

$
0
0

Hey, I am writing a bunch of data to a TDMS file. The problem I am facing is that TDMS is organised in channels. Let me explain. I am writing some arrays to the file of known and repeatable size (e.g. a temperature array with four entries follwed by a pressure array of 12 entries).This works fine and as expected. Then I need to write some arrays that I do not know the length of, on top of which the length may change from "write-call" to "write-call" (e.g I may be writing an array of length 8 one time, followed by an array of length 13 the next time TDMSWrite is called.) The problem is that if I write a longer array after a short array, the difference in length between the arrays is not written to the corresponding row when viewed with excel, but rather at the corresponding columns ("channels" as tdms calls them). Please see the attached excel files for clarification.

In 'EverythingsOK.xlsx', everything's OK. In 'PeakPopsUp.xlsx' an additional peak showed up at some time in the scan, but rather than being written to the correct row, it got written to the (still corect but) meaningless channel. I chnaged my program so that now each excel column corresponds to a TDMS channel see (InadequateWorkaround.xlsx), but that means that the end user is limited to 16,384 cloumns (as is the limit in excel workbooks), which may not be enough.
So my question is, how can I fix this issue? At first I thought the decimated/interleaved on the TDMSWrite.vi input looked promising but that has nothing to do with where the data is written, only when its written... I could of course move to csv files, but that would require rather large changes to my code.

Any help would be great.
Cheers 
Doug

Memory problem?

$
0
0

I'm taking a temperature reading every second for 10 hours.  The temperature is a double.  Each temperature reading is stored in a cluster with the current timestamp.  All this data (36000 clusters) is stored in an array of clusters.  Occasionally, my program will lock up.  Is there a  way to determin if I'm having a memory problem?  Is there a size limit for arrays in LabVIEW?  Thanks in advance.

Viewing all 66670 articles
Browse latest View live


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