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

LabVIEW 2017 Report Generation Toolkit for Microsoft Office

$
0
0

Hey guys,

 

So just a quick question about the Report Generation toolkit for Microsoft office...

 

When I look in the software third party store on this site, I find the "LabVIEW Report Generation ToolKit for Microsoft Office" and under it says compatible with 2012 and 2013 LabVIEW... I'm currently running labview 2017 and wanted to know if this toolkit is also compatible with my labview....

 

In My LabVIEW licensing Wizard.... I have 2 days of evaluation left... Will it give me the option to buy it directly there?

 

The reason I ask is when I search 2017 Report Generation Toolkit for MS office, nothing shows up and I don't want to drop $500 and have it not work.

 

I know its a dumb question, but I need to be certain its the same toolkit I need... (I use a lot of exporting to excel)

 

 


FPGA synthesis: "Error generated from encrypted envelope"

$
0
0

I am new to LabVIEW. I tried to add a very simple VHDL code into a PXIe-5764 (chassis PXIe-1062Q, PXIe-8840). I tried to follow the tutorial present in the online help (CLIP Tutorial: Adding Component-Level IP to...). Then I want to run my project, but the compilation by Vivado fails with

ERROR: [Synth 8-5809] Error generated from encrypted envelope. [C:/NIFPGA/jobs/Tf9tGWE_wwJ8U9O/DemoClipMult.vhd:46]

Attached is the complete Xilinx log.

Thank you

 

PS Labview 2019 (64-bit) 19.0

How to implement a direct communication between LabVIEW and a the LAB310 Phantom Camera

$
0
0

Good Afternoon.

My name is Rômulo and currently I'm working in a project that requires the usage of a LAB310 Phantom Camera.

I'm having some difficulties concerning the code implementation of the direct communication between the camera itself and the Labview software. 

We have different goals: We want to create a trigger between the start of the recording and the openning of a solenoid valve present in the experiment apparatus, as well as saving the recorded video, among others.

Any kind of help will be well received.

Many thanks in advance.

Filtering Touch Screen Data

$
0
0

Good afternoon,

 

I'm working on a personal project to make a Stewart Platform with a touch screen for tracking a ball position. Its also worth prefacing this with I'm a mechanical engineer at heart, with not much electrical background at all. I'm working hard to brush up my electronics skills (which frankly this project is also about!).

 

I've got the platform movement etc all sorted, and am now working on the touch screen IO. I'm using a 5 wire touch screen, and am reading back position, however, I'm getting a 'bouncing' issue when the ball moves across the screen (blue = x, red = y, results are un-calibrated, and are based on scale of max voltage to min voltage, which accounts for any voltage reductions as the servos hit my power supply current limit):

 

Image 1.png

 

If I press on the ball, then any of the bouncing goes away, if I use a lighter ball, the problem gets worse (I don't have a heavier ball, or else that would be a super obvious solution!). The ball position will be used in the control loop to move the ball, so these abrupt changes will results in some big output errors from the controller.

 

Things I've tried so far (all failures / lessons):

 

  • Basic filtering (although might have made a hash of it!)
  • Moving averages (total failure, as the number of incorrect samples are so high)
  • Some logic using a super basic differentiation (x(t)-x(t-1)) to tell when a fast change occurs, and use a threshold to latch the last 'valid' value. Half worked, but either my threshold was to high, and it didn't pick up all changes, or to low, and it would latch when it shouldn't.
  • I've looked at rate limiting, but that the selected limits either give an incorrect reading when the ball is moving fast, or I I still get incorrect readings
  • Annotation 2019-08-22 155622.png

     

I've done some googling about 5 wire touch screen signal bouncing, but don't get much success. 

 

Ultimately, my goal is going to be something like this:

 

Annotation 2019-08-22 155824.png

 

 

 

Note: I've attached the experimental data (logging freq = 1kHz), and can provide the FPGA code if useful, but here are some screenshots of the relevant bits:

Annotation 2019-08-22 160146.png

Annotation 2019-08-22 160208.pngSubVI

 

 

#

 

So, anyone had any experience with this sort of problem, and how they went about solving it? I'm at a bit of a loss at this point!

 

Thanks,
Peter 

How to save the data from 1D array to file(.txt or .xlsx)

$
0
0

Hi everyone!

 

I'm a LabVIEW novice so I often get into trouble with some problems. I'm now developing a system to read and write data simultaneously. My current issue is that I want to save the data acquired from the DAQmx read to files in .txt or .xlsx. Either is fine. However I can't figure out how to organize the VI and set essential parameters. Any feedback would be great. Thanks!

 

Attached is the overall pic and the code.

 

A12A34C034B6FC353E6A62FDB7ECC652.png

Sample Clock and Digital Waveform (1Channel NSamples)

$
0
0

I need to sampling digital input using NI USB-6001 device. I have never do sample digital inputs before, but did it many times for analog inputs, so I just copy sampling part from another project with analog inputs and make some adjustments, see screenshot below. Now I have a problem with Sample Clock, it gives me error -200077. Bypassing Sample Clock is working, but it is not what I need, I need to specify rate. Where is my mistake and how to do it properly?

Labview-sampleClockProblem.PNG

Microsoft docs claim this .NET class is public... Labview disagrees

$
0
0

I want to use (or at least try using) the ClientWebsocket .NET class (System.Net.Websockets.Client). The documentation says the class is public, but Labview seems to claim otherwise. What gives?

 

P.S. - I'm aware of the websocket package available via VIPM. I've found it, er... wanting. If someone knows another (free) solution, I'd be interested to hear about it.

 

Thanks,

Nick

 

Capture.PNG

Control a Linear actuator (LD20 with pot) with PI controller

$
0
0

Hi,

So I have this linear actuator ( attached file) that I want to control with a myRIO-1900 board. Basically, this is what I want to do: I want to move a load to a desired position and hold it there. 

I've been able to change the direction and the actuator runs until it reaches the end of stroke in either direction. I've also set a duty cycle manually to control the speed of the motor.

What would be the best course of action to control move the load to a desired position?

kind regards,

Patricia


Write averaged data to measurement file

$
0
0

I'm going crazy over here... I've been trying to figure out how to save to an excel (or text) file data from two DAQ tasks that use DAQ Assistant. They both read 100 data points at 1000 Hz, and they're in a loop that executes every 200 ms. What I would like is two columns of data, with each row containing the mean of the 100 data points collected on each iteration. I've tried various combinations of Write to Measurement File and Write Delimited Spreadsheet with converting back and forth between arrays and signals, and I get either one pair of data points after ten or so seconds of data collection, or a single column of data.

 

The attached VI gives the latter of the two results - I assume the mean values from each task written sequentially in the same column... I would transpose the array before writing but there doesn't seem to be a way to transpose a 1D array...

 

Previously, when I was using "Write Delimited Spreadsheet", I was getting only one or two rows of data no matter how long I let the application run. The only way I could get more than one row of data was if I put a stop sign on the "Write Delimited Spreadsheet" vi, presumably because that gave it time to do the actual open/write/close operation.

 

I was able to get lots of data if I didn't take the mean, but I don't need all that data - I just want to record the mean value over the 100 data points that are collected every 200 ms. At this point, I won't have any hair left by the time I figure it out...

Error -1074388560 occurred at NI-CAN Configure CAN Object when using NI USB-8502

$
0
0

Hello,

 

I'm upgrading existing LabVIEW 2008 application to LabVIEW 2018 and using a new NI USB-8502. 

 

Original code was written to use NI-CAN and I would like to keep using NI-CAN instead of re-writing the code to use NI-XNET.

 

I've installed NI-XNET Compatibility Library for NI-CAN.

 

When the ncConfigCANObj.vi is called, I get the error :

 

Error -1074388560 occurred at NI-CAN Configure
CAN Object
(ncConfigCANObj.vi)

Possible reason(s):

NI-CAN: (Hex 0xBFF621B0) The feature specified has a design under NI-CAN which cannot be made compatible with NI-XNET CAN hardware.

 

 

I've attached the code (LV 2018) and the screenshot of the block diagram. Do you know what could be the issue here?

 

Thanks in advance.

labview instrument interface

$
0
0

I developed labview code that accesses a LABJACK USB I/O resource. I then copied the VI's to another computer via network. The VI that references the LABJACK now runs very very slow,and the STOP button in a while loop does not function well either. Im pretty sure there is a driver issue, and I am struggling to resolve this issue. I have a VI that uses a sequence construct. In the first frame I have a LabJack vi that sends a logic state. In the second frame there is a Labjack vi that reads a logic state. I intend for the vi to run till the stop button is clicked.

How to use time loop to output 2D array in DAQmx write

$
0
0

Hi everyone! I'm trying to use the time loop structure to control the output frequency. The data type is 2D array. I've made a 1D array which can be controlled by the time loop structure but things just don't work out the same way. Attached is my code. I was planning to only put the DAQmx write into the time loop but I failed. Any help and feedback can be useful and I really appreciate. Thanks!

Installing error

$
0
0

Hi,

 

I keep getting a -125090 error when installing LabVIEW. I looked at https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Z6zSAE&l=en-US and tried the solution but I got the error again when installing again. I was using my computer's admin acct both times I attempted to install Lab View. The first time, got the User account run as administrator prompt and accepted it. The second time, per the instructions of the link above, I right clicked > Run as Administrator. 

 

How should I proceed?

reading data out of while loop

$
0
0

I'm running a while loop and using the DAQmx functions to read cDAQ analog inputs.  I'm attempting to create subVIs to organize the code.  The while loop runs continuously until i stop the program manually.  In cdaq-io-config.vi the array called analog-data inside the while loop gets executed, but passing this data to the main-program.vi doesn't get executed.  What's the proper way to handle this?  I will likely need to setup another couple of tasks as well as some TDMS file functions.  I don't expect those would need to live inside the while loop.  Do i create a queue so i can work asynchronously?  I read something that said i can create local variables (outside of the loop?) to do this as well but haven't had any luck with that.

cdaq-io-config.png

Thanks!

fast analog input on cDAQ

$
0
0

I'm trying to dive just a little deeper into DAQmx than I've swum before.  My goal is simple - to suck an analog input out of a NI 9215 card and pop it into an FGV just as fast as I can.  I probably went too cheap on this little board, it doesn't have many bells & whistles for triggering, but it is rated at 100k samples/second.  I'm using Windows 10 & LabVIEW 2019, NI-DAQ 19, and *SIMULATED* cards until I get my real hardware in.  I've been fiddling with the sample mode, source, # of samples, etc. etc. but I just can't seem to find the key to the puzzle.  I just use the 'Loop Count' for estimating speed of the loop.  I get all sorts of bizarre looking results, unless I try the 'wrong' combination and get the outrunning-the-buffer errors.  Can anybody explain to me what I'm doing wrong? Much thanks! paul


Help>Help for this VI

$
0
0

hi , 

i want to  open  my Help file (.chm) in LabVIEW using the item Help for this VI under Help menu .

this my program but it dosen't work . 

Best Regard.

 

help .PNG

TDMS 파일을 Excel에서 오픈할수 있게 하는 플러그인

error when writing to "long sting" field in database

$
0
0

 

Dear community,

I am using LabVIEW Database and Connectivity Toolkit to write a large string into an access field of the type long string. See attached vi. Once I write more than 256B I get the error "invalid precision value". Is this related to using the DCT? Will I need to find a solution using Database connections via ActiveX?

Thanks for any ideas.

create hyperlink

$
0
0

Hi , 

i want to create hyperlink like the one in LabVIEW home page .(see below) .(same design)

Untitled.png

problem when coding labview for arduino

$
0
0

hi, i am jenni, i am an engineering student and now start to learn labview.

i wanna program my arduino using labview. i have installed ni visa, linx, and vism. and i have tried the example of linx that is led blink and it's work. but when i try to code in block diagram, i drop init, when i want to create the control/constant/indicator not detected, so i cant click it.

maybe someone can help me with this

i am using labview 2012 and intalled ni visa 15.5

Viewing all 67038 articles
Browse latest View live


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