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

Element insertion in Arrays without data dependency using mouse clicks?

$
0
0

This is an old problem and I'm ..stuck.

A control is displaying an empty array of clusters.

I can detect when there's a left-click on an array element; LabVIEW "creates" elements up to and including the one clicked on and trips an array-changed event.  Please find attached an admittedly-poor example of my trying to initialize the float to 1.0 .

 

Things go haywire when changing an element with 1.0 to something else then attempting an insert.

 

The only way I can think of finding an insertion is by running a second loop and try to find the point after the insertion, where OldVal[I] == NewVal[j]. 

 

LabVIEW, somewhere inside, must know what elements it created and where it created them... but in my spelunking, I haven't found something that returns an array of indexes of new elements.

 

Does this exist?

 

Thanks.

 


U8 Data compression/decompression

$
0
0

Hello community :-),


I am struggling with the following issue:

I have a file which contains of a mix of ASCII and binary data.
I extracted the binary data successfully.
However, I noticed that my colleague had compressed the binary data. He mentioned that he had used a Windows ZIP algorithm (in C language).
I am going to implement a specific read out for these files in LabVIEW and I need some hint to overcome the compression.
In LabVIEW there are just VIs available to open, add and create ZIP files. But my file is a self made format file type.
Has any of you some ideas how I can (un)compress these U8 data but not the whole file?

Thanks in advance


Regards
D-Kid

Error -50103 occurred at DAQmx Start Task

$
0
0

Hello,

 

I am running this program with a NI 9472 DO 24V module as a counter for the fan I am controlling using PWM and the relay.  A possible solution I think would be to combine these two loops and create multiple tasks for a single channel.  I believe the error is the result of trying to run two separate tasks on this certain module, but I'm unsure.  I am measuring resistance and temperature on a NI 9219 AI module and that is running fine (part of program not pictured).

 

My problem is that I learned Labview this last summer during my internship, and am back for a week during winter break.  I am quite rusty and troubleshooting is rather troublesome, no pun intended.  

 

Does anyone have ideas/workarounds for this error?  During the summer I messed around with reserving and unreserving tasks, which seemed to partially fix the issue.  After changes and simplification, this error has returned.  

Provider for UDL file not found

$
0
0

Hi , 

 

I recently started having this issue, it was working until yesterday morning  but when they rebooted the computer , all of a sudden now the UDL file does not have a provider linked to it ,I am not even getting the option that I want to choose which is Microsoft 12.0 access database engine for OLE DB Provider . I have a 64 bit OS running 32 bit labview and 32 bit office . 

 

I tried uninstalling and reinstalling the office suite again , creating a new UDL file , downloading the microsoft access database engine but nothing is helping. 

 

The computer has not gone thru any updates but something has changed and now I can not run my program.

 

please suggest !

Stacked waveform chart using waveform data type

$
0
0

Hi All,

 

Does anyone know if you can plot multiple waveforms (for the sake of argument let's say 2) on the same waveform chart and stack the plots?

The only information in the documentation I can find about plotting multiple waveform data type signals on a single chart says to build both waveforms into a 1D array and plot that on the chart. When I try that I get 2 overlayed plots, regardless of if I select overlay or stack plots.

 

 

The reason I'd like to do this is to display a stacked chart with a meaningful timestamp. I can get my signals to display on a stacked chart by bundling the signals, but then the x-axis displays the sample count rather than the time. I can set it to look like it's displaying time, but it actually just converts the sample count into a timestamp, so every 60 samples it thinks it a minute.

I figured waveforms would mitigate that problem since they have time data built in, but it doesn't seem to work.

 

I've attached a VI that demonstrates my problem and some screen caps to show what I'm looking at on my end.

 

Thanks in advance

Receiving Analog signal using PXI 6143

$
0
0

Dear Sir,

 

I am new to PXI 6143 card. I am trying to receive the analog signal continuously. But the analog signal I receive is incrementing  and reach +5 V and stays at +5V. Same way when I connect the analog signal to -ai0 port first DAQ assist shows the value around -2.6v then starts decrementing and reach upto -5v and stay there. 

Please help me in this regard. How can I get the accurate value 

 

With Regards

VIKAS

Playback file reproduction on cRIO

$
0
0

Hi all,

 

I'm looking for some example on how can reproduce a file (with two columns : time stamp and value) on cRIO.

The idea is reproduce the data recordered from the filed in the lab.

 

Someone can help me?

 

Thanks

 

Random Number not updating

$
0
0

Hello,

This is probably a dumb question, but I sincerely don't know how to fix this. I am still learning LabVIEW.

 

I have a simple code where I want the random number to be changing in each run of the while loop, and be an input into another VI were the numbers are displayed on a graph. But it is not working. After the first random value is generated, nothing else is generated. I have tried everything I know. 

Please help me.

 

Thank you very much.


Accessing the Citadel Web Service (DSC Module) from Cross Domain

$
0
0

I´m accesing the Citadel webservice and is working well, but only from the same machine. I need to access it from another domain, where is hosted a web application, but modern browsers have a "Cross Origin Resource Sharing" mechanism that blocks request from diferent origin.

 

corserror.jpg

 

 

 

This problem is solved configuring the "Access-Control-Allow-Origin" header on the server. If I were building a labview webservice application, I could solve this issue with the "SetHttpHeader.vi"

 

sethttpheadervi.jpg

 

 

 

 

 

As I understand, the Citadel webservice is hosted in the System web server, which can be accesed and configured from localhost:3580

systemwebserver.jpg

 

 

 

 

 

 

 

 

 

But, this app lacks a way for configuring headers, or at least I haven't found where could be.

So is there a way to do this? or am I wrong thinking the "Citadel Web service" is the same "system web service"?

XYZ Surface plot on the go?

$
0
0

Hello Labview experts.

Is there anyone that can help me with plotting an XYZ surface plot on the go?  What i mean by on the go is that I'm scanning two directions (X, Y) on a surface, and for each (X,Y) pair I'm measuring one Z value.  X and Y are pre-determined two 1D arrays, but the Z values are not an array, they are single values one by one at each iteration in a for loop.  Yes, when the the loop is done the Z values will be an array and the XYZ plot will look like the attached picture below, but i want a Surface plot that updates every-time a Z value is acquired.  Your help will be very much appreciated.

Error -1073807343 occurred at Visa open in Stanford Research 830

$
0
0

Hello,

I am running Labview 8.6 and am having some difficulties. When I attempt to run my program, it asks me to Choose file to write. I have attached a screen shot. I tried to write to a csv file.

Then I get an error that says:

Error-1073807195 occured at VISA Open in Stanford Research 830.lvlib:Initialize.vi->log_all_LI.vi

Possible reason(s):

Visa: (Hex 0xBFFF00A5) The interface type is valid, but the specified interface number is not configured.

Help please!

 

Linked Table Scrolling

$
0
0

Hello,

 

Is there a way to "link" two tables in LabVIEW together so that scrolling one will cause the other to scroll by the same amount?  I have two tables: one with the testing profile and one with the results, side-by-side and would like the results table to follow the profile table when scrolled.

image.png

 I would prefer to keep them as separate tables.

 

Thank You!

 

 

OPC Server 2016 - AB ControlLogix Unable to read tag CIP Error=0x0F

$
0
0

This is yet another my attempt to try NI OPC Server opposite to opensource has faced out with the impossibility to read anything from AB ControlLogix PLC. Any attempts to read tags from ControlLogix are faced out with server messages like this "Date Time Level Source Event
12/18/2018 2:04:16 PM Warning Allen-Bradley ControlLogix Ethernet Unable to read tag 'OUTOFSCOPE_TEMP2' on device 'FlowMetersGroup1.F2'. [CIP Error=0x0F, Ext. Error=0x0000]."

As I've found such error can be produced only when I'm trying to write read-only tag. But I'm reading ones! Sometimes, maybe once per 100 attempts, occasionally some data are read. I'm wondering such behavior. I've tried to look for a more fresh version, but nothing found. Only some OPC Toolkit that doesn't contain server part. All other OPC UA servers what I'm trying are successfully read such tags, but I'd like to use one server instead of vendor-specific product for each one PLC types.

 

Please let me the clear answer - is anybody using this product in real life? Each of my attempts to migrate to the professional product is unsuccessful. Smiley Sad

Momentary On-Off-On Front Panel Toggle

$
0
0

Has anyone created an FP On-Off-On momentary toggle switch (preferably horizontal)?   I am testing a piece of equipment and need to indicate this action on the FP. 

write to measurement file at every n iterations

$
0
0

Hello,

 

Problem:

I am trying to export Labview data as an LVM file which is going fairly smoothly.  However, my while loop runs extremely quickly, about 100 Hz.  That is causing my data in the excel files difficult to collect and present due to the rapid collection rate.  

However, this rate is nice for the graphs on my front panel, showing smooth and steady visual readings.  I need to find a way to write this data to the LVM file at a slower rate, perhaps once every 1-2 seconds, while still maintaining the frequency of the Labview data collection.  

I apologize for poor wording, I am very new to Labview as I am an intern.

 

Ideas:

Should I put a certain timing restriction on my loop?  I tried setting the 'wait until next' to 1000, which sort of worked, but for some reason I wasn't getting any temperature measurements from the thermocouple.  

Maybe there are advanced ways of tweaking the write to measurement file to set it to every nth iteration?  Maybe every 100th?

 

I'm quite lost here, as there may be a multitude of problems or poor structuring in my VI. Here are some pictures for reference.

 

Anyway, thanks for reading!

 

 

 


LabVIEW crashes while developing code

$
0
0

My co-worker and I have having an issue where LabVIEW just crashes for no reason about every 20 to 30 minutes.  Any suggestions on what may be going on would be helpful.

Open and Scan PDF file and capture screen shot

$
0
0

Hi guys,

   I looked around the forums all I found is some example on how to load a pdf file for viewing. I would like to open a file with multiple pages. Each page will have a keyword that I would like to scan for. If there's a match, I want to capture a screen shot of that page and paste in a powerpoint slide. I would like to use activex for that. I can do the copy and paste to ppt part. my problem is finding a way using activex to open the pdf and scan for the key word and capture the page. Please help....

Get time from 1D Waveform and log it into TDMS

$
0
0

Hey everybody. 

I am pretty new to LabVIEW, but I am currently building a program which should be able to log data from in all 15 voltage channels. The channels are accelerometers, thoug it is not important for the problem. 
My problem is I want to log data and later I will have to add more data from a GPS, why I use TDMS. 
I can manage to log all data with TDMS, but I lack a time colum (or time channel) in my TDMS. 
I have tried the get waveform components and the build waveform array to get time from the waveform. 
But the problem is, that my signal is a 1D waveform, and it must be a waveform DBL ? 
My sampling needs to be continous. 
Please, can someone help me with loggin the time as well? 
Thank you. 
Regards, Marck. 

what is right way to store pointer of Class-Object in Labview array?

$
0
0

Hi,

 

I am trying to implement class like below in Labview.
Capture.PNG

 

Is it right way to create array of object-pointer, resize array while run time, fill up array with object-pointer, and delete all object-pointer from array in Labview? 

 

Capture.PNG

 

Fill up Channel Class object pointer in Array. (In other word Create Constructor)
Capture.PNG

 

object pointer delete from Array. (In other word Create destructor)Capture.PNG

 

 

 

Property Node for graph scale at Tab Control read.

$
0
0

Hello!

I try to read out the my Zscale from the graph which work with autoscale. That graph locate at one of pages of TabControl.

If graph page do not open to show, the property node return last shown value.

So if I locate at graph page, everything work fine, but if go to other. The Zscale stop change.

Simple example attached.

How to solve that issue?

Thanks!

 

Viewing all 69606 articles
Browse latest View live


Latest Images

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