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

problem in running .wave music file

$
0
0

hello Everyone,

I'm New to the LabVIEW and I just started my New Job. I'm working on the LabVIEW Project in which the Vi should play the .wav music file to NI DAQ card card which is of 10hrs and display the Time, the music starts playing but don't know what happen when I come and see my pc the Time display will be Randomly changing value. please any one of u can lead me to know better solution 

Thanks in advance

Gowtham.R


Excel OLE Error when accessing Excel through LabVIEW

$
0
0

Hi All

 

I have an application wherein I am searching through large number of excel files names (in hundreds) . If the excel file name matches with Pattern provided, I am opening the excel , reading few columns from it and then closing the excel. The pattern which I am providing to look into excel file has upto 1500 permutations.

So in short , I am taking each pattern at one time , checking its availability in hundreds of excel file names and if it is present , I am opening excel, reading stuff and then closing excel.

This works good for some time , however After some time , when my LV application is running I am getting below error popup :

"Microsoft Excel is waiting for another application to complete an OLE action." This popup continues to come at very fast rate and remains there even if I exit LabVIEW.

 

If I am opening normal Excel file(and not through LaBVIEW) this issue is not observed.

I am attaching VI over here which I am using for reading excel.

Search a String within another string

$
0
0

Hi All

I have an application wherein I am trying to search StrA in StrB where StrA can be greater in length than StrB.

For Eg: StrA: Hot Bucket water spills.

StrB: New bucket

 

So I need to check if StrA any part is present in StrB. If the match is found then I will be doing further processing logic . I have checked with match pattern , regular expression, search/split functions , however not getting the expected output since StrA and StrB values can vary a lot. Also converting string to Array and then compare is not an option since these processing is only a initial part of application and needs much processing later.

I would like to implement a function which should be able to check if string one part is present in another string, then match should be found. 

 

10 G communication and LabVIEW

$
0
0

I have gotten a last minute assignment of the highest priority that is centered on writing and  reading messages sent over a 10 GB Ethernet connection. Will LabView's TCP drivers support this or will I have to develop read and write processes using the LabView Network Streams vi's to handle the task. A prompt reply would be greatly appreciated. I'm currently developing in LV 2014 but can upgrade to LV 2016 if necessary.

Thank you for any help.

 

Josh

Guidance for the below mention commands

$
0
0

Hello everyone, 

 

I attached a couple of pictures if anyone please guide me in its understanding how its working.

 

 

Regards,

Taufeey

 

NI visa read serial looses a lot of data

$
0
0

Hi,

I am sending a continuous serial data from a micro-controller to the PC via serial port at a baud rate of 1562500.

I noticed that my lab-view read vi attached below looses lots of the data packets that I am sending. When I went through the saved data I notice that the data in the receive buffer has been flashed in the middle of the transmission and all the synchronization is lost.I tried using various buffer sizes but it seems the program behaves the same.

The problem I have is quite similar to the following.

https://forums.ni.com/t5/LabVIEW/VISA-Read-continuous-serial-data-drops-packets/td-p/3580333

 

Here I have attached the vi I am using at the moment.

Can Communication lag

$
0
0

Hey everyone :-) Me again!

 

right now I develop a Labview Software using the CAN BUS protocol.

I use a PCAN adapter that is connected via USB. Communication works via PCAN_Driver_LV2010 v1.0.0

https://lavag.org/files/file/211-pcan-driver_lv2009/, I can send and receive and control the device.

 

BUT: I do have a strange time lag reading. An example: I read the can message for voltage and display them in a diagram. The device is continuously sending the voltage can message. If I switch off the device, data continues to be displayed for a minute or so, unless the device is already turned off and stopped to send data some time ago. I verified it with PCAN viewer, that uses the same connection and immediately stops to receive data when I switch off the device... So - principally it is possible.

 

I posted a screenshot to clarify what happenes and I posted my reading vi. If you need further information please let me know.

 

Precise questions:

 

1) Is there a buffer, the driver is reading from?

2) Do I read too slow (not often enough)?

 

 

If anyone has experience with the use of the PCAN Dongle and the driver mentioned or an idea, please let me know :-)

Best regards

Anna

Lost connection to OPC client

$
0
0

Hi there,

I'm using LabVIEW 2013 on Windows 7.

 

I've a problem with a LabVIEW project. I've created a I/O server (type OPC client) in the project explorer. I make the code and I run the simulation. Sometimes it works and sometimes doesn't works.

When it doesn't works, if I browse to look for the variable I have to read, I even didn't see the variables.

I also open the "NI Distributed System Manager" and also with this tool I can't see the variables and it says that the connection was cutted. So that if I run the simulation, LabVIEW give me the error -1950679035 (image attached), because it can't reach the variable.

 

Someone has a solution? Someone already had this problem?

 

Thank you very much 

 


MyRio 1900 + ADS1115 (i2c)

$
0
0

I got myself an MyRio-1900 today and was wondering of somebody can help me with reading data from an i2c device.

Adafruit ADS1115, 16-bit ADC. The address of the unit is 0x49.

 

I have only tryed it on arduino devices and not in Labview before.

 

http://www.ti.com/product/ADS1115/technicaldocuments

 

I want to do this:

  1. Sett unit for DIFF readings (AI0 + AI1, AI2 + AI3)
  2. PGA = 1
  3. Speed to 64SPS
  4. Mode = Singel-Shot

 

can not run cDAQ9188XT

$
0
0

Hello,

after installing NI-daqmx 18.5, i am not able to run cdaq9188xt from labview. Run option is broken. when i tried to load DAQInit-sub.vi file, it showing that ''fail to upload nilvaiu.dll''. even if i am not finding cdaq9188xt driver in NI-MAX.

 

Can some one tell me what is the solution of this problem?

 

Best regards,

kaium khan

Utiliser Imaq en mode Tablette

Survey: LabVIEW FPGA Simulation

$
0
0

Hello,

 

Our LabVIEW NXG FPGA team is exploring how customers use FPGA simulation in LabVIEW.  We’ve created a short survey for people who have used LabVIEW FPGA.  This survey should take no more than 5 minutes to complete and your responses will be an important consideration in our design process.

 

https://www.surveygizmo.com/s3/4691458/FPGA-Simulation

 

Please complete the survey by 5:00pm (CST) on Thursday, December 13th.

 

Thanks,

 

Salvador Santolucito

Product Owner

National Instruments

Generate Digital Output (HSDIO NI PXI 6535) through two channels with a 90 degree phase shift

$
0
0

Good evening, 

 

I have a question:  My requirement is as follows,

 

1. I have two DIO Channels (They're configured to outputs on the fly using DAQmx vis). 

2. I have to generate a 1KHz waveform with a 90 degree phase shift between the two. 

   (DO CH0 - High, DO CH1 - Low)

3. What is the correct way I can accomplish this? Is a software based .5ms delay between the digital output ON state sufficient? Or, Is there a better way of timing both these outputs using the DAQmx sample clock?

PS: If I am to use the sample clock, I will be using the onboard sample clock source. 

PPS: I am alright with fellow members not posting code samples. Just ideas are sufficient along with an illustration maybe since pictures are easier to understand. 

VIPM install failed when install LABVIEW 2018 error JKIUpdateTask.job

$
0
0

Hi everyone!

 When I try to reinstall Labview 2018 after uninstall last week(maybe uninstall in the wrong way), I have a problem. an error was encountered as image below. 

Please help me!

Thank you so much!

 

Insert into array does nothing

$
0
0

Hello,

 

I'm trying to make a function which takes an initialized array of some size, and within a while loop, creates an array such that

 

array[i] = total time elapsed,

 

where i is the current loop iteration. According to numeric indicators, the behaviour of elapsed time and iterations is correct, but nothing is ever inserted into the array. All elements are still 0. What might be wrong? I've attached my code below.


About LabVIEW screen is incorrect

$
0
0

Ok I just started a new company. I downloaded LabVIEW 2018 on the new laptop. The prompt at the beginning asked for the NI account. I inadvertently used my personal LabVIEW email account. When I start LabVIEW and hit the "About" button, the "About LabVIEW" screen is displayed. My name and company is displayed - however this is incorrect. I have since created a new labview account with my new company email. How can I change the info on the About page?

 

thanks,

David

WEB Publish RT

$
0
0

Hi all,

I'm working with CRIO 9045. My CRIO must communicate with an inverter and an external scada in Modbus TCP. I use vi.lib for inverter:

image.png 

and I use lvlib for external scada:

image.png

I have no problem if I launch my project with LabView IDE. I have communication problems if a launch my project on Web.

Can you help me?

 

Thank you

Run with Resampling(FIR) and memory is full error

$
0
0

Hello,

 

I read the UDP I/Q raw data package from a receiver ,then do FM demodulation and resampling.

I try to run my program.

If I use "FIR filter" option for resampling, it will show a error message:"Memory is full...".

If I use others like "linear", "spline", it will not show any error message.

I do not know why the resampling using fir filter will show this error message.

Hope some of you guys (or girls) are able to help me.

thanks! 

 

Howard

擷取.JPG擷取1.JPG擷取2.JPG

 

 

trying to write booleans with DAQmx

$
0
0

I'm trying to cycle through some boolean values in an array one at a time then write these with DAQmx for a beacon control.  I'm getting the error that the number of channels does not match the data (Error 200524):

 

Possible reason(s):

Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.

When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.

Number of Channels in Task: 4
Number of Channels in Data: 1

 

Previous to this code, I had set up a DAQmx Digital output task with 4 lines in it

 

I've attached a segment of my block diagram - my thinking is that this would index through the array (previous to this I had an auto indexing tunnel looping through, which gave the same error. 

 

Could anyone give me a pointer on how to overcome this, or a better way of acheiving it?

 

Control and measure same time

$
0
0

Hello Guys!

 

I make a friction measure program. It gives the value of the degree the inclane when it is arrives to the first optical sensor. In the second step of the program the first optical sensors high value start the measure of the time and the second optical sensor high value give the elapsed time between this 2 high signal. After that on the 2 next step I'm reading the details. I measure the kinetic and the static friction as well. I have a problem that I want to up the inclnae with a motor between limit switches and with a next motor i want to pull back the thing that i am slip on the inclane. I write a "basic program" the basic program contains the basic measure and the other one which is contain a " motor control" but when i control the motor in a desparete step the program doesnt measure the degree and the elapsed time and dont fill the arrays. Can someone tell me how can I control the motor in the same time and measure my parameters?

Viewing all 69556 articles
Browse latest View live


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