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

global_optimization_problem

$
0
0

Hi,

 

 

I have a little pb with my application, i have tried to use a global optimization but my VI reference doesn't work(where there is the objective function), because i have a Flat sequence  in the Vi (it is necessary to seek a value from a excel file),to be more precise i attach my VIs

 

I really appreciate any help you can provide.


update points in xy graph

$
0
0

Hi there,

 

I'm trying to create a VI that shows a circle being generated in real time from the VI Front Panel. I'm using a loop to generate values and then pass the values to a cluster block and then to a graph block. I've attached a VI for you to see where I'm at. When I run the VI the while loop runs continuously and doesn't pass information to the cluster. In the for loop, the loop runs until it hits the counter number and then passes the data to the cluser block on it's way to the graph block. 

 

I'm trying to make the VI pass a data point outside the while loop and for loop on each iteration to the graph. Can anyone please show me how to do this?

 

Thank you so much,

 

James

labview low energy Bluetooth arduino (Bluefruit LE 32u)

$
0
0

Hi All,

 

I am working on a project where I am using the Bluefruit LE 32u to aquire data from a MAX3675 thermocouple and accelertion using the accelerometer ADXL377. I found an example of labveiw VI of a way to discover near by Low energy bluetooth devices. I am also using the BLED112 dongle that appears as a serial port on labview. I was able to dicover the BLE and connect to it, but i was unable to identifiy and read the acutal data from the BLE.

 

When I read the buffer i revcieve something like this

 

"uit Bluefruit LE 0E2C€# žÊÜ$ å©à“ó£µ Adafruit Bluefruit LE€# "

 

like it is not reading the acutal data but the adress or the name of the  bluetooth device and i am supposed to recieve tempreture readings and acceleration.

 

 I read from other posts that a call library funcrion is a way to do this. Honestly, i dont know how to do it. since i was able to discove and connect to the BLE device, it should not be very diffecult to read the actual data from it with some functions.

 

Would someone help or guide me with a way to modify the IV to recieve the actual data?

 

 

 

 

i am attatching the code. the first loop is to discover and connect to the bluetooth. it contains some sub VIs but i dont think we we need to make modifications to it. it is onle with the second loop that reads the data.

 

 

thank you

 

Hamza

detalization of 3D

$
0
0

Hi!
I have a 3D models exported to LabVIEW.
It work correctly but have low detalization. I see triangles and sometimes front elements hidden by back elements.
see example.

3d.png


Also if I look to model far from the one, I see triangles.
But if I move closer I see better

3d_2.png

 

and better image.


3d_3.png

 

How can I improve quality of model?

 

 

NI 9401 + cRIO 9082 speed measurement

$
0
0

Hello!

I want to measure a rotational signal with the NI9401 and cRIO 9082. For testing i am using a signal generator and it is connected to Mod5/DIO0. In the FPGA I want to measure the rising edges. (see attached picture) With them I would be able to calculate the rpm. But my code doesn't work: The counter counts up constantly even I have no signal generator connected. What is the problem?

 

Thank you in advance.

 

Best regards

Franz

Calibration error when using a load cell in DAQ assistant

$
0
0

Hi,

 

I am having a problem calibrating a load cell using DAQ assistant. The load cell is being read as a full bridge input through a NI 9237 module connected to a CompactDAQ chassis. I have input a calibration table in the DAQ assistant for the correct channel but this does not seem to translate over to the numeric indicator and chart on the front panel. The calibration ranges from 0 mV/V at 0 tonnes to 1.995 mV/V at 300 tonnes but the numeric indicator shows values of the order of 1500 tonnes when there is no load in the system. I can see in NI MAX that the mV/V reading is 0 (well, actually just noise of the order of 1x10-6 mV/V) so my front panel should be reading pretty much 0.

 

Has anyone had a similar problem before and found a solution? I have a few other inputs, all mA readings, that work perfectly well on the same VI and we have had good readings from these load cells using a different VI that was written by professional LabVIEW programmers, so I know that the hardware works. Any suggestions would be appreciated.

 

Thanks,

 

Adam

case structure

$
0
0

Hi there,

 

I'm trying to create a VI that allows me to see different graphs of different functions based on the case that I select. I have a case structure being controlled by a numberic indicator to select each case. In each case there is a graph that is produced from a particular function based on the case. I can't seem to get any graphs to come up at all on run. Right now I have a graph indicator wired for each case but I want to change it so that I have only one graph indicator and the information from the case structure to be inputted into the graph. Any help woould be very much appreciated. 

 

Thank you kindly,

 

James

Handling array in mathscript?

$
0
0

i==0
p=Sx
q=Sy

while (Sx~=p && Sy~=q)
  
for n=0:n
  if Cx(n)==Sx+1
      if Cy(n)==Sy
          Sx=Sx+1
       end
       if Cy(n)==Sy-1
           Sx=Sx+1
            Sy=Sy-1
         end
        if Cy(n)==Sy+1
             Sx=Sx+1
            Sy=Sy+1
          end
   end
end

i=1+i
Rx[i]=Sx

Ry[i]=sy

 

end

 

-----------------------------------------------

I am trying to write this simple code in Mathscript, But Last 3 lines before last END is showing error. I have taken n, Cx, Cy, Sx, Sy, Rx, Ry as input and need only Rx, Ry as output. Cx, Cyy, Rx, Ry are 1D array, Sx, Sy, n are integer numbers.

 

This is the very 1st time I'm using mathscript and not able to find usefull support in internet to solve this problem. Probably I am not using the proper key words for the search. Can anyone plese help me to solve the isuue or to find suitable material to study to solve such isuues?

 

 


Disable connection upon VI start

$
0
0

Hello,

 

Upon VI start undesired action occurs - value Polarization[i] is memorized in flip-flop (please, see the screenshot below).

Does exist some tecjnique, that allow to desactivate a connection (red cross on screenshot) during some instants upon VI start.

 

Thanks in advance

 

Pavel

 

disable_connection_upon_start.JPG

Read strings of different length from TCP/IP

$
0
0

Hi everybody,

I'm quite new in data communication with TCP/IP in Labview.

I'm trying to read hexadecimal strings from a laser scanner. I would like to acquire one string for loop from TCP Read, send it to onother while loop by means of a queue and then decompose, decode it and save it in a file.  Every string begins with 'sSN LMDscandata' and after that there is a variable number of bytes before the next acquisition. How could I acquire correctly my string if in the TCP Read block it is possible to set only a constant number of bytes?

 

I would appreciate it if you could help me as soon as possible..

Thank you very much in advance,

Lorenzo

 

Access violation (0xC0000005) at EIP=0x015F6A2B

$
0
0

Hi,

 

 

I'm trying to convert an image to array, manipulate the array and then write it to the same image in LabVIEW. It works for small images(e.g. 200*200 pixels). But when I try it with a larger image(and sometimes with 200*200 pixels), it crashes and gives this error: Access violation (0xC0000005) at EIP=0x015F6A2B. Here, I attached the lvlog file.

 

Any help would be great.

Thanks.

 

 

####
#Date: 04 Mar 2016 **bleep** 23:55:09
#OSName: Windows 7 Professional Service Pack 1
#OSVers: 6.1
#OSBuild: 7601
#AppName: LabVIEW
#Version: 11.0 32-bit
#AppKind: FDS
#AppModDate: 06/22/2011 08:12 GMT
#LabVIEW Base Address: 0x00400000

 

04.03.2016 23:56:30.794
Crash 0x0: Crash caught by NIER
File Unknown(0) : Crash: Crash caught by NIER
minidump id: 07bc6efb-26c8-4d07-9a6a-29ac527e3b4e
ExceptionCode: 0xC0000005
¥lvr>í
0x01AA0EC9 - LabVIEW <unknown> + 0
0x01AA1408 - LabVIEW <unknown> + 0
0x7C37FDB4 - MSVCR71 <unknown> + 0
0x77EA6637 - ntdll <unknown> + 0
0x77E699D5 - ntdll <unknown> + 0
0x00000000 - <unknown> <unknown> + 0

Creating application for archiving data from the mobile device in LabVIEW.

$
0
0

Hi guys i need help with my application. I need to ensure connection between my phone and PC via USB , then open explorer with files and folders, wich are  in the phone, mark it and backed up and choose duties imposed . Something like in this video just in LabVIEW.

Can you help me? I am a beginner in LabVIEW so please consider.

Thank you.

Labview program to read 8 thermocouples and 3 pressure transducers

$
0
0

I have a NI cDAQ -9174 with NI-9201 and NI-9213 modules. The labview programm I have can read 8 thermocouples and 3 pressure transducers. When I choose the configaration of the DAQ Assistant on Continiuos Samples, after a long running time (labview), Error 200279 pops out and stops the labview: error 200279 says "Attempted to read samples that are no longer available", increase in buffer size, reading the data more frequently or specifying a fixed number of samples to read instead of reading all available samples might correct the problem". I am attaching the picture of my labview. Please help me on this,  labview.JPG

Visa write/read delaying data

$
0
0

Hello,

 

I am having a problem with a VI that should be simple. I am just testing an arduino code in which I am storing the number 4 on its positions of  EEPROM memory and when I sent an a from LabView to Arduino by VISA Write it should start reading the many 4 I stored in its memory but it's very delayed to read the data. It only shows up a 4 in like 20 to 20 minutes and I don't realize the error.

 

I think the error is in how I used Visa Write maybe because I used practically the same codes only removing the VISA write part and it works alright, showing the data constantly/non-stop. But the project I want to develop needs the VISA Write that's why I am trying to get the tests right using it.

 

If someone can help me with this, please.

 

Picture of my VI:

lbv.png

Control Frequency Using Two Numeric Controls

$
0
0

Hi,

 

I know this is quite simple, does anyone know how to control a frequency of a simulated signal using two controls.

The scenario is, when  I adjust the first knob, it should correspond to an increase in frequency also in the graph. When I  increase the second knob, it should increase the freqency also. I've used an OR function to do this, however when I adjust the second knob, it adds to the frequency of the first knob. How can I make the knobs independent of each other.

 

This is my VI.

 

freq.PNG


Is Logitech HD C525 Webcam LabVIEW compatible?

$
0
0

I'm trying to capture the image of a meter and perfrom OCR.  Does IMAQ support the above camera?

Error code -2147217900 Typo

$
0
0

NI,

 

Can you fix the typo in the error source for code -2147217900? (Occured should be occurred)

 

<ERR>ADO Error: 0x80040E14
Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC SQL Server Driver][SQL Server]

 

 

 

how do I customise scroll bars and symbols in a multi column list box

$
0
0

Hello Smiley Very Happy

 

I have recently been designing a FP design and have gotten to a scrollbar within a multi column list box. 

 

How do i change the decals and colours of the scroll bar as i cant seem to change or select any components of it within the control editor.

 

I would like to change the arrow buttons and the slider with a custom arrow decal and have the track a solid colour. In adition to this i would like to either change some of the symbols or add my own custom ones onto the existing list.

 

Is this possible to do?

 

output of vision assistant

$
0
0

i use vision assistant to occur the text from the image.The text obtained should be compared with a string constant so that we can check both equals or not. But the result always shows fail.please help me with it

Connect load cell to Arduino through SPI interface using LINX in LabView

$
0
0

Hello,

 

How do I get loadcell signals into LabView using LINX and arduino UNO? Loadcell is connected to SPI interface card (see attached image). I use the example program SPI LINX from

LabView. I'm a newbie to SPI, so I have no idea what to do, but I know that all connectors and wires is connected correctly from loadcell to SPI interface card. From SPI card to Arduino I also think it's correct(See attached images).

 

 

SPI example block diagram.png

SPI example.png

 

regards,

paalbrok

Viewing all 69574 articles
Browse latest View live


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