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

Read data from file to chart

$
0
0

Hello everybody,

 

I have one chart where, among other inputs, the speed of a car is shown. I am trying to plot on the same graph two speeds: the car speed and another whose values are written in an excel file. The idea is that the signal from the file shows the target speed so the driver in the car can adjust the speed.

 

How is it posible to read data from a file and show it in a chart?

 

Thank you very much in advance!


Programmatically Control the PC audio card volume and sample rate instead of application's volume and sample rate

$
0
0

Hi all

      Can somebody help me to figure out how I can set the volume and sample rate of the audio device instead of the applications.

     I try to call winmm.dll but I can only set the application's volume and sample rate. 

Thanks and Regards

 

 

诸位大神:

谁能教我一个用VI 控制声卡音量和采样率的办法,而不是控制应用程序的音量,我调用winmm.dll也只能配置应用程序的音频信息。

谢谢了。

Untitled.pngset audio device volume instead of APPsCapture.PNGcall winmm.dll

 

Check if a file is password protected or not using LabVIEW

$
0
0

Can I detect if a file is password protected or not using LabVIEW? If yes can you  please add on how to do it.

 

Thanks,

Nikitha

Mining related

$
0
0

Could u pls suggest me related to mining what we can source to customer

 

Use input digital edge to trigger the start of an output in another task with DAQmx USB-6210

$
0
0

Hi,

I'm having trouble getting DAQmx Start triggering to work. Basically I 'd like to use an digital edge from counter 0 internal output (already exported to a pin) to trigger the start of counter 1 input. (And then use the start trigger again with the counter 1 internal output to trigger something else, as required by the subsequent tasks.)

 

But whether I use "DAQmx trigger - start trigger " or "DAQmx trigger property node - start trigger", it always returns me error 200452 "Specified property is not supported by the device or is not applicable to the task." at the trigger. But yet it is listed that NI USB-6210 does support start triggering. Anyone knows what's happening?

 

The screenshot of the part of vi is attached.

Thanks in advance,

updating values of excel data in each run time

$
0
0

 Hello!

 

I'm calling excel file into LV to read values of each worksheet, using active X, but everytime I run the code, the values in " data sheet" are not freshed/ updated,  i'm left with the data from the last run, and even when I change the file to get data from, the values of "select a sheet" which contains " sheets name",  are not displayed until the second run, 

Please, you will find attached the VI of reading excel data , any idea how to solve this issue

Thank you

 

 

How to scan in raster manner using dual Galvano mirrors and NiDAQmx?

$
0
0

Hi, 

 

I am working on project where I have to scan the rectangular area of the cells in raster manner by using dual galvano mirrors.

 

I made VI which is intended to scan in raster manner, but unfortunately it is not working in a right way and instead of scanning in raster manner it scan diagonally between the input range.

 

I have attached image which shows the raster pattern I wanted to scan.

 

I also have attached the VI which I use for scanning(I use two diff VIs).

I have attached the video as well to see how it scans right now.

 

and if anyone know another solution apart from this two VI than it also be good.

 

 

Relay control via time

$
0
0

Hi, i´m new in this forum, I have a question about how to perform a time control for my thesis project, it is an uninterrupted power supply controlled by arduino, or it has an AC voltage measurement circuit through an lm317 which reads me in the analog input the value of 0 to 5 volts which I translate to a signal from 0 to 140 v in the programming of the arduino, that would be my control circuit with a few compared, then I want to activate a relay that is my switch of transfer that disconnects the line of voltage to the batteries in case of high or low voltage. If the condition becomes normal return the switch to its original state after 5 minus. my question is: how to make the switch pass from true to false but keep it for 5 min true then turn off. In general lines what I want is like surge protectors that have a pre-established time to return to normal after a high voltaje.


create a file xml as a GXML scheme is possibile?

$
0
0

I have some confusion how to create a xml file custom and open it using GXML library.

In particular i have to create a descriptor of  some blocks with different hierarchical fields, attribute, parents and child.

Is possibile to make it and is there a document that explain how to crete this file following a labview scheme?

I would using GXML library to open and read this file.

Thanks in advance Michele 

Instrument disconnect

$
0
0

I have a VI (LV 2017) controlling 4 Lake Shore 648 powersupplies connected by USB simulated COM ports, one of which (the same one regardless of cable or port) keeps disconnecting. I cannot tell if it is the unit itself or the computer or the software doing it. To reconnect the insturment, I have to physically disconnect and reconnect the unit by either unplugging the cable or turning it off and then on. After this, I cannot get the VI to see the instrument with out completely shutting LV down and re-opening it. I can still however communicate with the instument via the VISA control panel within NIMAX.

 

I have no idea why one program would be able to see it but not the other. I've never had any issues with the other three instruments.

 

Is there some method of diagnosing the issue I can employ? Or better yet....a known fix!?

Irregular Shifted Voltage

$
0
0

I have created a dual waveform generator and it properly puts out two different waves.  However, when I measure the voltage coming from the DaqBox, it does not look like it is supposed to. 

 

The frequency of the voltage spikes does not appear to match the frequency I put into the waveform.  It is always significantly faster.  Also, when the frequency is under 35 Hz, the voltage graph is shifted up towards the positive volts, hitting less and less of the negative volts as the frequency decreases.  When I run the VI in de-bug mode, the voltage amplitude and frequency are perfect, but not when I run it normally.  What could be causing the unusually voltage readings? 

How to solve this Error?

$
0
0

Dear Everyone,

 

How to solve this error?

 

 

Best Regards,

Nirut

LabView 2017 and Multisim 14.1 Co-Simulation

$
0
0

I recently installed LabVIEW 2017 Developer Suite onto my work computer. I have never used the LabVIEW program before, but have experience using Multisim. I read that there was a way for co-simulation between LabVIEW and multisim. I created the multisim circuit and attached co-simulation terminals to the circuit. However, when I open LabVIEW there is no multisim model option when I select the external models folder inside of the control and simulation functions. Is there anyway to allow LabVIEW 2017 to use a multisim VI? Any help would be appreciated.

Advanced micro system

$
0
0

Hello,

has anyone ever worked with a stepper motor controller from AMS (Advanced micro system).
in particular the model DCB 261

 

thanks

Report Generation Toolkit: Why are Word Text Colors Limited to only 16 Colors?

$
0
0

I am using Report Generation Toolkit in LabVIEW 2015 to write text and add tables to a word document.  

When I try to set text or cell backgrounds to a certain color, my color choice is changed to one of only 16 basic colors.  

Following the RGT VIs down, the color is changed in Word_LVtoWD_Color.vi.  The new basic color is then set into the Font property node: ColorIndex.  It seems that ColorIndex only takes 16 values.  

But there is another Font property node: TextColor: RGB, where you can set an unrestricted RGB color.  

Why does Report Generation Toolkit use restricted colors with the ColorIndex node instead of the full TextColor node?  Is there a problem with using the TextColor node?

I want other developers to be able to work on this code, so I don't want to just edit the default RGT vis.  In that case, what is the easiest way to implement the fix?  

I attached a vi that demonstrates the issue.  

 


LABVIEW

$
0
0

Will Labview come with any datalogger from NI Instruments?

 

Enqueue and dequeue cluster then save to TDMS file (or other file?) in producer-consumer

$
0
0

Hi all,

 

I have a producer that is reading from an accelerometer using DAQmx Read

 

I want to send the waveform data from this (2 channels of data, X axis and Y), as well as the current time (using the 'Get Date/ Time in seconds' VI, i.e. a timestamp), the loop iteration count (32 bit integer), and a reading from a clock I made on the front panel (output is a 1D array of doubles) - for each loop to a consumer, that saves it in TDMS (or other) format.

 

I am having some weird issues. I can't seem to set up the cluster constant right. I put in 2 waveforms, a timestamp, an integer and a double but I get an error saying I am trying to put a 'cluster with a waveform and a waveform double' a cluster with '2 measurements, and a waveform of doubles'. I noticed that when I go to dequeue the cluster where I put in two waveforms, it is showing 2 'measurements'... so its changing the data type in the queue.

 

I thought maybe you cant send a whole waveform into a queue, so tried breaking it down into its dt, Y and t0 (and changing the cluster constant to allow this) - but then it said I was trying to connect 7 items to 9 - which I wasn't. So I know I am missing something, but I can't quite see what...

 

Also, will a cluster just save into a TDMS file? or do I have to flatten it/ write it to a string or something (things I read online but not sure apply). I would like to have each input in a different column (waveform1, waveform2, time etc...) and then each sample/ iteration in a different row in my saved file...

 

Any help would be amazing... I have added some pictures - the first is the original, the second has some broken stuff in it I tried (mostly disconnected, but to show my *working*)

 

Thank you!!

 

 

VI Not Responding When Trying to Save

$
0
0

I have some VIs that are used to communicate with a Spectrum Analyzer. However, for some reason these VIs occasionally have issues where Labview will freeze and say "(Not Responding)" when I try to save the program after making certain modifications. Usually it will recover after a few minutes, but I have also seen times where it will not recover. I also have the same issue opening the VIs sometimes. These VIs include some SubVIs from the driver that I downloaded for my spectrum analyzer. However, I had to modify some of the driver VIs from the spectrum analyzer driver llb because they were missing functions that I needed. I am not sure if there is a certain procedure that needs to followed when modifying a VI from a llb file, but it seems like these llb VIs that were modified are the ones causing issues in my main VI.

 

I attached two of my VIs.

 

RSA306B Integrated Power.vi- I cannot open this VI without it freezing, but it sometimes recovers after a few minutes.

 

RSA306B Integrated Power 062118.vi- I went back to a previously saved version of the RSA306B Integrated Power.vi VI and began making one modification at a time before trying to save it to see where I was getting the issue. The picture below shows where the freezing issue occurs in this VI. I added another item to the enum for that driver VI "tkrsa6100 Config Spectrum Trace.vi" and when I remove the enum in the main VI and replace it with a new one with the matching number of items and then try to save the main VI, Labview stops responding. Or if I remove the "tkrsa6100 Config Spectrum Trace.vi" with the "Avg Count" connected to it, the same thing happens. However, I didn't see that issue when I updated the enum for the same "tkrsa6100 Config Spectrum Trace.vi" but with the "Trace Function" and "Average" connected to it.

 

VI Corruption.png

Waveform chart vs Waveform graph for long-term plotting

$
0
0

I am impementing a test system that needs to run for several weeks on end. The customer wants a plot indicating the last 24 hours of data.

 

I have my sampling/logging/etc code set up elsewhere, so this is purely a visual thing for the operator to monitor; I'm not storing "real data" in the plot.

 

A Waveform Chart basically does what I want- I can just feed it data and it handles shifting the array around for the duration I want to be at. I can implement this manually with a Waveform graph, but is there any reason to?

 

In the past I've avoided Waveform Charts as they're a little too "automated" for me- I tend to need more control over how it handles data. Are there any pitfalls with using a Chart for a few weeks on end? Has anyone seen any memory leaks with the automated waveform shifting when new points come in? I'm used to handling that kind of thing myself and am a little wary of trusting it for such a long time period without being able to see how it works "under the hood".

Error 1003: On open vi by reference in runtime environment

$
0
0

Hi,

I have an issue where I have the following main.vi contained in a project (MainProject.lvproj). This main.vi calls A.vi contained in project (HelperProject.lvproj) by reference. 

Attachment 1):

Snippet.png

 

A.vi calls a vi from the toolkit "ni-industrial communications for ethernet/ip"  .

When I run the main.vi in development environment everything works as expected. The issue that I am facing is when I run the build (runtime environment), it gives me an

Error 1003: Open VI Reference in main.vi<APPEND>
VI Path: <b>C:\Debug\HelperProject\LabView Files\A.vi</b>

 

I also noticed this in the dependencies folder of HelperProject 

Attachment 2):

Untitled.png

 

Any hints on how can I solve this? I have attached all of the necessary files in Attachments. I am currently using LabView 2015 64 bit SP1. Help would be appreciated. 

 

Viewing all 67026 articles
Browse latest View live


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