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

LVsound2.dll

$
0
0

I have an application that runs just fine in LabView 2018 on Windows 7 Professional.  The same application will not run on Windows 10 because it will not recognize LVsound2.dll.  Has anyone else had this issue?

 

Thanks in advance!


Save Report to Fil.vi crashes when built as executable

Inverse Kinematics implementation

$
0
0

Hi all.

I'm a complete beginner with LabView and I have been practicing forward kinematics with the help of a tutorial I found. It's been a learning curve but I've managed to understand a few things.

However, I have not been able to implement an inverse kinematics vi.

I've been trying to replicate this tutorial but I have been unsuccessful so far.

 

I'm working with a SCARA serial arm.

 

I would really appreciate some guidance on this issue.

.NET Picture Box With Unicode

$
0
0

Hello all,

 

I'm afraid the answer to this question is probably going to be "you just can't do that," but I'm posting just in case there is some genius out there that has an idea to make it work.

 

I want to draw text on a .NET picture box. I have the "UseUnicode=true" ini flag and I am able to type unicode into string controls and display it properly. However when I wire that string control into the "DrawString" .NET node, it treats it as though it was a regular ascii string that's twice as long (I guess) and doesn't draw it properly. 

 

UnicodePictureBox.PNG

 

Does anyone know a way to draw unicode text into a .NET picture box?

 

(attached is a VI with my attempt)

Get Date/Time Delta Time Calculation

$
0
0

Hello,

 

For a rough check, I decided to try checking the RTC drift of an android device by using ADB and comparing it to the Get Date/Time In Seconds function. I first use the Get Date/Time in Seconds to set the android device's clock with the understanding that there will be a small delta between the read and the setting. I then read the devices time/date, compare with the output of Get Date/Time and calculate the difference.

 

I know I could just do everything manually but I'm controlling a temp chamber and logging the data. Plus, what's the fun in that? Smiley Happy

 

So the part that's driving me crazy. I'm having an issue where the camera time comes back pretty consistently in line with the delay I put in the while loop but the Get Date/Time in Seconds output comes back ~100ms different every time. I'm seeing this if the while loop delay is 10 seconds or 1 minute. Does anyone know what could be causing this behavior and maybe suggest a way to overcome it? I'm at a loss. I attached an image of the block diagram and the output of the date query from the device and the calculated delta t. I'm using LV 2018

 

Object Tracking VI with VDM Bounding box error

$
0
0

Hi! I'm really new to Labview and have only started a week ago.

 

So I really need help making this code that will take 3 objects, track their x,y coordinate, create a time-taking function, and output their velocity and rotation.

 

In order to tackle this, I used Labview's object tracking and modified it with Labview's histogram program to have it record a first picture and boundaries on the object then use the object's rectangular coordinates as a base for the bounding box. I am using the traditional mean shift device at the moment. However, as shown by the error in the picture, I have an "invalid bounding box passed" error. I am not sure how to fix this and would appreciate any examples or advice.

 

Thank you so much!

 

Sincerely,

Venus Luong

 

Need help with school project (This is not an honor code violation)

$
0
0

Hey, so I just created an account here. Before I get a flood of comments, let me answer some basic ones:

 

1. My team asks my professor for help with this constantly, and he usually shrugs his shoulders and says: "Yeah I don't really know HOW to do that but THIS is what you gotta do somehow." -- aka not helpful.

 

2. This is not a violation of any honor code. I am not asking for anyone to do my school project for me, I am simply asking for some basic guidance and labview tutoring from labview experts. This is the best place I know to do that.

 

3. I wish my school had a labview class or something that actually could help me prepare for the kind of project I am doing, but alas, we all kind of just get thrown into this with little more than a crash course in how to make a basic GUI.

 

Now, to begin:

 

I am working in a team of 3 to create a data collection system using arduino and labview. The project consists of creating a robust 3D-printed shell for electrical components, creating an electrical system that can collect the data we need, managing that data with labview through a publishing/subscribing strategy using the arduino mac address, and creating a "professional" GUI with labview that makes the collected data very clear and easy to read/navigate.

 

Problem: None of us have ever used labview before, I have the hardest professor for the class, and we have roughly 3 weeks before we gotta have our deliverable product.

 

We will be collecting humidity, light, and temperature data with the arduino. 

 

Questions:

 

1. We need to figure out how to send data from a server directly to an excel spreadsheet file. Where do we even begin with this? Again, my professor offers no help besides: "Yeah, you have to retrieve the data from the server and somehow store it in excel." -- how do we do this? Is there any tutorials you guys know of that explain how one could take data in labview and automatically send it into an excel file?

 

2. We need to figure out how to display data based on a specific selection like: "temperature from 8-9 pm Thursday + 7-9 am Friday." Again, is there anything out there that can help me better understand how one might do something like that? Would it be smartest to try to retrieve that data back from excel somehow and graph it, or is there a better approach?

 

These are the two most pressing things for us right now. I'm sorry if my questions seem very vague--I'm not even sure what I am supposed to ask or what terms I can use to make the questions clearer, as I literally barely even know how to make a button light up in labview lol.

 

ANY help is appreciated. ANY re-directions to helpful tutorials in something like this would be appreciated. I basically just need to learn labview well and very fast, as my professor isn't giving us any VI's to copy like other class sections are getting--We gotta do things from scratch, and I barely know where to start.

 

Thank you!

 

P.S. Pray for the grades of everyone in my class Smiley Sad

Writing to a single serial port with multiple VI's in LabVIEW

$
0
0

Shall you please guide me... for the data transfer between computer VI to myRio VI using same serial port

 

Objective using same serial port : First Vi (Desktop/computer) write the data, Second VI (myRio) read the data

 

 

 

I found the below link, which may be the exact solution. But the program VI is not working with Labview 2016.

 

http://www.ni.com/example/29287/en/

 

Windows will only allow one program to access a serial port at a time. This is so that two programs do not try to talk to the same device at the same time and scramble each other's data; however, you can coordinate two or more VI's, so that they work together and share the serial port by using VISA. The first VI opens the VISA session and puts the VISA refnum into a queue and then begins to talk to the serial device. The second VI would read the VISA refnum from the same queue. The VISA driver coordinates the activities of the two VIs automatically, since they are both using the same VISA refnum. 

 

 

 

 

 


Multi sample FFT in Flexrio 7976 and VST

$
0
0
Hello, I am trying to compute multi sample FFT for my signal processing applications. I am using VST-5840 and trying to access data in Flexrio 7976 through p2pFIFO(8 samples/input). I am spiting the I & Q then feeding the array to Labview FFT core configured as continuous input and M interval output indexes(1024pts), At host side I am computing magnitude and doing decimation and plotting the results. But the problem is that my magnitude is not as that is required means maximum at consecutive 4,5 bins. Rather my magnitude is distributed over the entire band and I am getting 4 higher peaks and 4 lower peaks. It means my data is not continuous or if aligned/unpacked?    

Image JPG - Get Comment

$
0
0

Hello

 

I would like to get the comment from a jpg image. I can view it with the program IfranView. Is it possible to get this string with LabView?

 

配列データをエクセルへの貼り付けとグラフ作成について

$
0
0

Labview上でエクセルファイル(Excel 2010を使用)を実行し、下記のようなプログラムを作成したいです。
1については過去にNI_Excel.Ivclass:にて似たようなプログラムを作成しているため、イメージがついております。
2~3においてはどのように作成したらよいかアドバイスをいただきますか。

NI_Excel.Ivclass:Excel Insert Graph.vi等を使用してみましたが、NI_Excel.Ivclass では3のような細かいグラフ編集ができないという認識で正しいでしょうか。
(試しにNI_Excel.Ivclass:Excel Set Graph Scale等で作成してみましたが、系列を列方向に定義、Y軸の目盛り線の任意設定、凡例の表示はできませんでした。)
もしその場合はActiveXのプロパティノードやインボークノードを駆使してエクセルのVBAマクロを使用しないと無理でしょうか。


作成したいプログラム内容:
1. 測定値や計算値を入れた配列表示器のデータをエクセルの指定したシートとセル位置に張り付ける
2. エクセルに張り付けたセルのデータを基に好きな位置でグラフを作成し配置する(グラフは画像ファイルではなく、該当セルのデータに同期したグラフを希望)
3.グラフの編集として、散布図使用、系列を列方向に定義、XおよびY軸の目盛り線設定、凡例の表示、フォントや各カラーの設定等々(添付ファイル参照)

期待値の出力イメージ:添付ファイルを参照ください。

 

以上

野沢

Unicode support in built applications

$
0
0

We are trying to build an application with a user interface in Russian, exploiting the (limited) LabVIEW Unicode support.

However it does not seem to work in the built application. Adding "UseUnicode = true" to the application file ini does not do the trick.

Does anybody knows if it's even possible and how to do it?

Thanks in advance.

配列データをエクセルへの貼り付けとグラフ作成について

building an array with auto indexing

$
0
0

Hello everyone,

I have a problem and I'm hoping you can help me

Heres what I want to implement:

 

I have an array containing data (1d array) within a flat sequence. in the first frame I empty the array, in the 2nd I write new values into it, in the 3rd I write the values in my .csv file and then the sequence starts all over again.

so what I want to do is to create an array that adds a new row for each iteration of the sequence and save the new data in the array so I get one big array containing all the values.

I tried build array with auto indexing but I just can't seem to make it work because my input would be the value array (so only one input) and for the output i would expect an array with x rows 

I'm grateful for every answer !! 

Thanks, A

 

arrays

$
0
0

Consider 2 2D arrays (X and Y). How will i convert them into an array of clusters in this  required format?

X and Y = Inputs

Array =  Required Output

 

 

Thank you


DAQmx write is slow. How to optimize speed?

$
0
0

Hi folk,

 

I have a cDAQ 9178 (via USB) and a NI 9264 on it.

 

In my code, I want to write 0-5V analog output signals on multiple channels (as commands to a set of motors). Please see the snippet attached.

daqmx write snippet.png

The problem is that the loop execution time is relatively long (at least 4ms with my simple measurement). See the results. In my actual code, it reaches up to 10ms.

daqmx write results.png

For my application (feedback force controller), I need much faster cycles, ideally below 1ms.

 

Any suggestion how I might optimize speed?

 

Thanks

Traditional NI-DAQ (Legacy) 7.4.4

$
0
0

Hello everyone,

 

I was trying to download the Traditional NI-DAQ (Legacy) 7.4.4 from here drivers but it seems they are unavailable now... Was wondering if someone has them or know where i can download.

 

Thanks,

 

Vadim Santos

download LabView 2016 32 Bit

$
0
0

Hello,

where can I download LabView 2016 32 Bit?

I can do it from "ni.com"

Please send me a link if you have it

Best regards

Dessiner un graphe à partir d'un tableau

$
0
0

Bonjour tout le monde, 

Je suis stagiaire et je débute sur Labview. je suis emmené à prélever les fréquences du spectre d'un signal qui évolue dans le temps. j'ai pu faire cette étape et les stocker dans un tableau. 
Maintenant j'aimerai construire un graphe qui exprime les fréquences enregistrées en fonction du temps. pouvez vous m'aidez s'il vous plaît? 
je joins à ce post mon programme.
merci d'avance.

Choose default output text file encoding

$
0
0

I'm fairly new to LabVIEW, and I'm not sure which forum is the best place for this question.

 

I've been working with tab-delimited text-file outputs from LabVIEW VIs that act as control/data acquisition systems with various test cells. Even though all the outputs are raw text files, I've encountered four separate encodings for those files so far, namely UTF-16, UTF-16_le, UTF-8, and ANSI. More confusingly, I've seen the encoding of output files change between runs without changes in the code, namely from UTF-16_le to ANSI. In looking at the write-to-file VIs available in the library, I haven't seen an option to choose a default encoding, and ideally, I would like to specify UTF-8 as the default encoding for output files.

 

All that being said, is there a write-to-file VI or option to select where I can choose a default encoding? I've uploaded a screenshot of the context help for the VI that the programs I'm working with use to create the output files in question, as it is no longer in the standard library (these are slightly older programs).

 

Thanks

Viewing all 69222 articles
Browse latest View live


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