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

Is it possible to programmatically load an XNET database in LabVIEW Real-Time

$
0
0

I checked the forums for this topic but didn't find a match...close, but not the same.

 

I wrote code for Windows to load a CAN .dbc file and do what I needed to do.  I now need to use the same code in LabVIEW RT (cRIO Linux) but it doesn't look like I can load the .dbc file directly...I have to deploy it, then reference the alias for 'XNET Database Create (Cluster).vi"...the rest of my code works fine from there.

 

I'd like to skip the hassle of deploying the .dbc database for each cRIO system (I know I can write code to deploy the database; BTW, the same undeploy/deploy vis are not supported in RT)....deploying the .dbc file with the executable (then loaded on RT) is preferred since the procedure is simple and doesn't require any additional code.

 

Thanks,

 

Todd


cRIO 9068 config file corruption on power loss - best practices?

$
0
0

I am using a cRIO 9068 to control and monitor a process on some remote jobs. Since various settings and other attributes tend to change, I periodically save the config file, in this case every 10 seconds, while the job is running. Since often times the equipment gets unplugged or power is disconnected without regard to this xml config file write process, I alternate my writes between two configuration files so if one is corrupted and errors out, it triggers an event to use the alternate. 

 

I have been having issues loading corrupted config files despite this approach, so I am curious if it is possible that the file operation could be corrupting multiple files located in the same folder, or if this is unlikely. I use the Write to XML file for my config file saves, which is a Create or Replace file save, followed by a binary write, then a file ref close. I am not flushing anything. 

 

In the error positive events I have been able to reproduce, a probe of the Read XML on my config file (a LV cluster typedef, full of various arrays and other custom typedefs and timestamps) will show all the information, but with a large chunk of spaces in front of everything, which I believe is where it hangs up on parsing it. 

 

I have considered the use of a 24VDC UPS, but the particular use case (read: time frame) of our scenario makes the inherent equipment cost and size a bit of a constraint with the current physical aspect of the enclosure. 

 

Some suggestions/thoughts would be appreciated. 

 

Thanks,

R

Tilt a boolean square led

$
0
0

Hi, 

I want to tilt a square led, it seems simply but I do not know how to do it.

I can change the height and widht but no the angle.

 

I attach a picture where I want to put a led from the center of an hexagon until the perimeter.

Captura.PNG

What to put in preprocessor definitions in Import Shared Library Wizard

$
0
0

Hello,

 

I have the same header file shown in the following webpage (except for the KeyGeneration.cpp portion at the end).

 

https://cboard.cprogramming.com/c-programming/121725-reg-problem-creating-dll.html

 

I have a DLL file that generates a key array from a seed array input. I tried using the Import Shared Library and I got the following message. It seems I have to put something in the preprocessor definitions.

 

1.png

 

Any pointer would be appreciated.

NI 9215/ cRIO 9037 multiple modules data acquisition and logging

$
0
0

Hi, 

I am a new to LabVIEW FPGA. I am using cRIO9037. My project is to acquire data for multiple analog modules NI9215. Sampling rate 2KHz. I used the examples to build the template. The example program which acquires data from 1 module (4ch) works well, however when I try to add on other modules (all the modules are NI9215), I am not able to figure out the changes that must be done. What changes should I make? Can I get a help over this?  

LabVIEW 2017 and Switch Executive 2015 error -29003

$
0
0

(OS = Windows 10) 

After upgrading to LabVIEW 2017, uninstalling and reinstalling Switch Executive 2015, when I use the Switch Executive VI's in LabVIEW 2017,

I get the error -29003 (This session is not a valid NI Switch Executive virtual device session).  Oddly enough, when I switch back to LabVIEW 2016, I have no problems with Switch Executive. This problem, in my case, is only when I use LabVIEW 2017. 

 

Wondering if I'm the only one.

DAQmx waveform out of FGEN Arb

$
0
0

New to FGEN, not to DAQmx.

I would like to record a waveform using DAQmx, save it as a file, then replay it out of a PXIe-5423.

I'm not having any luck manipulating a waveform to something the 5423 will read in.

Anyone have a example?

 

Control of a Brushless DC Motor

$
0
0

I am working on trajectory control for a Brushless DC Motor.I am using LabVIEW setpoint PID for set point generation and PID VI for control. The motor is supposed to follow a sine curve (figure attached). In the figure attached, there is also the actual trajectory of the motor.  I have tried using PID Lead Lag VI for improved response but it only gave little improvement. I have attached the .vi file also. I am also adjusting the output values so that the motor PWM input is not in the deadband area of the motor.

The issue is the lagging response of the motor. The motor response is delayed and the response is in steps (as seen in the figure)

I do not have much idea about the motor since it was in my Lab without any datasheet.

Only thing I know is that it is a 350W, 3000rpm , 24V motor. Maximum Current 16A. The motor takes PWM input. For feedback  I am using a 4000 CPR encoder. To control the motor, I am using a motor controller ZM 6615 which was bought from www.sdcq-micromotor.com (the controller manual is not in english). Th PWM input is provided by myRIO 1900. I have used the same vi for a Permanent Magnet DC motor with much better response. I am relatively new to BLDC motors and it would be great if anyone could provide me an insight on this problem.

Thank you.


Generating a synchronized waveform from PCI 6602 using the onboard clock

$
0
0

I am trying to generating a synchronized digital signal which is a voltage ramp from 5V to 0V. I started with the example provided in LabVIEW called "Correlated Dig Write with Counter.vi", but keep getting the error message, "Error - 200077 occurred at Property Node DAQmx Timing(arg 1) in DAQmx Timing(Sample Clock).vi:2". I use port0/line0 as the Output physical channel and use ctr1 as the counter.

 

I also tried writing my own version to output the voltage ramp, but I got the same error message. I put my code in the attachment. When I run my code, I use port0/line0 in lines and use OnboardClock as the source. Does anyone know how to solve the problem or what might be the possible problem? Thanks!! 

digital ramp value.png

Lag in robotics instrument(attitude indicator,compass)

$
0
0

Hi,
my initial program is working smoothly

inital program front panelinital program front panelinitial program block diagraminitial program block diagramSo after i implement a sound warning system.current block program.PNG
When the roll angle hit higher than the desired warning angle "60" which can be set at the front panel.The beep.vi will start to sound up,causing slow reaction to the instruments(atittude indicator,compass etc).

It then take some time(2-3 sec delay) to go back to the angle which i shift.
Note: everything is working smoothly within the set warning angle,the lag only happen when the beep.vi sound up.

From what i understand this could be due to the sensor continuously sending,the roll angle of 60 and above.This mean the beep.vi must complete a certain number of beep from the number of data it receive.So eg, receive 100 set of >60,required to beep 100 times before it get out of the t/f structure,in order for everything to work smootly again.

Any idea how i can fix this issue?

I am using labview robotics 2015,version 15.0.1.I am using arduino to input data from the sensor altIMU 10-V5.



how to generate a sine waveform array of values?

$
0
0

 I have array of  values received from DSP controller via rs232.  These values are RF power  Voltage and Current values processed through DSP and received on PC. I want to show  a sine waveform of these values which is expected to be equivalent with what  see on   Oscilloscope. would you help me please in doing  this on labview?    I have attached a diagrammatic view of my question here with. 

Thank you a lot in advance   

Upload the data file automatically in Simulation Arbitrary Signal

$
0
0

Hello, 

 

How can I do that the simulation arbitrary signal upload the data file automatically?.

That it's to say , if I change the data in the .lvm file, how can i do to not upload the file in the simulate arbitrary signal properties again?

 

And another question, how can the signal generated continuosly? I want visualize the signal is advancing in time

 

Thanks. 

 

Using labview to save screenshot of the Agilent oscilloscope with the command DISPlay:DATa?

$
0
0

I want to save the screenshot to my computer. Writing the command DISPlaySmiley Very HappyATa? PNG, SCReen, COLor through VISA and then reading the returned value, but the returned value is incomplete, who knows how to save the screenshot to the computer? Thank you very much!

.NET SMTP email in executable

$
0
0

I'm trying send email via SMTP.
LabVIEW SMTP example doesn't work (no error, but no email)
This code works successfully in edit mode.

smtp.png

 

 

 

 

 

 

 

 

But in exe I get this error

smtp_error.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"Inner Exception: System.Net.Sockets.SocketException: An attempt was made to access the socket with a method that was denied access rights"

what does it mean?
exe and vi works in one login session, without Admin rights.
How to fix this error?

Case Structure

$
0
0

Hello, 

 

In the attached VI, I have taken 'String element' from an array and fed it to case selector. But, case selector isn't working. (executing only the default case)

 

Please explain what's going wrong. 

 

Thanks. 


Show string next to mouse cursor at drag over

$
0
0

I drag some strings inside a tree control. During dragging, I would like to indicate the dragged string next to the mouse Cursor. Is there any built-in function for this, or I have to create a string indicator and Change Position along the mouse Cursor Position in the Drag over Event?

 

Madottati

Counter(position) value is missing the pulse during logging

$
0
0

Hi,

 

I am using NI9178 chassis and NI9401 module to measure quadrature encoder.

Totally 4 encoder, so I using A & B pulses only for every measurement.

Here I cannot able to use onboard sample clock leads error. So I using counter measurement without timing source VI.

When I am using the VI(attached) loses some pulse value during logging. As far as my understating (1)for every 124 values and (2)during my next column log starting time(first element) - encoder pulse values are missing. The same logging counter values excel sheet is also attached.

 

Additional information:

3600 pulse/rev

operating at 2000rpm(values are missing even at lower speed-200)

  

Interfacing Zeiss Axiocam 305 color (USB camera) with Labview

$
0
0

Hello,

 

I use an Axiocam 305 color from Zeiss (usb cam) and I would like to interface it with LabView.

I already make a program (taken from internet) to interface a usb webcam and it works well. Unluckily it doesn't detect Zeiss camera. I supposed there is something to instal (drivers?) to use this camera with LabView?

 

Is someone has allready had this problem and can help me?

 

Many thanks,

 

Julien 

myRIO openCV

$
0
0

Hi guys! I am a newbie in using labview or openCV software and I am just wondering if I can implement an openCV library code into the myrio. I know that labview can implement openCV library via .dll file. However, I want to know if this can also be implemented to myrio. Are there ways to do this? Thanks for your support

Unicode to UTF-8 conversion

Viewing all 69222 articles
Browse latest View live


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