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

Error 6 when using Write PNG File.vi

$
0
0

I can't understand why I'm getting this error (Generic File I/O Error). I don't believe there's anything wrong with the path I specify - but I'm clearly missing something. Running with probes shows that my image data appears to be correct, and the path looks fine to me - but I always fail with error 6.

 

Path (copied from Probe Display): "C:\Users\James.Veale\Desktop\temp\20190327 111225 \Chip 14"

Image Data: {image type =>0, image depth =>24, image => [187,197 .... and so on (the image looks fine in the Probe Display) I'm aware that this should have nothing to do with error 6.

 

I've tried using Write JPEG File.vi instead, and get Error 1, which more specifically suggests that my path is bad. Furthermore, obviously no issues if I leave the path unwired and choose from the dialog.

 

Any help understanding what's wrong with my path would be greatly appreciated.


Error of external clock for CLIP (with sbRIO 9651)

$
0
0

Hello everyone,

 

I´m using a FPGA Target (sbRIO 9651) to control a ADC (LTC2174) for data acquisition. Now I want to make a test, and see if there are Problems that the output data of the ADC are displayed in Labview.

The data clock port DCO of the ADC is connected to the port DIO_63 of FPGA. I used 2 SCTL in Labview VI, one for data writing, and another for data reading. The clock source of SCTL for writing is DCO that was generated by sbRIO CLIP Generator. The clock source of SCTL for reading is Labview internal clock 40MHz.

 

But when I compile this VI, there is a error (see picture). The problem seems to be on the external clock source.

I have attached below the error, clock setting and VI picture/file. Any help will be appreciated.

 

error.PNG

 

clock_setting.PNG

 

vi.PNG

 

 

saving data from graph to file

$
0
0

Hi all,

 

i need litle help regarding saving signal from graph to file.  

I manage to do something, but i get several columns in my txt file.

I would like to have one with time, and one with values, but i can't do it.

Please check att.

 

Thank you for your help

What will cause IO Module IO Enabled to not come up

$
0
0

I have been experimenting with the example program  for "NI 6583 Continuous Generation - Internal Clock".  The "IO Module IO Enabled" signal is never coming up, and so the code is stuck at the beginning sequence block.  "IO Module\DCM Locked" comes up, so the CLIP clocking resource is locked

I am using a PXIe-7961R and an NI-6583.  I've moved the IO module CLIP to the project directory to play with it, and tried to recover things back to normal, but unfortunately also modified the example program as installed in the original location.  Everything builds fine.  Running another untouched example program using Connector CLIP for the NI 6583 works fine, so my hardware is connected correctly.  The IO Module Properties general tab shows the correct path

I know I can re-install off distribution media to get back to normal, but want to understand what I did wrong.  What are the things that are necessary for the "IO Module IO enabled" pin to come up, assuming that the hardware is physically connected and the code builds?


feedback node

$
0
0

Hello Guys,

I need a help with the feedback node, I have a feedback node inside a case structure and the case selector is a button. So basically I use this for a instrument control, for example if I want to move the machine in x-axis, I press the case selector button and the machine moves.

 

The problem here is, I have two case structures for front and back movement of the X-axis, so one button on each case selector.

 

For this, I use a feedback node but the problem here is for the intializer of the x forward movement feedback, I use the last value of the x reverse, likewise for the initilaizer of the x reverse, I use the last value of the x forward. But I cant do this continuously as we know that the initialiser of the feedback works only for the first time and the next time it doesn't gets updated until I stop while loop and the start again for the initialser to work.

 

So is there anway to get around this, is it possible to reintialze the feedback node within the case structure, I checked some similar questions regarding this but couln't find a proper solution.

 

Anyhelp would greatly aprreciated.

 

Thanks in advance

Titling Excel Columns in Write to Measurement

$
0
0

I am new to LabVIEW so please bear with me. 

 

I am trying to name the columns in the excel spreadsheet that is generated when running our VI. It is essentially some thermocouples, a torque transducer, a flow meter, a pressure sensor, and an efficiency calculation that is all part of a syngas fueled engine test stand. I have read things about using the dynamic attributes but the names do not seem to stick, even when I name the different channels when the dynamic attributes express VI is unwired.

 

Any help or suggestions are greatly appreciated.

Is it possible to vertical center alignment for any string or combo box

$
0
0

Hi,

 

Is it possible to align text in string / combo box vertically which is easily possible in other languages.

Font style Selects the horizontal text justification (Left, Center, Right).

Is there any way to justify vertically center ?

Modified Waveform Scalar Multiple Limit Comparison VI

$
0
0

Hello,

 

I am fairly new to LabVIEW and need to create a module to be used when testing equipment.

I need to read data from a .txt file and then compare each data point to a limit. If the data point is greater than the limit, I need it to be flagged as a failure. Each data point needs to be compared to a different limit, they are not all being compared to the same limit. Once the module finishes comparing the data, I need it to generate an additional .txt file with the failure reports.

 

I know there are several ways to achieve this, but what structures does the community suggest I use for the simplest VI?

 

Thank you,

Rachel


1D array elements unique element

$
0
0

Hello everyone,

 

I have an 1D array containing a lot of elements. It looks like that [Mesure1,Mesure1,Mesure1,Mesure1,Mesure2,Mesure2,Mesure2,Mesure3,Mesure3...]. I just want to create an array which looks like that [Mesure1,Mesure2,Mesure3], I don't want two same elements in my array because they will be the names of the groups of the tree I am creating.

 

Would you find an elegant way to do it?

 

Thank you !

Avoiding PC buffer overflow error - 200279

$
0
0

Hi,

I need to avoid pc buffer overflow error in my code. When reading the following article, it is suggested that the read rate (DAQmx Read) and sample rate (DAQmx Timing) should be same to avoid this error.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KTeSAM&l=de-DE

 

But going through the following article on DAQmx Timing and Sample Rates, it is recommended that the number of samples be 1/10th the rate specified on the DAQmx Timing function (under Part 2 section). It would be nice if someone can explain the difference. 

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7KdSAK&l=de-DE

 

Thanks.

Deepak

 

 

Converting a String to a decimal Value

$
0
0

Hi guys,

 

I'm getting an input of data into labVIEW via serial communication (VISA VI), the data coming into labVIEW is in the form of a string, I'm unable to to convert this string to a decimal using the provided VI, but am having no luck. How would I go about this?

 

I'm a first year electronic engineering student working on my first year project, and require the use of serial communication to get my data from an external device into labVIEW.

- Cheers

Firewire IEEE 1394 camera not visible in NI MAX

$
0
0

Hi there,

 

I am having rather poor experience in Lab View and I am facing a problem trying to use an IEEE 1394 camera. I tried several stuff I found on NI forums, suggested for similar issues, but they did not  work for me.

 

My camera is not visible in NI MAX device and interfaces, but I can grab images using the software that the company provides. 

Equipment: Marlin F-146b, Lab View 2016, Windows 7.

 

Could anyone guide me how to resolve such issue?

 

 

Many thanks in advance.

Best,

Reading Multiple Binary Files and Outputting Multiple Tab Delimited Text Files

$
0
0

I have a vi that currently takes a binary file, and converts it to a CSV. I am trying to modify the program to allow for any amount of binary files to be uploaded and converted into individual CSVs. I was trying to use for loops to do this, but I can't quite figure it out. Attached is the original VI.
Thanks for the Help!

 

Reading Multiple Binary Files and Outputting Multiple Tab Delimited Text Files

$
0
0

I have a vi that currently takes a binary file, and converts it to a CSV. I am trying to modify the program to allow for any amount of binary files to be uploaded and converted into individual CSVs. I was trying to use for loops to do this, but I can't quite figure it out. Attached is the original VI.
Thanks for the Help!

 

Reading Multiple Binary Files and Outputting Multiple Tab Delimited Text Files


Triggering NI9263 card (Voltage Output) with NI9215 (Voltage Input) on cDAQ-9174

$
0
0

Hello all,

I am able to generate the desired signal using Analog output module NI 9263 on cDAQ 9174. I have been triggering/starting the generation using from Labview. I would now like to trigger the same externally using analog input voltage of a certain threshold. I intend to use Ni-9215 (analog input) module for triggering the analog output.

I am wondering if that can be done. Any help will be highly appreciated.

Thank you.

Pieterson

CASE STRUCTURE CONDITION

$
0
0

Hiii, i am nagendra.i am doing project on labview based phasor estimation for that i am using case structure but,

1) i could not geting exact boolean function outputs while comparing present iterative value to previous iterative value( which is obtained by shift register)

2) i would like to write 10 samples data per 1 second i.e 1 sample data per 100 milli seconds by using write measurement file(excel sheet).

@ could you please tell me how to solve these problems?

 

Simulating and outputting a variable frequency without clicking or delays

$
0
0

For a project, me and a couple of other students at my university are attempting to wire up a sliding potentiometer so that it'll output a variable voltage, and then read that in with a DAQ board in order to affect the frequency of a waveform that we're signaling. Picture the mechanism of a trombone, except it's much more complicated and sounds entirely worse, and you'll have the basic idea. 

 

The problem is that all of our varying attempts with different versions of our basic VI idea and subVIs provided by people on these forums have run into one of two problems: either there's a persistent, regular "clicking" noise (presumably from the while loop resetting), or a 2-3 second long delay every time we change the frequency. By messing with the properties of the simulated waveform, we can pick and choose from these issues, but we can't figure out how to defeat both of them simultaneously. Any help would be appreciated! Included is our first, most basic crack at trying to play and simulate a waveform, just to give an example of the kind of inexperience we have.

Create a specific number of PWM pulses to control a motor using myRIO

$
0
0

Hi,

 

I am trying to control a stepper motor and need to be able to generate a specific number of PWM pulses so i can control exactly how many steps the motor is taking. I have attached a picture of the code I am currently using. I can control the speed of the motor with this code but not the number of steps.

 

I'm fairly sure there is an easy way to do this but I am very new to Labview and struggling a little.

 

Any help would be hugely appreciated!

 

Thanks,

 

Rory

Writing a 2D String Array to TDMS files

$
0
0

Hi everyone!

 

I writing data to a TDMS file. Currently, I am passing a 1D string array into the TDMS Write function as my channel names.The problem I am having is writing a 2D string array of channels names and units into the TDMS file.I want to have channel names and the units correlated with each channel, because I am using Winplot it is must easier to to post process data with the units below the channel names. 

 

Does anyone know how to do this? 

 

Thank you for the help!

 

This is what is currently looks like when opening the TDMS File in Excel

Excel 1.PNG

This is what I want the data to look like when I open the TDMS File in Excel

Excel 2.PNG

Capture.PNG

Capture 2.PNG

 

Viewing all 69326 articles
Browse latest View live


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