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

TDMS file: problem reading the first column

$
0
0

Dear all,

I have a problem reading all the channels in some tdms files. I tryed to find a solution in the forum but I didn't find any. 

In particular, if I try to read all the channels including the first (column 0), I get error -2532.

Same error appears if I try to read only the first channel indicating the channel name in the input.

If I use the function read without any input to channels_names o with an array containing all the channels except the first column, the vi works and give as result the channel starting from the second one (channel 1).

How can I get the values of the first channel?

 

 


Data acquisition from a web portal.

$
0
0

Hello,

I'm planning to acquire data from a web portal to LabView to create a some mathematical calculations and produce some graph. I don't know which function to be used to acquire data. The portal is password protected. Can anyone help me out.

 

Kind Regards

Amal  

Getting freshly edited value of Numeric control

$
0
0

I and my clients are dealing with an awkwardness which has been present in LabVIEW for years. The user types into a numeric field. Then the user, quite naturally, clicks a button. It seems that in LabVIEW's view the data entry into the text field has not been "finished" and my program sees the PREVIOUS value of the field. This can be dealt with if the user:
1. Presses Tab or Enter to complete data entry in the text field
2. Clicks the button a second time.

 

Both of these are quite nonintuitive and my users are getting tripped up.

 

I played around with this and discovered that for a STRING control you can pick the menu item, "Update value while typing" and then it does what I want. But for a NUMERIC control I find no such option.

 

What's the right way to deal with this? Is there a way that I can get the current, freshly edited contents of a numeric field immediately? Or do I have to turn all my numeric controls into string controls with type conversion, to keep my users happy?

 

ni-visa on ubuntu 18.04 (64 bit)

$
0
0

Dear all,

 

I've installed labview on ubuntu 64bits successfully but I'm facing on a problem relative to the visa driver.

 

Basically I need the serial connection to use VIs in general but the VISA drivers are not working.

 

I've installed packages from the repository here but when the visaconf tool crash as soon as I open it.

 

On the NI official  website there's no support on this.

 

Anyone has a suggestion?

 

Thanks in advance

Regarding analog voltage signal acquisition using NI PXI 7851R and SCB 68A breakout box

$
0
0

Hi Guys, 

I am using NI PXIe 1062Q chassis and PXI 7851R card with breakout box SCB-68A.

 

I want to feed in time-varying analog voltage and want to measure it using the above-mentioned components.

In PXI 7851 R manual, it is given that the analog voltage range can be within +/- 10 volts, but not understanding what is the current range.  

looking for your kind help.

GPIB communication problem

$
0
0

hello,

 

I'm new to LabVIEW and I wanted to find some information on a instrumentation communication problem.

 

I'm using LabVIEW 2015 ( 64 bit) and there is a example GPIB vi from NI example finder (Simple GPIB.vi)

(also  installed NI MAX ver 19.0.0f0 & NI488.2  ver 19.0).

The instrument I'm trying to communicate with is an old HP 4142B from the late 1980s.

I seem to be able to communicate with it if I use the NI488.2 interactive programs outside of LabVIEW.

Within the Simple GPIB.vi I am able to write to the instrument but I cannot read, and I reach the timeout.

One of the notes in the VI states that in some instrumentation it may be necessary to place  GPIB initialization in the LabVIEW code.

So my question is that someone have an example which adds GPIB initialization to the VI?

or does somebody know of a reason why I might be just having trouble in general?

thank you

Chris

Detecting 3 consecutive bytes in an array

$
0
0

Hi all.

 

I have data packets of 1024 bytes coming in via the serial port. About 200 bytes (variable) is real data and the rest is padded with FF.  I need to detect the end of the real data. The value FF appears in the real data and even 2 consecutive FFs occasionally but I think it's safe to say it never appears 3 times in a row.

Any ideas as to how I can detect the end of the data?

Thanks.

Here's a typical packet

 

2847 0044 00B8 5601 0000 00F0 0300 0000 00EA 5401 00B8 5601 0000 0004 02FF FF64 00ED 5401 00FF FF64 0001 5501 00FF FF64 0015 5501 00FF FF64 0029 5501 00FF FF64 153D 5501 00FF FF64 0051 5501 00FF FF63 0065 5501 00FF FF63 0079 550100FF FF63 008D 5501 00FF FF63 00A1 5501 00FF FF63 00B5 5501 00FF FF64 00C9 5501 00FF FF64 00DD 5501 00FF FF64 00F1 5501 00FF FF64 0005 5601 00FF FF63 0019 5601 00FF FF63 002D 5601 00FF FF63 0041 5601 00FF FF64 0055 5601 00FF FF64 0069 5601 00FF FF64 007D 5601 00FF FF64 0091 5601 00FF FF64 00A5 5601 00FF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FF93 3693 7E

 

 

 

LabView调用Dll

$
0
0

LabView Calls Dll file. I set the type but wrong code was 1097

图.jpgI do not know how to set the Type in LabView'


Can someone please just tell me the steps to take to build a VI that output data collected from a sensor on a table created on the front panel?

$
0
0

I want to read temperature from 5 different thermocouples using a cDaq and have a table on the front panel like the one shown below

Table.PNG

I know I need a table or listbox for sure or an array, but my main problem is importing data into the table. How do I do that? Any idea?

P.S.: If anybody has similar VI that he/she previously, please show it to me so I can have an idea or you can refer me to something similar.

Thank you, guys.

Note: I'm a new learner. 

displaying recording data in real time

$
0
0

I have a problem displaying recording data in real time. Data comes from an external device and are displayed in real-time in an indicator on front panel but I cannot view them on the chart. I attached my VI and a printsreen of its panel too. Can you help me please? Thank you in advance.

Problema de sincronización frecuencia labVIEW con servomotoR

$
0
0
Moved to Spanish board Under Regional Communities

Two different tasks in one application file

$
0
0

I would like to do 2 tasks in one application.

 

1-  when RUN button is pressed 

  • and then say  a TEST  button is pressed execute first part of code or sequence structure (once in whole test , kind of finding zero at the start only) , after finish go to second part of seq struct where 6 different serial writes or modes are present 
  • if TEST is not pressed --> do not go to next code or sequence structure , wait for TEST button to be pressed

but in my case first part is working if TEST button is pre-pressed before run .

it does not wait for TEST button if not pre-pressed, and executes second part simultaneously without first part

 

dthanks

Name of data in unwrapped variant input of malleable VI changes on second call

$
0
0

I'm seeing some pretty strange behavior in the course of my usual chicanery and I could use some more eyes on it if there are any here patient enough.

 

Firstly, I'm writing an XML wrapper/unwrapper.  The native LabVIEW one is fine, but I wanted to write my own that, while less robust, provides more readable XML and can tolerate changes in datatype more gracefully.  My problem is with the XML unwrapper, or rather the malleable VI that wraps it (I'll try not to overload this word too much).

 

Image 1

1.png

In image 1 (above), there are 3 VIs: the sandbox for unit testing my XML wrapper and unwrapper, the XML unwrapper malleable VI, and the XML unwrapper core VI.  I'll go through what's happening here.

 

First the sandbox: So my test data is the cluster constant named "cluster".  My XML wrapper VI takes this cluster as input and outputs the XML text seen in the string indicator named "XML".  Then the XML unwrapper malleable VI takes this XML text and the original cluster as inputs, and tries to output a cluster of the same structure with all the values populated from the XML.

 

Within the XML unwrapper malleable VI, the XML is input as a string (unsurprisingly) and the cluster is input as a variant (though this could conceivably be any datatype).  This malleable VI is mostly just a wrapper for the core VI, where all the real magic happens.  The core VI takes the same cluster (or whatever other datatype) and tries to create a binary string of that datatype using values from the XML.  The unwrapper malleable VI then unflattens that string into the input datatype and outputs it.

 

With me so far?

 

Image 1 also shows the results of executing the sandbox as so configured.  Looking at the sandbox front panel, we can see that the vale of the cluster indicator "Anything Out".  This is bad, it should be populated with the values from "XML".  There is a simple reason for this, which I will explain.

 

We can't see anything from the malleable VI, because it is reentrant, but we can see the control values of the core VI, because it isn't reentrant.  Here we see the cluster name is "Anything In", the name of the control in the wrapper VI.  However, the cluster element in the XML is named "cluster", after the original cluster.  Since there are no elements named "Anything In" in the XML, the core VI doesn't find any appropriate vales and outputs a binary string full of nulls.

 

The malleable surprise renaming the data is the first issue, but I think I had a work around for that.  I remember seeing in the openG toolkit years ago something about unwrapping variants.  In some circumstances, the datatype in a variant can be LV variant, but if you "unwrap" (this word is getting really overloaded now), the variant, the type in the variant becomes the original type.  That's not exactly what's happening here, as we can see the type in the core VI is cluster, but something's going on.

 

Image 2

2.png

Image 2 shows the workaround and the results of running the sandbox with it.  In the malleable VI, we "unwrap" the "anything in" input so the type, and hopefully the name, turns back into the original (a cluster named "cluster").  This is done by converting the variant to another variant of type "void".  I don't know how it works either.  We run it and... Huzzah! The values of the sandbox indicator "Anything Out" are populated.  They're all the same values from the XML.  The name of the cluster in the core VI control is "cluster."  The variant unwrapper worked and now the XML unrapper works!  Or does it...

 

Image 3

3.png

In image 3, I've changed the number of calls to the unwrapper malleable VI from 1 to 2.  It's the same code as before, and the same inputs as before both times, but now I'm getting different output.  We can see the "anything out" indicator is zeroed out again, and in the core VI control, we can see the name of the cluster has changed back to "Anything In."

 

So what's going on here?  Is "unwrapping" the variant not the right fix?  Why is the malleable VI renaming the data anyway?  Why does it work for a single call, but not for multiple calls.  There is something going on under the hood here and I think only a NI software engineer can answer.

 

Anyway, thanks for reading about my silly problem.  Any comments or suggestions are appreciated.

 

Edit: also I see the error wires and realize people might think an error is causing the VI to not actually execute a second time.  This is not the case.  I've inspected the output since taking the screen shot and there is no error.  I only added the error wire shift register in to eliminate parallelism.

Testing

Multi plot sampled data

$
0
0

I'm trying to plot sampled data from two analog channels on the same plot.  I'm reading in the data inside a while loop.  Then I feed the data into an auto-indexing tunnel.  When I connect the tunnel to a graph outside of the the while loop, I will get an error that the dimension of the data source (the tunnel) and the dimension of the sink (the graph) are mismatched.  If I connect the graph inside the while loop, there is no error; however, the graph doesn't accumulate the data.  I think it's just plotting the data for the current loop iteration and refreshes with each iteration.  I've attached what I have so far. Can someone help with this this?


LV'19 32 bit not downloading

$
0
0

Hi! I've been trying to download the LV'19 32 bit on my windows 10. But after successful download, it doesn't install the LV'19. It says "no operations performed". The issue with the 64 bit is that some of the toolkits don't work with the 64-bit version of LabVIEW (read in the document).

 

NI-9753 differential digital cRIO module - not generating output

$
0
0

We would like to generate differential digital signals using a NI-9753 differential digital cRIO module. We have installed the Powertrain download

http://www.ni.com/gate/gb/GB_EVALTLKTPOWERTRAINDD/US

and tried writing a very simple FPGA VI to set an output on or off. Pin 19 (BATT) and pin 18 (GND) are wired with the correct polarity to a 24 VDC source. Pin 2 (DIO0a) and pin 20 (GND) are wired to an oscilloscope.

Despite manually changing the state of Channel 1, there isn't any change to the signal output from the NI 9753 on pin 2.

What am I doing wrong?

NiAsstnt.exe hanging on "Initializing..." when starting DAQ Assistant for domain users only

$
0
0

Hello, when our users try to use LabVIEW and have authenticated via our domain they get stuck on "Initializing..." when they try to use the DAQ Assistant. If they authenticate locally they don't experience this problem. The process seems to be doing something in the background as the CPU usage of the process changes and occasionally there is a blimp in network activity from the parent process LabVIEW.exe, although this could be LabVIEW communicating to the license server. The problem is quite odd and I'm hoping to get troubleshooting advice. Thank you in advance for any help!

Why is LabVIEW Hanging When I Try to Save My VI?

$
0
0

I want to know if anyone of you, reading this question has this issue.

Any time I try to save a Vi, even the smallest in size, LabVIEW freezes that I have to use Task manager to kill the task. It is only after trying to save.  It is related to LabVIEW since I can save from other problems. It happens with LabVIEW 2013, 2016, 2017.... it used to work fine... I already uninstall the 2013 and reinstall  it  and is the same. I already uninstalled totally Norton and Run it and it is the same

Automatically delete/discard DSC Citadel Historical Database data after specific Time period

$
0
0

Dear All,

I am using Labview 2018 project using DSC and logging Shared Variables data on Historical database. I have configured the Shared variables library to log data into Historical database with life span of 11 days, but data remains in the Database even after lifespan and has populated the Hard-drive.

As per requirement, the Database should discard/delete logged data (1st day) automatically after 11 days, is there any other setting/ programming required for the case. The database is active, in use 24/7 and can’t be stopped for this operation.

 

Thanks and Regards,

Farrukh

Viewing all 66870 articles
Browse latest View live