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

Database cRIO

$
0
0

 Why use TMDS to create a database in cRIO and not sqlserver or others?


LabView CANOpen Library ("CANopen SDO Write Object"), General error (COE_SDO_GENERAL, 134217728)

$
0
0

Hi,

I've just started using labview2017 so if I'm missing something really obvious I apologise now!

I'm evaluating LV2017 with our application which is using LV8.5.1 - it used CANopen which wouldn't migrate as it seems all the CANOpen libraries are different!

I am using the NICANopenSW1700 download to add the CANOpen

with an evaluation version of LV2017 64bit

 

So to get myself going I opened the example and tried to compile / run but I just get bombarded with errors. It appears LV is trying to update the VI's and llbs but hasn't got permission - it is asking for a password to verify.

Am I missing something with LV?

Its the same if I use these vis/llb in my code too.

LabVIEW lvproj configuration file .net

$
0
0

I think I have problems defining the specific .NET Assembly to be used.  The problem is our company has a dll that a lot of us use and when the assemblies are in the GAC there may be versions that go past the specific version that I want to use.  Refer to the attached jpg to see what out GAC looks like right now.  Can anyone tell me how to properly set the "old" range in the config file so that everything, even including possible future versions of the dll without affecting the one that I need to connect to?

 

If version 8.0.13.4714 is not installed, then this config file works fine:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="C:\TestApps\Released\TestSet.RCTS(008)"/>
<dependentAssembly>
<assemblyIdentity name="TestSet.RCTS"
publicKeyToken="cf29a0f483c75c4a"
culture="Neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.26075" newVersion="8.0.13.2784" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

 

BUT if version 8.0.13.4714 is installed...

I've tried this way:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="C:\TestApps\Released\TestSet.RCTS(008)"/>
<dependentAssembly>
<assemblyIdentity name="TestSet.RCTS"
publicKeyToken="cf29a0f483c75c4a"
culture="Neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.13.4714" newVersion="8.0.13.2784" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

and it doesn't seem to help. And I've tried:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="C:\TestApps\Released\TestSet.RCTS(008)"/>
<dependentAssembly>
<assemblyIdentity name="TestSet.RCTS"
publicKeyToken="cf29a0f483c75c4a"
culture="Neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.26075, 8.0.13.4714" newVersion="8.0.13.2784" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

 

More importantly, I'm tired of having to go into this file every time someone makes a change on the development station and adds a new version of the assembly.  To me there should not be a old version to ignore (although I think the binding re-direct is a MS command). I think you should be able to specify the one assembly that you want, and it ignores everything else.

 

Something like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="C:\TestApps\Released\TestSet.RCTS(008)"/>
<dependentAssembly>
<assemblyIdentity name="TestSet.RCTS"
publicKeyToken="cf29a0f483c75c4a"
culture="Neutral" />
<bindingRedirect Version="8.0.13.2784" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

 

 

Any thoughts or hints would be greatly appreciated.

Issue in building executable for moving motorized stage

$
0
0

Hello,

 

I am relatively new to LabVIEW and am working on a DAQ software for a spectrometer. One component of the program is the ability to move a stage during measurements. This movement is controlled by a vi called MoveInc.vi. There are some other vi's associated with the stage (Connect.vi, Enable.vi, etc.)

 

The MoveInc.vi receives a real number input (in mm) and speed, and the stage moves relative to its current position that distance at that speed. (A picture of the .vi is attached.)

 

Every thing works fine when I'm working with the DAQ software in the main vi, but when I try to build an executable on the same computer as the main program, the stage no longer moves (but no error occurs).

 

All other aspects of the program appear to be working normally in the .exe version.

 

I should also note that the vi's for controlling the movement of the stage are in a different file location than some of the other vi's. They are all located on a desktop folders.

 

I am using LabVIEW 2015 on windows.

 

Thanks,

Tyler

View/Control web server application issues

$
0
0

I'm having trouble posting to the forum so I'm only writing a brief note and then if this works I'll edit it with more details.

 

Basically I'm having trouble accessing a web page generated by the Web Server settings tool in Labview 2015. I have the relevant RTEs etc installed as far as I know and when I view the page from the local machine I get exactly what I expect. When I view it from a different client, I just get a weird black rectangle in one corner of the frame. Does anyone know why?

Untitled1.png

 

EDIT: Ok as promised...

 

The server is running on a Windows 7 machine, and the VI is just a VI created with Labview 2015, not an executable. The client machine has Run-Time 2015 installed (as well as 2016, 2017 and a few others). I've checked the access permissions don't block the IP from which I'm trying to get to the server. It's annoying that there isn't actually an error message associated with this failure as it seems a bit hard to debug!

Blue and White stripes in connector pane

$
0
0

Hello,

I'm curious what the blue and white stripes around some connector pane terminals mean. I suspect they are for class objects, but I'm not sure. I also have some VI's that have class objects as input and output but they do not have the blue and white stripes. It could also just be a random design they have.

Building an Installer -LabVIEW 2017 Missing Installers

$
0
0

I'm attempting to build an Installer, including the LabVIEW 2017 RunTime Environment and NI-VISA Installers. The LabVIEW 2017 Platform is not found on the computer and the "installer source location" is C:\ProgramData\National Instruments\MDF\ProductCache" even though I think it should be in "C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2017"

 

I've lost the original LabVIEW 2017 installation media so I attempted to download the installer and point to that directory but it didn't work.

 

Does anyone have an easy work around for this? Thanks in advance!

 

Winston

Possible to branch off task for a specific physical channel?

$
0
0

Hey all, 

 

I'm using an event + case structure state machine to simulate various sensors/ actuators/ etc.

 

When the vi is started, I automatically initialize the physical channels on my cDAQ module (daqmx, not daq assistant) using it's own case statement, and then save then bundle the channels/ task separately.

 

Each button on the front panel then cooresponds to a separate case where I write the appropriate data to that particular channel (14 channels total).

I.e. VI starts --> cDAQ module initialized --> user presses 'Open Valve A' --> Event for valve a executes --> Case statement for valve A (only one channel) writes x-volts to that channel --> re-bundle to task which contains all 14 channels --> wait for next event.

 

I'm running into an issue where I am unable to branch my task to reference specific channels. For instance, I am forced to use the task which references ALL 14 of my channels, but I only want channel 0.

 

I've tried using various combinations of arrays, but it doesn't seem to like that very much. My latest approach is:

Create physical channel reference with all 14 channels --> create virtual channel --> bundle that task as 14 separate tasks in a single array. Still getting issues with mismatched data types though.

 

I'm wondering, is this possible? I'd rather not make an individual physical channel/ 'create virtual channel'/ task fourteen times, but I'm thinking this might be the only way.

 

Open HITL Primary - WORKING COPY. The case "Init_ni9264" is where I create my necessary channels. On the following case ('HITL_SVBB_SHT') I want to write a voltage only to channel 0.

 

Thanks for the help!


Execute simulink-dll on PXI: startup or standalone?

$
0
0

Dear friends,

I recently compiled a simulink model into a dll file, which I now want to execute on the PXIe-8880 controller of the PXI-1078. I found the corresponding Vi-blocks of the Model Interface Toolkit (e.g. Load model vi), however I am not sure on which path of the RT target I should place the dll. If I drag and drop it into the project, I can create a Build Specification, with the option of configuring a startup vi. Do I have to insert the dll in the c:\ni-rt\startup path? However, the model should not begin running when I boot the target, but only when the Take Model Time Step vi is called.

Best wishes
lysandros

Sound and vibe toolkit - third octave with windowing and overlap

$
0
0

Hey fancy folk,

 

I'm new to the sound and vibe stuff and I'm running into a bit of an issue.  I've would like to get A-weighted third octave data for 2 microphones, but I'd also like to window AND overlap my signal by 50%.  From my understanding, the windowing will help to get rid of the spectral spreading and the overlap will help to deal with the transient values being more accurate. 

 

 

Currently, I have my data being logged from the microphone, then being sent to an A-weighted filter, then being sent to a windowing function, then being sent to the third octave analysis. I can not figure out how to get the overlap for my data to happen.  I am working with Signal Express right now but could convert it to a VI if that is better to look at.  I have uploaded a snippet of my Signal Express... palette...? (the thing on the left side of the screen), to hopefully show whats going on.  

 

As far as I can tell, the only way to get overlap is with the Zoom FFT analysis tool.  However, that won't allow me to get the third octave bands like I'd want - well at least not easily.  From my understanding, I could go through and figure out the combo of start/stop frequencies and number of spectral lines to give me the third octave bands via Zoom FFT.  Anyways, is there an easier way to get my data to have an overlap without having to use the Zoom FFT stuff?

 

Also, I feel like my order of operations for the data is wrong.  Should I overlap the data, window the data, apply the A-weighting function, then do third octave analysis?  I'm not sure what my order should be, but I have a strange feeling that A-weighting first is wrong, but I'm fairly confident that thrid octave analysis should be last Smiley Very Happy

 

Matt

problem in installing linx in labview 2016

$
0
0

I am facing problem in installing linx in labview 2016. 

how to update table control at a faster rate in a state machine

$
0
0

Hello, i am working on a bus analyzer application where i am doing serial data parsing at a baud rate of 115200. i am using state machine to achieve this task , after extracting multiple information from the incoming packets, i need to display it on the table control in different columns.I am testing my application by sending fixed amount of packets from the hardware to my application. The problem which i am facing is , that if i test my application on a smaller number of packets , lets say 5000 , then my program runs perfectly and information coming from all of the packets is displayed on the table control, but when i am increasing the packet count to lets say 10000 , then i am missing out a large number of packets. The problem lies in updating the table, which makes my code slower and then i miss out on some packets. As soon as i disable updating my table control , my code is able to capture all 10000 packets.Please help me, is there any faster way to update table control so that it doesn't create a bottleneck when i am testing my application for a larger number of packets.

LabVIEW crashes at startup

$
0
0

Hello,

 

When I start up LabView 2015 SP1, I get the message in attachment. Program just closes and I'm left only with the LabVIW crash Reporter.

 

What's wrong?

 

I did the critical updates yesterday in NI Update Service. It can be related to that.

 

br,

paalbrok

fft on FPGA

$
0
0

Hi,

I am curretly calculating the FFT on the FPGA using the FFT Express VI . After computing the FFT I want to determine the frequency of the signal using the Magnitude spectrum plot, all the processing has to be done on the FPGA without sending the data to the PC . Any ideas how to go about implementing this. I checked several example codes for FFT but all of them seem to be using the DMA FIFO for analyzing data on the PC . However, for my application the entire processing needs to be carried out on the FPGA. Any help on this would be really appreciated .

 

Thank you.

 

Regards

BP transfer function

$
0
0

BP learn and Bp eval blocks, which transfer function is used? Can this transfer function  be changed ? How?


Voice recognition in labview

$
0
0

I am doing a project using voice controlled wheelchair.I am new to labVIEW.I have done the interfacing wifi connection with myRIO and making a dc motor to run using myRIO.I have decided to use Microsoft Speech API to convert speech to text.Is it possible to interface the speech software in LabVIEW.Please reply as soon as possible .

Build Application EXE with file hierarchy intact

$
0
0

I've tested my application in development and everything works fine, but on deployment nothing works because paths have changed. I'm using a specific file structure which I can't seem to keep intact during deployment.

 

A few examples are:

Original File Structure: <Application Directory>\Resources\Images\Logo.ico

Post Deployment Structure: <Application Directory>\Data\Logo.ico

 

Original File Structure: <Application Directory>\Benches\A380\Calibration Data\A1.txt

Post Deployment Structure: <Application Directory>\Data\A1.txt

 

I need to keep the Original File Structure intact because I dynamically change paths based on calculated data, if everything gets dumped in to "/data'', nothing is going to work.

 

Am i missing something obvious? This is the first time I've done a deployment to windows (perhaps it shows!)

Saving data from cRIO 9076 to PC

$
0
0

Hello,

 

I am using serial port of cRIO for input. I need to save the input data in my PC in a text file. Can someone please tell me how can I do that?

 

I tried using VISA read, write to do that, but could not succeed.

Création IHM avec bus CAN

$
0
0

Bonjour,

Je suis étudiant en licence pro en système embarqué dans l'automobile et j'ai un projet qui me pose un petit peu des problèmes malgré les recherches effectuées.

 

En effet, nous devons créer un Interface Homme Machine sur LabView et sur cette interface, nous devons afficher les trames reçues sur un bus CAN, décoder ces trames et faire des jauges avec ces données. Par exemple, une trame CAN comporte l'accélération du véhicule, nous devons retransmettre cette trame dans notre interface et faire une espèce de jauge dans LabView.

 

Notre problème est donc de faire la liaison entre le/les bus CAN et LabView, doit-on disposer d'un matériel pour pouvoir cela ?

 

Merci beaucoup pour votre aide !

Graphical programming of Sequence profiles

$
0
0

When doing test stands its a very common requirement to allow the user to input a profiled pattern for a test parameter like RPM , Pressure , Flow etc. IF you the attached image you will be clear what i mean - i have shown a typical RPM profile for one cycle of test sequence. Maybe this cycle will be repeated thousands of time.  And this pattern might vary ( magnitude of  levels as well as number of points ) . So the normal method is to provide a Multi Column list box with a Column for X values and another for Y values.  While this works its not very intutive... better would be if the user can graphically create this profile data - maybe by "pulling" the profile line with cursor and positioning as required. Is there any tool for this kind of thing or anyone has attempted one such ?

Typical RPM Profile.png

 

Viewing all 69287 articles
Browse latest View live


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