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

VISA write function does not work

$
0
0

Hi,

I'm trying to solve an issue related to Visa write function. My program worked without problems until today, when running it I obtained :

[ Error -1073807360 occurred at VISA Write in Send Data.vi->Send Sensor Coefficients.vi->Progetto_opt.vi]

Possible reason(s):

VISA: (Hex 0xBFFF0000) Unknown system error (miscellaneous error).

So, since the COM port is correct (I'm using a PsoC device connected through USB port) what I've done is to check if some other programs (like the examples provided by LV in the detailed help of the Visa write function) worked, but nothing. I also tried to disinstall and re-install the NI-VISA but without success. I didn't fin any solution neither in the NI forum or in Google.

Can someone explain me how to solve this nasty situation?

thanks


LabView Resets String and Numeric Values

$
0
0

Hi,

 

Everytime I open and close my VI i lose my string and numeric values that i entered. I do save the values before closing the VI but somehow it doesnt appear when i open the VI again. Please see the attached pictures for your reference.

 

 

Thanks,

Control logic of velocity

$
0
0

Hi guys,

 

I'm using NI9514 to control a servo mortor, but the control logic just confuses me. I used Straight-Line-Move block to give a certain velocity to motor and the motor does follow the velocity. But what's strange is there is no velocity control loop in the axis configuration, so what is the real thing that's controlling the speed? Is it that the velocity just got integrated to position? The axis configuration is listed as below. Any reply is appreciated!

axis config.PNG

Best Regards

How to add the mutiple random number together ? The random numbers are generated out of the for loop .

$
0
0

1.jpgi want to add all the elements at the red arrow place . Thank you first 

LabVIEW - How to stop Producer Loop with a condition in Consumer loop?

$
0
0

I have a file that does this:

 

1. Reads Text file

2. formats text file into a 3xN array (each line of text is stored in each row).

Now I want a queue to process each of those elements (i separated each column of the array).

 

My problem: how can I stop the producer/consumer loops when the end of text file is reached (i.e. no more elements to be read) My queue loops simply bundle/unbundle/index arrays.

 

 

Analog ECG signal to LabVIEW

$
0
0

Hello I am trying to get my analog ECG pulse into LabVIEW from my SC-2075 breadboard. I am having trouble getting the signal into LabVIEW, and I am getting incorrect waveform pulse. I have checked my circuit which consist of an instrumentation amplifier, a 60 Hz notch filter, and a Low Pass Filter. LabVIEW is being very inconsistent with getting the pulse to look like an actual heart rate like its supposed to, and I would like to know why it does not always work. Attached is my LabVIEW circuit, however it can not accurately read my heart. I also do not have access to the Biomedical Toolkit or any Advanced Signal Processing Toolkits.

Sound source localize

$
0
0

hi! I'm doing a project to localize acoustic source with array of hydrophones

From where should i begin?

What is the hardware should i use?

Thanks

Data Acquisition using Raspberry pi and processing the signal to measure the frequency, amplitude and phase.

$
0
0

Hello

I am successful in reading the analog signal using the MCP3008 ( analog to digital converter) along with Raspberry Pi to LabVIEW using the BCM2835 library. The signal acquired is a Double (64 bit). Then I converted it into 1D array and then I build a waveform using the array. After getting the waveform, I tried using the tone measurement to measure the quantities. But using tone measurement in the same while loop is making the loop to run slow, where I am missing the samples. So I am using the Producer Consumer loop concept. Data is acquired in producer loop and analyzed in consumer loop. I am using the enqueue and dequeue to pass the data between two loops. When I am using the tone measurement in consumer loop it outputs are showing as zero ( I found the possible reason as tone measurement block require certain number of cycles to measure the data, but dequeue is passing one element at a time, but I am not able to resolve the issue). Can any one please let know how to measure the frequency, amplitude and phase of the data acquired. 

 

I also used Buneman frequency estimator with the generated waveform, but the frequency I am measuring is slightly higher (+0.2 to +8) than the analog source signal.

 

 

Thank you in advance

Ram  


Servo timing (LabVIEW, Linx & Arduino)

$
0
0

Hello there, you lovely people!

 

This forum has been so helpful to me, nearly every time I have a problem it turns out someone else had it before me and one of you brilliant folk solved it. With that in mind, I was wondering if anyone could explain to me why this isn't working. I'm ultimately trying to get multiple servos to move to certain positions at preset times, but this is my single-servo test and it's not working at all. (I've set the "False" case to a toggle that moves the servo between two positions, largely just to check that the servo works. It does).

 

I've tried to label stuff so it makes sense, but if there's anything that's not clear, just ask!

 

Thank you!

 

Timing Test.PNG

Upgrading to LV 2017 from LV 2015 causes a dramatic slow down in application execution speed

$
0
0

I recently upgraded to LV 2017 17.0f2 (64-bit) from LV 2015 15.0.1f10 (64-bit). Noticed a remarkable slow down in execution speed of an application I originally developed in LV2015. Any Ideas why? A bit disappointed as I expected newer versions to better/faster or atleast as good as the previous ones. To put things in perspective, a loop which used to run every 140 ms now takes 280 ms!!

 

Help with variant to data function (Error 1 : Incorrect function/ Error 91)

$
0
0

May I ask if anyone here has any experience with using the ActiveX classes in Labview. It seems that within my VI, there is a problem with the Variant to Data function, it keeps returning “Error 1 has occurred at incorrect function in the VI.” Sometimes, it returns Error 91 too. Running the VI without connecting the external sensor still results in the error. The purpose of this VI is to read Data from the external sensor and log data into a CSV file. I am using Labview 2018 version 18.0(32-bit)

Case Structures function help

$
0
0

Hello

 

So i am currently working on code that will deal with more than one case structure functions (in total roughly four). Within the case structures, I will be dealing with RTDS and 2 pump meters. I need help with LabVIEW to interpret what I am trying to say and I am not sure of where to begin 

 

1. If the user wishes RTD to measure temperature between 5-20 degrees, allow pump 1 only to pump. and allow max pump rate of pump meter to be 6litres per minute. 

2.  If the user wishes RTD to measure temperature between 36-46 degrees, allow pump 2 only to pump. and allow max pump rate of pump meter to be 6 litres per minute.

3. If the user wishes RTD to measure temperature between 20-36 degrees, allow both pump 1 and pump 2  to pump. and allow max pump rate of both pump meters pump meter to be 3  litres per minute respectively.

4. If  RTD  temperature is met, shut down both pump 1 and 2 respectively. 

 

Cheers, 

Pressure transducer - NI 9263 and NI 9174

$
0
0

Hello,

I am able to generate the desired signal using Analog output module NI 9263 on cDAQ 9174. I have been triggering/starting the generation using from run button in Labview. I would now like to trigger the same externally using an ON/OFF switch.I am confused regarding the usage of module.

Could any one  please help me in this regard? What module is required for this purpose?

Any help will be highly appreciated.

Thank you.

Pieterson

CMRR mode in 6211

$
0
0

Hello all,

 

I am building a data acquisition system that measures very low voltage (human electrodes) using NI USB-6211. I am using NRSE mode, using AI +, AI Ground and AI Sense (reference) channels. This part seems working OK but I also need to measure single-ended (or differential) analog input on the other AI channel. I created a task with 2 physical channels (each with different mode) but when I measure both channels, channel with NRSE mode also reads what the other channel is reading. I can't figure out how to measure these 2 AI channels independently from each other. Can someone help where I'm doing wrong? Much appreciated.NRSE_6211.PNG

Problemas with Labview Installation

$
0
0

Hi everyone, Due to old driver for an old equipment I need to use an old version of Labview. I have the version 8.5 and the version 8.6. Primarly I installed the version 8.5, but I discovered the driver were not working with that version but rather they were working with 8.6. So I decided to install the version 8.6 but I got an error, they show "error 12" and the installation stops. Ive read that error could be because of windows.net frameworks since I am using windows 10 and we use now a 4.5 framework. Summing up I have some question: 

1. Why was I allowed to install 8.5 without any problem ? it could be because the computer had been install windows 10 the same morning and it didnt have any update yet ? 

2. I tried to get the driver files that I also have them on labview 5.0 convert it to 8.5 but i didnt get any answer so I presume you cannot get that kind of files convert it.. they are from kepco.

3. Is there any way of removing the 4.5 windows.net framework ? or has anyone any idea about any solution for my issue ? because I have tried to switch off that aplication but its still the same probleM so I presume i will need to uninstall it but Im not sure if you can do that on windows 10. 

4. All this comes because of the complexitiy of the programme so it seems I would need to open it with labview 8.5 -8.6 , any solution is welcome. 

Thanks in advance 


boolean

Andor sCMOS camera Buffer Problem(slow frame rate)

$
0
0

Hi there,

 

I am using Andor Zyla 5.5 model controlled by Labview to acquire images in high speed.The labview libraries are provided by Andor.  I used the following settings: Rolling Shutter, 560 MHz readout rate, 2.72e-5 s Exposure time, External Trigger signal (10kHz), Overlap ON, AOI(1024X8 pixels). According to the specs, it should be running at as high as 27,027 fps. But once I set the frame rate higher than 5,000 fps, the acquisition stucked after a while.The real-time display is "frozen" after  continuing display for a while.

 

Even if I removed anything other than download from the WaitForBuffer.vi, still not working. Then I looked into the acquisition loop, it seems like camera run out of input buffer queue so it has to wait until some buffer space is queued back from output buffer queue. The strange thing is in either circular buffer mode or simple live mode, it always queue back the buffer when it is buffer is not used It seems that something is occupying the time resources so that the loop is too slow hence it cannot catch up? I assigned sufficient buffer with the createBuffer.vi  still no use.

 

It's just so confusing to me which step actually delays the looping time? I tried using queue instead of local variables but still no luck. 

 

Apart from the software, I am using USB 3.0 port for data transfer. Is it because of the limitation of the USB port speed or the RAM speed. BTW, my RAM is DDR3-1600 and 8GB size.  

 

I have attached respective files, I would appreciate any help in camera buffer management or experienced users with Andor cameras. Thank you so much! I appreciate any of your help!

 

Kind regards,

Sean Shen

Writing data into measurement file only after a certain condition is met

$
0
0

Hi all,

 

I have a producer/consumer loop with a NI-DAQmx acquiring one sample every second, which is then written into a measurement file along with its time interval (basically 0s, 1s, 2s and so on), which in turn gets sent into an excel file. When I start the program, it starts reading immediately and everything gets written into the measurement file. However this requires a bit of manual post-processing in Excel because I need to cut out the initial conditions data which is of no interest to me and reinitialize the time back to zero. To illustrate: I start the program, data starts being read and displayed, it takes me 4 seconds to make a change to the system, so for example

0s, 5

1s, 5

2s, 5

3s, 5

4s, 5

5s, 1

6s, 8

 

Everything before that 4 s can be ignored so I want the measurement file to read

0s, 5

1s, 1 

2s, 8

 

The thing is, I cannot set the data writing after a certain amount of elapsed time simply because the system change must be made manually and different users have different reaction times. I have an idea of maybe asking the program to only start writing data if the difference between the value and the next value crosses a certain threshold, and replace the time value to 0 s.

 

I feel this might be doable somehow using case structures but I'm not sure how to go about it. Ideally I would create a SubVI so I integrate it easily into the system. Can anyone give me an idea of how to accomplish this using Labview programatically, (without making a macro in Excel)?

 

Thanks in advance.

XY Graph and 3D Surface Simultaneously

$
0
0

I am a newbie to LabVIEW and am trying to use the software to graph incoming data from ultrasonic sensors. I have created a real time 3D surface graph with a random number for Z instead of the data I will have incoming with fixed X and Y values. As the 3D graph develops it moves 1 square at a time for the incoming Z data to plot, however to make the physical side of things easier I would like to create a simple plot of the (X,Y) coordinates also in real time along with the 3D surface to be able to visualize position easier. I have no idea how to do this as I have no previous LabVIEW experience so any help would be fantastic! (I have uploaded my real time 3D surface vi)

Thanks in advance.

Initialize several Top VI controls from initialization subVI

$
0
0

Hello everybody,

 

I'm trying to design an initialization subVI for the GUI of my top VI, but I'm not being able to create an array of refnums with the controls of the front panel that I want to initalize to pass it to the subVI.

image.png

Then I'm doing it like this right now:

image.pngTop Level VI

image.pngInitialization SubVI

Updating the controls, via property nodes and local variables, in the top level diagram because I can't create arrays with the top level FP controls that I want to pass to the SubVI. There is a cleaner way to do this?

 

I have read about the pane property node "controls []". But I don't need them all, and I need them in a certain order. I think it can be very tricky to sort and select the useful ones.

 

Best regards and thanks for your time,

 

 

EMCCi

Viewing all 69229 articles
Browse latest View live