Quantcast
Channel: All LabVIEW posts
Viewing all 201911 articles
Browse latest View live

Re: LabVIEW: File is not a resource file. The file is not a valid LabVIEW file

$
0
0

 wrote:

 

Thanks for your help... I have the presentation tomorrow... and now I'm lost Smiley Sad

 


You overwrote the beginning of the file with formatted numeric data. the file is irreversibly lost.

 

novi.png


Labview abschaltung BK Precision 8500 Ladeschlussspannung

$
0
0

Hallo Zusammen,

 

ich bin neu hier und freue mich auf eure Mithilfe.

Ich möchte eine Batterie (Bleiakku) über das Lastengerät BK Precision 8500 entladen.

Der Ladevorgang soll bei der eingestellten Ladeschlussspannung von 10 V beendet werden.

Da jedoch das Gerät nach erreichen der 10 V grenze sehr stark schwankt, schaltet der Ladevorgang immer wieder an und wieder aus.

Habt ihr da eine Idee wie ich das Lösen kann?

Meine Lösungen waren:

-Das VI des Gerätetreibers von BK Precision "...ecision85XX\Public\Configure Battery Min Volt.vi" zu nutzen und damit den Vorgang abzubrechen.

Durch die Schwankung schaltet der Vorgang immer wieder ein.

- Dann noch den Ansatz zusätzlich das VI "...ecision85XX\Public\Actions-Status\Input Control.vi" zurück zu setzen. Funktioniert allerdings auch nicht.

Anbei das VI

 

Vielen Dank schonmal.

Re: LabVIEW: File is not a resource file. The file is not a valid LabVIEW file

$
0
0

Thank you for your answer.

Do you have idea how could it be? I have no idea how I have overwriten that or how I have corrupted the file.... It's for not doing any more

 

Thx

Re: cRIO 9074 and NI 9144 behaviour and troubleshooting

$
0
0

Hi T81,

 

I didn't link the sentences about the new project not showing errors, and having troubles deploying the modules, too. I apologize!

 

I tried searching in the thread if we had already tried switching the computer you're using to program the devices, have you given that a try? Do you get the same errors?

 

I remember you already switched the cRIO 9074 controller and that changed the behavior of the system, correct? What happens with the "working" cRIO and the new 9144?

 

Just to recap, do you know which is the element in the system that causes the error (computer/code/cRIO/slave), or we are still searching for that?

 

All the best,

Re: Transfer data between FlexRIO 7962R(NI 5781) and PXI-7853R

$
0
0

Smoot,

Thanks so much for you response to my question. In deed I can now make the two cards work and trigger the FlexRIO using the Rseries card (7853) using the PXI-Trig. But I have one problem, once the Rseries card triggers the FlexRIO card, it seems I have no control over it.

I would like to send signals from 7853R card to FlexRIO 7962 card periodically  during the entire time the code is running for data acquisition. For example when a Boolean is true in 7853R card, the signal should be sent to FlexRIO card to send data to the Host. 

I cant seem to fix this problem. Any suggestions will be highly appreciated.

 

Thanks 

Re: LabVIEW: File is not a resource file. The file is not a valid LabVIEW file

$
0
0

 wrote:

Thank you for your answer.

Do you have idea how could it be? I have no idea how I have overwriten that or how I have corrupted the file.... It's for not doing any more

 

Thx


Maybe a path was incorrectly concatenated, like the path was relative to the VI and the name of the VI was supposed to be replaced with the name of the file to write.  But it wasn't, so the VI, itself, was overwritten.  Smiley Sad

Re: synchronous and memory is full

$
0
0

I don't understand your question/problem/difficulty.  Please attach a VI (or VIs), along with a sample of the Image you are trying to send.  Is there a reason to use VISA (Serial) instead of TCP/IP?

 

Bob Schor

Re: Writing Data to Excel File without Report Generation Toolkit

$
0
0

I believe JensG69 wanted you to find the VIPM Package called CLAUDIE_xlsx, version 1.4.4.6 by ATESystem, with this version released 21 Aug 2017 and running on LabVIEW Versions 2014 and higher.  I have not looked at this package, but it appears to be free ...

 

Bob Schor


Re: programming a robot with labview fpga

$
0
0

Thank you very much  for the answer, I could finally make it move Smiley Very HappySmiley Very HappySmiley Very Happy the motors can already move and i can control the movement of the robot , now im trying to program the robot to move along a given trajectory , do you know how can i start ? 

Thank you very much !! 

Re: Cannot get latch mechanical action on boolean button inside a cluster

$
0
0

There is clearly a confusion that both the Original Poster and, perhaps, JensG69, have about Latched Booleans and Event Structures.  In addition, the Principle of Data Flow appears to have been neglected!

 

I offer the following "Teaching Example" -- I created a Cluster of three Latched-When-Released Boolean Controls that "look like" LED Indicators (this is perfectly legal in LabVIEW, and makes them stand out) and made a TypeDef out of it.  I then created two Demo VIs with a two-frame sequence (so I can "know" the order of operations).  In the first, I write the Control into an Indicator, followed by creating a Value Change Event and saving the NewVal in a second indicator.  In the second, I reverse the order, doing the Value Change first and reading the Control second.  

 

Here is the starting Front Panel, after I deliberately "turned on" the first Latch before running the two Demos (both Front Panels look the same) (by default, all the Latches are off).  Next to it is the Block Diagram of Latch Order 1.

Latch Order FP.pngLatch Order 1 BD.png

So here how the demo works -- before you run it, Control 1 is on.  There are three parts to this "quiz":

  1. When you push the Run button, what happens to Latches, Latches 1, and Latches 2?
  2. When you push and hold Latches Button #2, what happens to Latches, Latches 1, and Latches 2?
  3. When you release Latches Button #2, what happens to Latches, Latches 1, and Latches 2?

Don't fret that you will probably get this wrong -- it involves some fairly subtle points (it is possible to make it even more difficult, but let's not go there).

 

So here is the second Demo's Block Diagram -- it's Demo 1 with the order of the Frames reversed:Latch Order 2 BD.png

Same setup, same three questions.  This, I hope, you get right.

 

Final quiz -- this is the Code that JensG69 posted:

JensCode.png

Is this more like Demo 1 or Demo 2?  If you answered "Demo 1", you are wrong.  If you answered "Demo 2", you are also wrong.  If you answered "Using the Principle of Data Flow, you cannot answer the question", then you got the right answer.  And that was the point that Blokk was making.

 

Bob "Long-Winded" Schor

Re: NI USB 6009

$
0
0

Hello Mr. TRUSTED ENTHUSIAST,

Thanks for your quick reply. I usually DAQassistant for coding. As you said to use DAQmx, I tried to make code but I can't understand how can I put sensor equations/formulas in DAQmx coding system. I have attached my DAQassistant code here.

 

Would you please give some guideline or links to solve the problem.

LVM to Waveform

$
0
0

Hello,

I have seen a similar question which was posted in 2008, but I was unable to understand the solution.

I had collected some data from an experiment through LabVIEW 2014. The data  was in the form of waveform. Each waveform had 20000 samples and there are several waveforms. The data was saved in LVM format. Now I had copied the LVM files to a different computer, which has LabVIEW 2017. However I am unable to open the LVM file through LabVIEW, and it works only with excel or wordpad.

I want to reconstruct the waveform from the LVM files. Is that possible?

Also I want to perform the following operation: Square each of the 20000 samples and add them together and then take its logarithm. Is this possible after I have opened the LVM file as a waveform in LabVIEW?

 Would be really glad if someone could explain it simple terms since I am just a beginner.

Thanks in Advance.

 

Re: Using LabVIEW in a Docker Container

$
0
0

I've never run LabView in a Docker or other container, but I am interested in this topic.

 

What I am very familiar with is installing and running LabView (for Windows) without a user interface on VMs (either via VMWare or AWS EC2). Here are a few tasks I do regularly:

 

Build Application Using Jenkins

I build our application using Jenkins. The build machine is a Windows VM that has LabView installed and configured with the various toolkits and packages (via VIPM) required by the application. Jenkins is installed and runs as SYSTEM, which I am am not please about, but Jenkins routinely writes data to its installation directory in \Program Files and I was not able to get it to work under an unprivileged account. 

 

The least-common denominator way to build under Jenkins for Windows is to run a batch file to run the build, so that's what I do: one batch file to run Caraya unit tests and one to do the build itself. The batch files look like this (being the general way to run a specific VI in the development environment from the command line.) 

pushd {working directory}
start "fake title" /b /i /wait "C:\Program Files\National Instruments\LabVIEW 2017\LabVIEW.exe" "Project.lvproj" "ViToRun.vi"
popd

Note that you need to have "ViToRun.vi" set to run automatically when opened; otherwise it will just open in your UI-free world and sit there waiting for you to click the run button. (You can open it for editing in your development environment without running it by opening the project first.) The "start" command may not be necessary.

 

Overall this works pretty well, but there are some annoyances. The first is that if you commit broken code (e.g. missing a VI) or leave any suspend-when-calleds active, LabView will throw up a dialog box, which you of course will never see. (You'll just wonder why the build is taking so long!) It would be nice to have LabView just exit with an error if dependencies aren't satisfied but I don't know of a way to force that. The second is that I have never succeeded in getting Jenkins to capture stdout during the build although it works fine if I run commands like the above from cmd.exe. But overall it's nice to have Jenkins checking out the code, pushing it to AWS S3 etc.

 

Programmatic Installation

I've never installed LabView itself from the command line, but I routinely automate installation of built applications, including the LabView runtime engine, by running the setup.exe program generated by the LabView application builder. Another batch file:

pushd {working directory}
.\setup.exe /qb /AcceptLicenses yes
popd

You need the AcceptLicenses flag or you'll get stuck at another dialog box.

 

Running Headless

I run multiple headless instances of our application as Windows Services using FireDaemon. To pass configuration data, set environment variables in FireDaemon and read them using WinAPI (easy). The only trick here in running multiple instances of an application is that you need to create an .ini file called {My Application Name}.ini containing these settings (from LabView.ini):

[My Application Name]
hideRootWindow=TRUE
allowmultipleinstances=TRUE

If you don't want to run as a Windows Service, you can just fire up your application directly from cmd.exe or whatever:

"\Program Files\My Dir\My Application.exe"

but then it will quit if you close the shell or log out.

 

I know none of these use cases really reflect what you are trying to do, but I wanted to at least give some hope that one can run LabView without a UI, and let you see the use case I am interested in, e.g. running the application in a (Windows) Docker image instead of a Windows VM. I'm also interested in running LabView for Linux in a Docker image as well, although that would be a bit more work.


One aspect of your use case I don't understand is the desire to run the development environment (vs compiled app) inside a container. Don't you need a UI in that case?

 

-Rob

 

Re: cRIO 9074 and NI 9144 behaviour and troubleshooting

$
0
0

Hi Oscar,

I still try to figure it out. I am not sure.

I will try another computer too with LV2016. Currently this unit runs on LV2009.

But I think though there is a problem with LV2016 & Xilinx tools and it is not possible to compile fpga vis. Can you confirm this?

Next thing, I'll try to figure it out if a C module is responsible.

Nevertheles, currently I am dealing with the following behaviour:

In a new project, importing the controller and the ethercats shows no errors. Also creating a dummy vi with one DO and one AI runs as it should. I can trigger the DO and read the AI. But if I explicitly deploy all the modules then the system is crippled.

So I tend to believe that a C module is propagating the problem.

 

Re: NI USB 6009

$
0
0

 wrote:

Hello Mr. TRUSTED ENTHUSIAST,

Thanks for your quick reply. I usually DAQassistant for coding. As you said to use DAQmx, I tried to make code but I can't understand how can I put sensor equations/formulas in DAQmx coding system. I have attached my DAQassistant code here.

 

Would you please give some guideline or links to solve the problem.


"DAQmx coding system" and "equations/formulas" have nothing to do with each other Smiley Happy Are you aware of the basic mathematical formulas present in LabVIEW? Like multiplication?

I put together a small example for you, using a kind of Producer/consumer pattern with Stream Channel. I let you do the data manipulation/scaling and the File saving, their place is in the Consumer loop!

Here is the snippet, try to re-build it (since you have LV2017, I used a "Stream Channel with Abort", more compact than a Queue):

 

ProducerConsumerData_DAQmx1_BD.png

 

 

 

 


Re: NIPM Post Install actions with variables

$
0
0

You mention an installer option for the post install application to run. In case of a NIPM package NIPM is the installer and would therefor need to supply the installation path. Is it possible to specify the placeholder at package build time so NIPM suuplies it? If so, you would expect it described with the package build help.

Re: Is it possible to control a case structure by the boolean output itself?

$
0
0

Hi, 

It's like the pictures and VIs that I attached. No errors only when I add a while loop.while loop.jpgwith a while loopsimple.jpgwithout a while loop

 

 

 

 

VISA Data acquisition Adxl 335 with array

$
0
0

Hi guys!
I'm Freddy, aerospace student and new to this forum, as well as new to the entire LabView universe.

For a microprocessor project (STM32F303K8, with bluetooth module HC05 and accelerometer Adxl 335) we need to represent the vibration of a cantilever beam graphically in LabView (so it's enaugh to only represent one axis). The graphical representation is already done and no problem, but in addition we need to determine the duration of the vibration. What we want to do is, save the acquisited data in an array to then obtain the duration, based on 1. time interval between acquisition of data and 2. number of data.

Searching for help in different forums, on youtube etc. we have trouble finding input or ideas for how to realize it. 


Closest y guess is the answer to a similar project here in this same forum:
https://forums.ni.com/t5/LabVIEW/Adxl335-VISA-data-acquisition/td-p/3592306?lang=en

 

Trouble here is that we don't know how to implement the part of calculating the time.
Any help, tips, comments are very much appreciated!

 

Thank you very much in advanced for taking the time of reading the entire question and thinking of a way to help us!
(The file attached is the program we already have to represent the vibration graphically in one dimension)

How can I combine Analog Input (position LVDT) and Analog Input (load cell) into the same task?

$
0
0

Hi Friends,

I have come across an Error-50103. To resolve this issue, I must combine all operations of the same type into the same task. How can I combine Analog Input (position LVDT) and Analog Input(load cell) into the same task?

 

Thanks,
Jason

 

 

Error.JPGerror vi.jpg

 

 

Re: 1-wire Labview drivers

$
0
0

The problem is the price... When someone cannot pay they need to use free stuff. I was not able to find free stuff, so I created it. For those that can effort it and do not have the time to play around to create the driver for specific hardware, they will buy the turnkey solution.

Benoit

Viewing all 201911 articles
Browse latest View live


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