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

Reading Metadata from TDSM file in Python

$
0
0

Hello, 

 

I am very new to working with TDSM files. I am trying to access the metadata (units, etc.) from python. I have tried the npTDMS and pytdms packages with no success. Has anyone figured out how to access the metadata in python? 

 

Thanks!


storing and averaging value

$
0
0

Hi All,

 

I have a program which I am acquiring samples from NI9201 and output as analog dbl. I want to also calculate an average value over 10 samples and output that as well. After setting up the code and running, there is no difference in the calculated "Average" values and the raw reading as displayed by the two separate waveform. Could anyone shed a light on this?

 

Thanks!

 

Calling a C++ DLL on RT PXI

$
0
0

Hi!

 

We have an ticket # running with NI support regarding this, but I figured I would try the forums as well.

 

We are trying to package a C++ dll of ours so that it can be use on a PXI Real-Time system.

 

However, we are experiencing problem when trying to call it from a VI in LabVIEW running on the target device.

 

When trying running everything on the local pc, it works as expected.

The numeric on the VI display `43' which is the test return value we expect from our DLL.

 

However, when running on the RT target, we get the following:

err.png

 

We have build the C++ DLL strictly following the instruction here (using MSVC 2010), and validated it using the utility from that same page.

 

I have included both the project of our DLL as well as the VI in which we are trying to use it.

 

What could be wrong ?

 

 

Thank you very much for any help,

 

Kind regards,

 

 

Germain

Windows 10 home edition and LV2019

$
0
0

Is-it possible to run an executable built with LV2019 on a computer with Windows 10 home edition (64 bits)?

 

The execubable will be built on a Windows 7 Pro 64 bits with LV2019 32 bits:

 

Drivers: Ni-Serial and NiDaqmx. 

 

The target computer will have Windows 10 home edition 64 bits.

 

Thanks.

 

JM

 

Students Grade Ranking

$
0
0

Hello,

 

I've been working on this project where I list name and exam scores on the input and display name, exam average, grade and rank in class on the output. On the output, I've got name, exam average, and grade but I am struggling with the ranking. Please help.

Arduino and USB Camera not working together

$
0
0

Hello Gentleman,

 

I have a problem, maybe you can help me.

 

I'm developing a system using a couple of arduinos to control a CNC-like machine, the machine has a camera in one of the axis, you will place the camera over the ROI with the arduino and the camera take the images.

 

it was working in my old laptop fine, but I'm migrating to a newest laptop (old one is slow) and it is not working anymore, ones I activate the camera to see the image the camera shows me "timeout error 0xbff6901b", I'm using the same instruments, wires, etc from one computer to the other, but the new laptop does't work, it looks like the problem starts when I open the serial port to communicate with the arduino (I'm using simple serial communication), seems like the camera is trying to use the same "resources" than the arduino.

 

I know they can work together since it is working in my old laptop but not in the new one, it there a way to verify whats is going on?

 

any hint would be highly appreciated

 

Tx in advance

 

Memo

hosting Web VI in NI server

$
0
0

Hi , 

i followed each step to host my web VI in NI server and 

when i enter this URL address in my browser :  http://localhost/WebApp_Web%20Server/Main.html 

i get this error 

 

HTTP 404 error

That’s odd... Microsoft Edge can’t find this page

 

can anyone help me ? 

 

 

Login tab (LabVIEW NXG)

$
0
0

Hi guys, 

 

I tried to make a login tab in my VI, but it doesn't seem to work quite as I expected. What I tried to do is to make a tab control with the first tab being login-window. When the user writes in a username and password that matches the one from the text file, the user unblocks the next tabs. The problem I experience is that the username and password I write in the strings are not read and the returned string is empty. Also, I can't figure out how to make the other tabs "blocked" for access during the login session... Any ideas? login diagram.PNGlogin window.PNG


labview 设置物理通道,有个2011年的帖子直接把字符串常量接到虚拟通道的物理通道上不可行啊

Weird behaviour with malleable and standard VIs in parallel nested for loop

$
0
0

Hello everybody,

 

I have a problem with the uploaded VI. It converts numbers to string with fixed significant figures. In the real project, it reads 720 arrays of 86 elements each one, that's the reason because the benchmarking is done like this.

 

The problem is that I want to run in parallel to run it faster, but trying to do it I have get very weird results. There are two for loops (excluding the benchmarking[10k] one, that is for average purposes): The inner one[86] that is inside the VIM, and the outer[720]. I have tried to parallelize one of them, the other, both and none of them. And I repeated the process converting the VIM into standard VI and replacing the subVI with contents. Here are the results in seconds (outter/inner; P por parallelized loop, N for standard one):

 

image.png

 

 

 

 

 

 

The VIM seems to run slower with every kind of parallelization, meanwhile with the replaced contents the non parallelizated at all version runs slow. Paradoxically, the N/P runs even more slower, but the P/N is fast, and the P/P  also runned really fast but returns a negative timming¿?¿??

 

Does this make sense for you? Download the VI and play a little bit with it if you want, and check if you have the same results. Can't understand why in the VIM version the fastest version is the N/N. Also I don't understand the P/P and N/P rows of the replaced contents column.

 

Best regards and thanks for your time,

 

 

EMCCi

 

Edit: The parallelization configuration was always set to 12, the maximum cores of my CPU (6 with hyperthreading).

Help regarding ic modelling

$
0
0

Hi all,i am new to the LabVIEW so I don't have much idea about its working. My project requires me to control a digital potentiometer 'X9C103' (datasheet) using a daq 6001.I do not know how can i make this component in LabVIEW.It would be really helpful if i could get some help regarding this topic. Please, pardon my lack of knowledge on LabVIEW.

 

thank you. 

Monitoring multiple timers

$
0
0

Hello,

 

I have a problem with room monitoring VI.I need multiple buttons with each opening a new window.The users needs to save some simple data,like number of pallets,the time it's supposed to be monitored for and let's say the type of the product.The user needs aproximately 18 buttons of these type.

 

After a button has been pressed,the new window pops up and he is able to write the time,in hours usually 24 or 48 hours,the type of the product and how many pallets there are.Now my problem comes from the fact that he needs a boolean indicator which shows him if the room the product is being placed is empty,in progress or complete.I've been able to do this with 1 room,but for multiple rooms the main VI waits for the room that was used to finish,meaning that from the main VI I can't open multiple sub VI's to use for each different room.

 

Other things I didn't get to are:

-saving the data locally to the computer for ease of access,either in a txt file or an excel file,and saving it on a remote MySQL Database

-the start button to disappear and be replaced by a visualize button,which shows what's inside the room,when it started and how much time is left.

-and the most important thing a notification when each one of the rooms is complete,through a pop-up window and if possible through an e-mail.The e-mail will be sent through Zimbra and the company's e-mail.

 

I would like some pointers on how to make it so that multiple sub VI's can run in parallel behind the main VI and monitor each sub VI.

labview 设置物理通道,有个2011年的帖子直接把字符串常量接到虚拟通道的物理通道上不可行啊

Reset counter while running VI and continue counting (LabVIEW NXG)

$
0
0

Hi, 

I want my counter to reset when I click the button and continue counting from the initial value (0) right away. Do you have any idea of how this could be done without stopping the task?

problem with leap

$
0
0
I am getting the following error while trying to run the .exe of my program using leap sensor. My VI works perfectly fine. The problem is with the .exe only. looking forward for solutions. %% Error 1172 occurred at Constructor Node Error creating instance of Controller in assembly Leap.Controller, LeapCSharp.NET3.5, Version=0.0.0.0, Culture=neutral, PublicKeyToken=6e1b1368e71eba9b, (System.TypeInitializationException: The type initializer for 'Leap.LeapPINVOKE' threw an exception. Inner Exception: System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. Inner Exception: System.DllNotFoundException: Unable to load DLL 'LeapCSharp': The specified module could not be found. (Exception from HRESULT: 0x8007007E)) Possible reason(s): LabVIEW: A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation. System.DllNotFoundException in LMH-Leap.lvlibSmiley Surprisedpen.vi->test.vi %%

How to use MPU 6050 with NI 6000 in labview

$
0
0

how to acquire data of X,Y,Z axis of   MPU  6050 accelerometer  with NI 6000  in :Labview.

When you change a value you have to press Enter to make this change

$
0
0

Hello,

 

My problem is that when I change value in control box it change automatically. I tried it with event structure but whole loop was waiting for that. But I need continual running loop for communication with generator ( if it waits for this event it will say connecion error). In attachment you can see program without event structure. What i precisely need is when you change value in "Incident power SP" you will have to press ENTER to confirm this change.

 

I hope it is understandable. Smiley Happy

Thank you in advance. 

how can i convert string data from UDP Read to Cluster of U16 U8 U16 and U16[] using unflatten from string

$
0
0

Hello all

 

I need to read incoming data using UDP and then convert read UDP_string data to Typedef Cluster of U16 U8 U16 and U16[]. i tried using Unflatten from string pallete to wire type def cluster to Type terminal and then wire UDP Read string to binary string and passing "true" constant to terminal "Data Includes Array". I am getting error 74. Not sure what could be the reason for this error. Please help me with a best way to deal with this.

labview 设置物理通道,有个2011年的帖子直接把字符串常量接到虚拟通道的物理通道上不可行啊

Selecting which analog input to plot save

$
0
0

Hello, 

 

so I have currently a DACmx setup ant this in my VI (part of a bigger setup)

 

analog in.png

this is currently taking 7 analog inputs. Using 'Mixed Signal Graph' as I will be adding some digital inputs as well.

 

What I would like to do now is to be able to select what channel(s) out of the 7 inputs is(are) plotted onto the graph and then save the selected channel(s) to file

 

Any suggestions on how to do that would be done?

 

 

 

Viewing all 66860 articles
Browse latest View live


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