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

FPGA: NI 9144 to NI PXIe 8135 causes error after file generation is complete

$
0
0

Hi

I have a simple FPGA program that compiles in cRIO without any problems, but I want to use the FPGA program on the NI 9144 EtherCAT Expansion Chassis in FPGA mode to NI PXIe 8135 (Code file attached). As you know there are some differences between programming the local FPGA and the FPGA for EtherCAT RIO, that must be used user-defined I/O variables (this paper).

For Compiling I did step by step as this paper said, we get successful processes, but after file generation complete we have an error (that attached). It shows that the file can not run in chassis. 

Please help me.

error.PNG

Regards. 


Concatenated string to time and date

$
0
0

Hi,

 

I'm attempting to use the Scan From String function to read a concatenated string as the time and date. 

 

The concatenated string is in the format of HHMMSSddmmYY, but I have only had luck in outputting as HH:MM so far. 

 

The string syntax I'm using is Time: %<%H:%M:%S%d/%m/%Y>T 

just curious why "subroutine" disappear in NXG?

$
0
0

Some VIs play an important role in calculation and they are usually set subroutine by me. Now in NXG it seems disappear and there is an option for stateful and stateless(and the default value:none) in behavior property-execution. Could somebody explains something for these?

 

Using Console Out on cRIO 9075

$
0
0

I wanted to use the Console Out on the cRIO 9075 I have for a quick check of status messages and possible errors.  I was able to find RT Debug String VI from the following page.

 

http://zone.ni.com/reference/en-XX/help/370622K-01/lvrtvihelp/rt_debug_strings/

 

But for some reason I am getting the following error.

 

Error# -1073807246

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

 

I can see the normal output from the port when the cRIO is started.  So is the port just blocked for this type of access on this particular cRIO model or am I doing something wrong?

 

Thanks for your help

Joe

 

Make connection Pneumatics - Arduino - Labview

$
0
0

Hello everyone, In the university they proposed us the following laboratory: (I write text to enter context)

 

An industrial pneumatic press is shown in the scheme of Figure 1, this press is manually operated with two hands and is composed of three linear actuators 1A, 2A and 3A. The actuator 2A performs the function of the press and must be activated in a first step at 50% of its distance, in this position it will be pressing the material A with the B and in the second step it will travel to 100% of the distance and will be pressing the material C with D. The sequence of the press is as follows:

 

  1. When activating the two buttons at the same time the actuator 1A must be activated, if one of the buttons or both are removed during the journey of the guard, it must be returned.
  2. When the actuator 1A reaches its end of stroke, it must start the advance of the press.
  3. When reaching 50% of its stroke, actuator 2A must press material A with B for a period of time determined by a pneumatic timer.
  4. When actuator 2A is returned to its starting position, actuator 3A will move the support to the left so that the materials C and D are in the pressed position, and must reach the position of LS7.
  5. After being in position the press is activated with the 100% displacement to press the product C and D, there is a pressing time.
  6. At the end of the pressing time, actuator 2A is returned to its initial position.
  7. When 2A reaches its initial position, the actuator 3A starts its recoil.
  8. When it reaches its start of race 3A, the 1st actuator starts its recoil, reaching its initial state.

I already made the pneumatic connection part in a test bench. Now, we must make the assembly of the figure that annexes in LabVIEW and perform the communication by arduino.
The communication with arduino must be of serial type, the programming I already have it but I do not know how to perform the simulation in LabVIEW.

¿Somebody could help me?

Error -10401 occurred at AI Group Config

$
0
0

Hello everyone,

 

I'm an IT technician at a local factory, never had any experience with LabView or anything with it related, so bare with me.

 

There was a computer that had a problem with motherboard, so I simply switched the motherboard. This computer is the main "tests machine".

 

Devices installed: LabView 2011 SP1 (win xp) with NI PCI-6220 and two NI 4351.

So, before anyone of you say that this is really old, I know that and eventually we will switch everything for the new equipment but now I need this working asap.

 

I get the following error:

Error -10401 occurred at AI Group Config

NI-DAQ LV: The specified device is not a National Instruments product, the driver does not support the device (for example, the driver was released before the device was supported), or the device has not been configured using the Measurement & Automation Explorer.

 

Things that I tried already: reinstalled LabView, reinstalled drivers (ni-daqmx and traditional), reinstalled the devices from pci slots.

NI PCI-6220 works fine with ni-daqmx 9.6

 

But the traditional ones are simply refusing to work, giving me the error above.

Drivers that are tried were the traditional ni-daq 7.3, 7.4, 7.4.4, 7.5.

 

The devices work fine in the MAX.

 

Any help would be appreciated...

How NOT to clear graph/chart between each VI run

$
0
0

In most cases we would want to clear a graph to start with a new data acquisition. In my case, however, I would like to retain the previous cycle's values on the graph. The point of doing this being that I would like to see the state of transition between different cycles of acquisition. In this example different cycles of acquisition is analogous to executing one VI run.

 

The example here clears the graph every time I run the VI. Is there a way to set it to retain the graph from the previous run and explicitly clear only when the user wants to (which can be done using a property node and a Boolean control).

Is it possible to add an item to a FPGA I/O Node after compilation?

$
0
0

Hi,

 

In short, I have a set number of captor on a physical structure, which are regrouped in a FPGA I/O Node in my VI. A website is communicating by websocket to my VI, and a user can change some configuration. In  the future, more captors will need to be added or removed.

Will it be possible for the user to add/remove a captor from the website? Right now I don't see a solution that doesn't requires the user to open the VI, manually add the captor, than recompile. Can a FPGA I/O Node change size after compilation?

Thank you very much


DAQ assistant scaling for different tasks

$
0
0

Is there a way you can have the user select different custom scales (via the front panel) for different tasks in a single DAQ assistant? An example might be different calibration curves for different instruments, all of which were set up in a single DAQ assistant.

visa32.dll was found but could not be loaded.

$
0
0

Hello,

 

I tried to connect a scope from Tektronix using NI-MAX and had trouble so I downloaded TekVisa from Tektronix's site and that's when the real trouble started. Now in NI-MAX I have a VISA error that says:

 

C:\WINDOWS\system32\visa32.dll was found but could not be loaded.

MAX has detected that NI-VISA is installed on your system, but visa32.dll could not be loaded. One or more files that visa32.dll depends on may be missing. Try reinstalling NI-VISA by closing MAX and selecting your NI-VISA installation in Add/Remove Programs in the Control Panel. Follow the steps in the installation dialog to repair your installation. Re-launch MAX, and refresh the configuration tree to view your devices.

Possible causes for this error:
1. NI-VISA was not properly installed on your system.
2. NI-VISA was not properly uninstalled from your system.
3. A file or component that visa32.dll depends on may have been moved to another location on your hard drive.

 

I tried to uninstall and reinstall NI-VISA a couple times, I force reinstalled it too, and no matter what I do I always get that message again. I removed TekVisa from my system and it didn't help either. What can I do?

 

Thanks.

Synchronize two USB 8452 with the same clock

$
0
0

I want to communicate to 16 sensors via SPI or I2C. However, due to the limitation of number of digital lines ( 8 in total) the USB 8452 has, I was wondering, if its possible, to connect two USB 8452 on a same computer and sync the two of them with the same clock.

Problems to use serial port of the controller.

$
0
0

Hello, my name is Jorge Gomez, my lab recently purchased a new Chassis with a PXIe-8861 controller for our applications. Currently, we're working on communicating the controller with other measurement types of equipment, some of them use an RS-232 interface. We tried to connect one equipment to the controller through the default RS-232 however, the port is not sending any signal to the equipment. We checked the NI MAX and it shows up that VISA can't recognize the port and therefore I cannot use it.

 

Can anyone help me with this problem?

 

I really appreciate any help you can give me.

 

Best Regards

Jorge Gomez

Control robot by sending G-Code to Smoothieboard

$
0
0

I have an opentrons OT-One Pro liquid handling robot (see this link) that uses a smoothie board (see this link).  The robot comes with an opentrons GUI but because I've made some modifications to the robot that no longer works.  I'd like to use labview to send G-Code to the smoothie board and control the robot, but I don't know where to begin.  I know the board shows up on my PC as a serial device according to device manager, but it doesn't show up under Devices and Interfaces on MAX. 

 

Any suggestions would be much appreciated,

Thanks

How can one edit how a Typ Def cluster shows in a block diagram

$
0
0

Is there a way to edit the form a typ def cluster takes on the block diagram? I have a typ def cluster made of an enum and variant data element that i use to manage a queued state machine. On the block diagram labview stacks the variables in the cluster making it larger than i'd like. After placing i can move the elements around, but next time i edit the typ def it goes back the default stacked form. The two block diagram forms i'm speaking of are illustrated here. It defaults to the image on left and i'd like it to be in the form on the right.

Annotation 2019-04-10 124857.png

Since there is no block diagram for a typ def i don't know how to force it to any particular layout. Moving the front panel items into different placements doesn't seem to affect it.

ECU M&C error code -301071

$
0
0

     I have been using the ECU Toolkit for several months in conjunction with a LabVIEW application. The developer of software for our parts ECU just made small modifications to the a2l file for the customer. Now I'm getting an error code of -301071  in the MC Read NChan NSAmp 1D Wfm.VI.

    He is listing the changes as different addresses and additional messages. If the names of the messages we are using have not changed then I don't believe we should be seeing this error.  Any feedback would be appreciated.

 

 


DAQmx 19.0

$
0
0

Hi, 

 

I'm trying to figure out why I can't find any references to DAQmx Assistant related items in LabVIEW NXG. NI Package Manager shows that I have NI-DAQmx installed. 

 

DAQExpress claims that DAQmx 19 is not installed; when the Package Manager opens it then claims "No operation to be performed". 

 

NI Max recognizes that there is a NI-cDAQ-9185 connected, but there is no software references to DAQ Assistant or DAQ Express.

 

Thoughts?

Labview Crash reporter

$
0
0

I'm using Labview 2018 32-bit and I get a Crash with this exception:

 

Exception: Access violation (0xC0000005) at EIP=0x0306F554

 

it happens everytime my software call an Excel specific Vi from report generation Toolkit, I have office 2016 32 bit that seems running fine. No problem with other Vi that belongs to Word or HTML. Is there anyone experiencing the same issue?

 

 

Rapid subpanel execution

$
0
0

Hello experts,

 

I am working on a application which will allow the user to see one of 50 or so data-collection sub-VIs via a subpanel, and execute said VI peridocally (as rapidly as every 100ms). Each of these data collection sub-VI has identical inputs but a unique cluster as its output, and takes 10-20ms to run. I thought that showing the FP of the data collection sub-VIs via a sub-panel would be the easiest way to allow the user to see data without needing a tab control and switching to one-of-X tabs with the matching datatype.

 

The issue I'm facing is that I'm using the Run VI method to call the sub-VI currently loaded in the subpanel, but whenever it executes it steals the focus for a second and changes the mouse cursor from arrow to selection-finger - you can imagine what happens at 100ms timing - the cursor is flinching wildly. I've tried disabling the subpanel VI but that doesn't change the loss-of-focus.

 

Is there a way to call the subpanel VI without causing loss of focus? Will using an asynchronous call work in this case? If so I guess I would need to preserve the reference to the loaded sub-VI and have a unique set of async nodes for each VI since the datatypes are unique.

How to stop consumer loop after producer queue finished?

$
0
0

Hi,

I would like to acquire data in a producer loop and afterwards process it in the consumer loop. I would like to stop the consumer loop when the producer loop is done. Therefore, I took a look at the notifiers available in LabVIEW. However, I was not able to prevent the consumer loop from crashing after I depopulated the queue. I attached a demo VI to this post. Do you have any idea what I am missing in my system design?

Thanks!

Peter

A strange question when configuring a Gige camera with IMAQdx.

$
0
0

Hello,

We are trying to acquire images from a Gige camera using the Labview 2018 (32-bit) and IMAQdx 18.5.To open the shutter, I used the Enumerate Attributes and Property Node modules to set the Pulse Rev value as shown below. However, I heard nothing and only a black screen was shown. So, I turned on the Highlight Execution and saw how it worked. To my surprise, I heard a voice of clatter and a normal image was received. But when I turned off the Highlight Execution, I could not get the image again. What should I do? Thanks in advance.

 

VI.jpg

Viewing all 68981 articles
Browse latest View live


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