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

Measure passing time between 2 signal with DAQmx

$
0
0

Hello guys!

 

My problem is that I want to measure passing time between two analog signal on the same input. I use for this NI myDAQ and the device's Digital Multimeter input because I have industrial signal level. I start to do my task and it is starting to measure time but it is not stop it is run continuously and I need some help how can I do measure if I want to work.

I send what I did yet.

Thanks!


LabVIEW Project hooks/trigger scripts by project state change, open/save/close

$
0
0

Dear LabVIEW community,

 

let me, please, ask you about the following - is it possible somehow to implement some functionality, which will be triggered by project load/save; kind of override some special hooks?

 

Let's say, my quick drop/or shortcut menu plugin will need to have list of some items in the project. But, I don't want to get it all the time dynamically, when quick drop is called. It could take time, and I don't want to wait, till quick drop or shortcut menu plugin will be initialized (there is nice shortcut menu plugin Add Bookmark.llb, which is difficult to use for large projects, b/c loading of bookmarks -> and shortcut menu appear time is long, which is confusing).

 

So it would be nice to get it (list of some items, etc.) when project is opened, or when it is saved - because when we open project, we know its initial state, and each change will be followed by save action; so we will could all the time get actual list of items (classes, bookmarks, comments - whatever).

Is it possible to reach by implementing custom project provider? Or, it is possible to override some project explorer hook (if any; b/c I didn't find info that something like this exists)?

 

Thank you very much in advance,

 

Sincerely, kosist90

NI-488: Nonexistent GPIB interface, Text file opening

$
0
0

Hello Community!

 

I could able to open a specific text file by selecting a path after i run the vi.

 

The same vi can not able to open pro-grammatically. Can someone out there help me with this. 

I have declared this path as global variable.

Programmatically find out callers

$
0
0

Hi all,

I would like to ask, whether it is possible to programmatically find out callers of certain VI in project, just like Find - Callers in project tree does.

Performance and Memory Tool

$
0
0

Hey everyone

 

me again. I have a big problem with the software I developed. It is running 24/7 and over some weeks, it uses all of the testbench-pc's memory and in the end crashes... I managed to create a nice memory leak or so. I already read that this is not easy to find and I have been trying the Performance and Memory Tool. But actually I found it to be very unuseful? The Labview help tells me that this tool is able to detect the total memory use of a single VI (Find a screenshot of the labview help attached). So my question is: Where can I see this? It would help me a lot as I could see what VI is using more and more memory?

thx for your help :-)
best regards

anna

sorting Constants inside cluster

Solar altitude and azimuth angles on location (latitude and longitude), date and time

$
0
0

Hello,

We need to test a model of PV grid on power production udner shadint, etc. For that we need also a model of solar radiation - i.e. how to obtain solar angles (altitude and azimuth) on that particular location (latitude and longitude in degrees), on a particular date (mm.dd) and in a particular moment of time (hh:mm).
Has someone made the VI already and is willing to share it?

Thanks in advance,

R

Can't install C Code Generation for Labview 2018 evaluation


LabVIEW OPC UA Client with Kepware Server

$
0
0

Hello,

 

I am using "OPC UA API" to develop my Client  that is connecting to the KepwareServer.

I can connect to the server, Read The Tags but cannot write although the Tags are in Read/Write Mode.

 

Is anyone please here familiar with Communicating with the Kepware Server to help me with hints?

 

Thank you.

Analog input and output module synchronization, cRIO-9035

$
0
0

I am a student and new to LabVIEW.  I want to build PID controller for my project but before that I need to synchronize two modules which I am using with cRIO-9035. Basically I want to acquire signal with NI 9232(Input Module,24bit) and send it back to NI 9269(Output Module,16 bit).

I have successfully completed this task of acquisition and generation. However I am getting phase shift in the output signal. For further stages of my project , I want signals to be completely or nearly in phase, not much phase shifted.

 

I have been working on this task for quite long time but not getting where the error is.

Looking forward for the help.

 

Thank you in advance.

FPGA VI.PNGFPGA ViRT VI_1.PNGRT MainRT VI_2.PNGRT Main_Continuedphase shift sweep_100_3000.PNGPhase diagram for sweeping singal(100Hz-3kz),(Green -Input, Red -Output)

Separate compiled code in a .lvlib

$
0
0

I have a lvlib that is not under a project library. I understand that checking the "separe compiled code from source file" of the lvlib only affects new VIs. Is there a way to apply the setting to exisitng VIs similar to "mark project VIs" of a project library 

Text File

$
0
0

Hey everyone, I am trying to read a text document. I want to read the text document and put it into a excel file. The thing is I want to split up everything via commas and put them in individual columns. I would like to use the comma as a delimiter. However when it is entered into the excel file, nothing gets split. This is the code I am using to split everything up. 

Help with using an FTDI USB to SPI interface?

$
0
0

Hello all.

I'm just starting to try and communicate with an SPI bus pressure sensor with an FTDI USB to SPI interface. Its a UMFT220XB from Mouser and I have the data sheet etc. but wondering if there's any example code I can look at. I guess it might be as simple as writing a string and reading the result, but I'm not sure where to start with USB.

Thanks for any advice.

Andrew

Receiving wrong bits while demodulating using FSK

$
0
0

Hello,

 

I am trying to send and receive a character string using FSK modulation and demodulation. What I observe is that if I send a 1 character(8 bits), I receive only 2 bits and it get converted to wrong string. Hence, I add user defined PN sequence (all 0's) to the string so that I miss the last 6 bits of PN sequence and can get the string back. But the received string fluctuates between the actual string and some garbage values.

Can anyone help with what is wrong here ? It's very urgent. PLEASE HELP!!

The .vi file attached herewith.

 

Thanks!

NI XNET error Hex 0xBFF63090

$
0
0

Hello everyone,

 

I am trying to run a VI in NI-XNET USB 8502. When I am trying to write in Signa Single point Session its showing the error Hex 0xBDD63090 The data that you passed to the XNET Write is too small to hold all the data specified for the session. Error image is shown. Can anyone help me in this regard? Thanks in advance.

 

Anik


LV Won't Consistently Record Time

$
0
0

Hey everyone,

 

So I've been working on this project where I need to write a LabVIEW vi that allows me to record the time elapsed between the breaking of two voltage tripwires (going from ~5V to 0V). The vi I have works... usually. The "time stamps" that it gives me do not always appear though, while the "bool indicators" flip every time without fail. This leads me to think that the computer (or DAQ?) aren't able to keep up with what I'm wanting to do, or I'm just not telling it to pull the samples I want correctly or something. I've played around a lot with the "Samples to Read" and the "Rate (Hz)" numbers to no avail, and have been exploring things in that realm but have hit a stone wall. You'll have to forgive me a bit, software is not my forte and I know just enough to get me in trouble. My vi and specifications are attached (the tripwires are connected to the first NI 9223 module at ports A0 and A1). Thanks in advance.

 

NI cDAQ-9188XT

Slots 1-2: NI 9223

Slot 3: NI 9213

Slot 4: NI 9237

Slot 5: NI 9218

Slot 6: NI 9218

Slot 7: NI 9401

Slot 8: Empty

 

 

Installer license agreement not showing picture

$
0
0

Hello all you helpful forum-goers,

 

I am using LabVIEW 2017 SP1 Professional, and in my installer build specification I have selected to show a license agreement file during installation (Dialog Information -> Include custom license agreement).

 

The file I have chosen is in RTF format and displays during installation correctly... except that it doesn't show my company's logo at the top.  A blank line is displayed instead, i.e. there is no "broken picture" graphic or anything else.  The logo is a small PNG file inserted when I am editing the file in Microsoft Word 2010 using the Insert -> Picture button at the top.

 

Wikipedia says that the RTF format supports PNG pictures (https://en.wikipedia.org/wiki/Rich_Text_Format#Pictures).  Is there something I'm missing regarding why this is not working?  Or does the LabVIEW installer's display of a license agreement just not support pictures for some reason?

 

I apologize for not attaching the license agreement itself, but since it is proprietary software I'd want to go verify it is ok to do so, and I'm hoping there will be an easy answer given the simplicity of the situation.  :-)

 

Thank you for your time!

 

-Joe

How do I make this a sub VI

$
0
0

I have a VI that came with this light filter wheel. It works fine on its own. But I would like to use it as a sub VI. When I make a sub VI out of it by hooking up a connector pane, it doesn't work at all. Attached is the functioning VI. Where am I going wrong. I connect up the inputs and outputs to the connector pane. But it will not work. Help.

 

LeatherNeck,

New LabVIEW programmer.

Event structure for temperature conversion

$
0
0

Hello NI Labview community,

I'm new to Labview, and I'm trying to use an event structure (I'm aware of the case structure but I want to learn it, by using an event structure) to convert a temperature of unit degrees celsius to either kelvin or fahrenheit.

My obective is, that when the button is toggled upwards, i want to convert the temperature Fahrenheit, and when it is toggled down, to Kelvin (As shown in the first picture). 

 

I've succeeded in converting the temperature to Fahrenheit by detecting change in the value of the input temperature.

But I'm struggling with converting the temperature by toggling the button up or down by using the event structure. The code I've written in picture 2 and 3 changes the temperature to Fahrenheit ONCE, no matter how many times I i toggle it up or down while the code is running.

And, how can I convert the input temperature to celcius? Labviews doesnt allow me to do it by adding a new event case, as that would require a change in input temperature and toggling the button. But since these 2 variables already are used to convert to fahrenheit, i cant choose them again for a new event case.

I hope you understand my question.
Udklip.PNGUdklip.PNGFP.PNG

Vivration measurements whit beaglebone and NI USB-9234

$
0
0

Hello everyone

 

I want to develop a project where is necessary to take vibration measurements, beforehand, I would like to know if it is possible use NI USB-9234 with beaglebone, in order to develop a prototype before to implement the project either a cRio or a cDAQ module.

Viewing all 67105 articles
Browse latest View live


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