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

.CSV to motor via Labview

$
0
0

Hello, Everyone!

 

I'm a 3D artist in the Game and film industry, so I'm finding it hard to use LabView to build a stop-motion camera rig.

 

 The VI takes a .csv file from Maya (single Axis animation data) and loads it into a graph and an Array (Please see images attached).

screenshot_1967.jpg 

 So the VI works so far. The file loads, I get the correct graph info. It's perfect!

 

Here LabView has taken the CSV file and loaded it into the graph and they match.

 

screenshot_1944.jpg

 

The stepper motor also sets up and is ready to go. All good.

 

What is missing is the connection from the string/array to the motor SetPoint input of (MA) Move Absolute.

I think I want all numbers in the string to go to that input on the motor. all I need is the string to load (is that possible?)

 

Here is the front panel and the data:

 

screenshot_1968.jpg

 

I will send: .csv file and the Vi file:

 

Maybe someone can point me in the right direction.

 

Many thanks for reading and hopefully you can help!

 

Mike


Read from a database.

$
0
0

Hello guys,

 

I'm trying to read data from a database and i don't know how. I downloaded the labSQL toolkit and i am using xampp (php my admin). I have made the ODBC connection and i have followed this tutorial. https://www.youtube.com/watch?v=fV14hA6GNWQ 

When i put together all of labsql's VI a have an error:

 

labviewProblema.png

 

The phpadmin server:

problema2.png

 

Thanks.

Script for removing comments in entire project

$
0
0

I'd like to know if there is a way to automatically remove all "free floating" comments  in a LabVIEW project and all it's SubVis, ignoring of course the VI lib. I would like it to include comments inside of structures like Case diagrams, Sequence structures etc. By "free floating" I am referring to  comments where you just click on a block diagram and just start typing. Thanks!

Log test data into single file

$
0
0

Hello, 

 

Am using report generation tool kit to log my data after the completion of test, for every time after the completion of test new excel sheet is getting created but i want all the tests data of whole month to be in single file.

Please help me

 

Best regards,

Ali

Calling extension methods from a dotNET / C# assembly (MongoDB-driver)

$
0
0

Hello everyone,

I'm currently working on utilizing the MongoDB C# / dotNET driver with LabVIEW (https://docs.mongodb.com/ecosystem/drivers/csharp/). My current version of the driver is 2.4.3.23.
After overcoming some basics (missing DDLs for dorNET Core, etc.) things are starting to take shape.

Unfortunately, due to the Async nature of the library (it seems to me that way), there are a few hoops to jump through when processing results from dotNET Invoke Node / Property Nodes...

I'm calling the "ListCollections" method (https://mongodb.github.io/mongo-csharp-driver/2.3/apidocs/html/M_MongoDB_Driver_IMongoDatabase_ListCollections.htm) with an IMongoDatabase refnum.
This works without any errors, but I have troubles handling the result.
According to the documentation it is an "IAsyncCursor<BsonDocument>", which is aimed at being able to be handled asynchronuously (if there is a tutorial out there how to implement that in LabVIEW, I'm very interested).

By looking at this tutorial (https://www.codementor.io/pmbanugo/working-with-mongodb-in-net-2-retrieving-mrlbeanm5) I figured out a way in LabVIEW, but it is one example of complicated code due to programming languages interfaces...

Post.PNG

(Thanks to Richard Carpenter from RBX Systems Ltd for the inspiration via his library)

This does not seem like a suitable idea for the long term, and I came across the extension methods for IAsyncCursors (https://mongodb.github.io/mongo-csharp-driver/2.3/apidocs/html/T_MongoDB_Driver_IAsyncCursorExtensions.htm), which offer methods such as "ToList". Casting the dotNET ref from IAsyncCursor to IAsyncCursorExtensions unfortunately didn't offer me any of those methods... (see following picture).

Post_2.png

Is there something I'm missing when using the extension methods?
I found a post from the TestStand forums from 2012 (http://forums.ni.com/t5/forums/v3_1/forumtopicpage/board-id/330/thread-id/36029/page/1) that suggest that extension methods are not available.
Is this also the case for LabVIEW?

And regarding the iteration through the IEnumerable pointed to by the cursor: Is there another, more compact or elegant way??

 

Thank you!

Niels Göran

Please convert VI from LV 7.0 to LV2012

Need help with this VI

$
0
0

Hello

Tell me plz, how to fix errors
In the LV 7.0 the program is opened normally, but in the LV 2012 have many errors

Thanks

Odd timing variation in legacy code going from NRSE to Differential

$
0
0

I have a legacy vi that is... a bit of a mess.  A dozen years and likely as many authors has not been kind to it, but it works well for what we are doing.  Some of the old hardware however has failed, so I have replaced it with something better and found an odd quirk I can't explain.

 

In the old setup, data is reported on the second (1, 2, 3, etc) but with the new setup it is now at odd intervals (0.957, 1.875, 2.794, etc).  The only change was on the DAQmx AI Voltage vi changing input terminal from NRSE to differential and selecting the appropriate channel.  The acquisition device is still the same NI9205 and the data itself is just fine.    Clock is still set to finite, 800 samples, 1000hz (NI9205 rated for 250 kS/s).  Maybe the answer is obvious from there, but I'll go into a bit more detail.

 

The 800 measurements are summed and averaged, resulting in a single data point.  The loop this is in has a 1000ms timer.  I was thinking perhaps this is the problem, acquisition is somehow slower so it is not executing on time, but no, the samples are spaced less than 1 second.

 

VI and data examples are attached, thanks in advance!


How to control speed frequency inverter cfw08?

$
0
0

Hi everyone

 


I would like to set the electric motor velocity using the labview, I have a frequency inverter cfw 08 to control motor, do you have any examples to send me?, i don't know if it is need to use Modbus.

 

Tks

How to control velocity with frequency inverter cfw08?

$
0
0

Hi everyone,

 


I would like to set the electric motor velocity using the labview, I have a frequency inverter cfw 08 to control motor, do you have any examples to send me?, i don't know if it is need to use Modbus.

 

Tks

Labview FPGA compile using NI App Builder API: Build.vi

$
0
0

Hey,

 

I'm having trouble starting compilations for FPGA targets (I have the modules installed) using the NI_App_Builder_API: Build.vi method which looks like it only needs a spec to build. Has anyone else had success with this? 

I also have tried niFpgaBuild_GenerateCode which also has an error (I can build the FPGA fine manually). Any ideas?


Thanks,

Rik

how can i save video file from USB camera in labview?

$
0
0

Hello,I have acquired the video using IMAQdx and now i'm asking how can i save this video on file,and how can i start and stop saving? thank you for answering me its urgent.

TCP server code to read out positional data

$
0
0

Hi, I am quite new to labview and am struggling at the moment with the TCP program I need to write. Hopefully someone here can help me out!

 

First, I need to write a program for the server, which is a robotic arm that needs to send positional data (time with its x,y,z coordinates and the rotations about those axes) to the client, which is a computer. I have a listener waiting for the connection, when there is a connection with the client, the positional data should be read out by the server and afterwards it should be written towards the client. However, I have no clue how the positional data can be correctly read out by the TCP functions. I have connected the TCP read to the TCP listener through 'connection ID' and 'error', but have no idea how I should correctly connect this to the positional data measurements. 

 

Thanks,

Guusje

MATRIX KEYPAD TESTING.

$
0
0

hey champions...

i appreciate ur help in advance ..

i have 3*4 matrix keypad an arduino mega 2560 , NI DAQ 6008 and labview 2012 development tool , i want to develop a program in labview through which i can test the keypad key press detection. 

is it possible?

if anybody is not understanding my point then please lt me know i would like to answer.

 
 

Connected 2 terminals of 2 different types even though they are the same?

$
0
0

Hello, 

 

I have a Hokuyo Lidar and I am trying to graph the points on a polar plot. From what I understand, the Lidar Vi outputs both the magnitude and direction as two separate 1D arrays. So the nth index of the magnitude array will correspond with the nth index of the direction array. The polar plot requires a 1D array with a cluster of 2 elements. 

 

So I bundled the two 1D arrays into a cluster, and then built the array as shown in the screenshot below. (I apologize for the messiness, I am still new to LabVIEW)

Capture.PNG

 

However as the screenshot shows, there is a broken line between the array output and the polar plot input. The error is shown below. 

Error.PNG

 

So why am I still getting an error when the types are the same? Is this even the correct way to show the lidar points? Should I be using something other than a polar plot? 

 

Thank you for your help.


ECG Simulation hardware

$
0
0

Hi, all..

I am quite confused to design a hardware which simulates ECG signal according to heart rate given. I need to use to Labview for programming and signal processing purpose. I need to show simulation signal in Hardware Display instead of using Labview Display VIs. Tell me some suggestion for clear cut idea to start.

Calling an Event after another is finished

$
0
0

Hello Community, 

 

New LabView. For the GUI of my VI, I have three radio buttons that will enable and disable two comboboxes according to the user's choice. In order to do it, I created an event that is called in my event structure when the selected value of the radio button changes (It's called "Comboboxes"). However, after the user is done with the task I will like to call my INIT event, where I initialize everything. I tried calling the event after the event that executes the task is called (which is "start") but is not working. Any help from you to solve this will be appreciated. I'm attaching a screen capture of my VI. 

Input camera as season - IMAQdx

$
0
0

Hi everyone.

 

I design a vi for acquisition my cameras, but I have a problem.

I have a integrated camera (Laptop Webcam) and a ip camera adaptor (From my phone).

Both of cameras grap properly from Labview Devices [bellow image]:

 

L1.JPG

 

 

But in my input season for "IMAQdx Open Camera" just shown my integrated camera (cam0) !! [bellow image]

Why this happen? while my cam1 work and listed in labview device and  get motion properly.

 

L2.jpg

 

Please help me,

Thank you all.

Offset structure

$
0
0

I have the following problem:

I am reading out some data of 4 force sensors with the DAQ-Assistant. Now I recognised that all of the sensors transmit data with different offset.

And that's what I want: a structure that detects the offset to zero by pushing on a button and then it should substract that one value from my signal for the whole rest of the measurement.

My problem therefore is, that collecting the data from the sensors runs in a while loop. Now when I substract zero from the data at the beginning and want to replace the zero by pushing a button, the next loop of course starts again with substracting zero, but the offset value should be substracted for the rest of the measurement. I didn't got it to realise that the loop stops, replaces the zero and then runs again with the determined offset.

 

Thank you all, yesterday you could help me so unbelievable fast.

 

Note: If someone wants so show me a working structure, please upload screenshots, or .vi for Labview 2013, its a really old pc in the laboratory I work with.

Please convert from Labview V5.1 to 2014

$
0
0

Please convert from Labview V5.1.1 to 2014

Viewing all 66757 articles
Browse latest View live


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