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

#error "We don't know the Compiler" when compiling dll for use with LabVIEW

$
0
0

Hi all,

 

this is not really a LabVIEW topic, but I didn't know where else to post, since it occurs when I try to compile a dll with the extcode.h file. I am trying to compile the following piece of Code.

 

#include "C:/Program Files/National Instruments/LabVIEW 2018/cintools/extcode.h"
void SendEvent(LVUserEventRef *whatever)
{
}

The compiler exits with the error: #error "We don't know the Compiler"

This, makes sense, because looking at platdefines.h, it is only expecting very few compilers. My compiler GCC 64-Bit is not part of that list.

Is there anything besides changing my compiler, that I could do about that?

Here's the part of platdefines.h that causes the error?

	#if defined(__MWERKS__)
		#define Compiler		kMetroWerks
	#elif defined(_MSC_VER) || defined(_NI_VC_)
		#define Compiler		kVisualC
	#elif defined(__SC__) || defined(_NI_SC_)
		#define Compiler		kSymanCWin
	#elif defined(__BORLANDC__) || defined(__BCPLUSPLUS__) || defined(_NI_BC_)
		#define Compiler		kBorlandC
	#else
		#error "We don't know the Compiler"
	#endif

 


Passing an entire array into a for loop multiple times

$
0
0

Hey guys,
So I have a 1D array that I want to pass into a for loop. I want all values of the array to enter the loop on each iteration. However, as soon as I send the array in, it automatically auto indexes and sends one value at a time.
What's the fix to this?
I have looked at a few previous threads but most were asking how to send individual values instead.
Ideally, I am trying to send a 1D array in that multiples all its values with the cosine of an angle. I am using the for loop to update the angle on each iteration, but I want the 1D array to stay the same and enter the loop as a whole (as opposed to one value at a time) on each iteration.
Any help/guidance would be great.
Thanks Smiley Happy

Keysight InfiniiVision 3000T X-Series Oscilloscopes - RECall:SETup

$
0
0

Hello,

I am reading the manual "Keysight InfiniiVision 3000T X-Series Oscilloscopes" and I am not sure to understand the command RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]

I copy and paste the area I try to understand maybe someone can help me understand how to use the Recall function to load a previously saved scope configuration.

"""""""""""""""""""""""""""""""""""""""""""""""""""""
Command Syntax :RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-9; an integer in NR1 format
<file_name> ::= quoted ASCII string
The :RECallSmiley FrustratedETup[Smiley FrustratedTARt] command recalls an oscilloscope setup

If a file extension is provided as part of a specified <file_name>, it must be ".scp".

"""""""""""""""""""""""""""""""""""""""""""""""""""""

Here are my questions,
- I understand the termes in brackets are optional, what does [Smiley FrustratedTARt] is useful for?
- Can I use the following syntax (3 lines below) as an example to use the Recall command ?

RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<file_name>}
<file_name> ::= "mysetup.scp"

- What does the file mysetup.scp must contain? What is the format of this file to be correcly read ? 
Do I have the save the scope set-up into the file mysetup.scp ?


Also is there a possibility to use this command directly into labview without using NI MAX ?

Using an equivalent command line.

Thanks for your help,
Fabien

Determining a Length in Seconds into Date and Time Cluster output

$
0
0

How would I go about extracting a period of time in seconds (which I believe is the default value of time since some date in 1905) using the standard Date/Time Cluster.  Which means that I want to calculate the exact period of time in years, Months, days, hours, minutes and seconds.  But When I attempt to do this manually the 1905 date throws be off by 5 years and some odd days.   Also If I try to calculate it manually, I think that I am off by a few days.  This might be a 2K year miss calculation, but I'm not sure.  Attached is a futal attempt to understand this better.  

 

I guess what I'm really trying to do is zero out the LabView Time start date which is some sort of 1905 arbitrary date that is considered a Time Point of Zero, from which all future dates are calculated.  See attached screenshot of my front Panel experiment to resolve this issue, where I am trying to calculate 2 Billion seconds (2G) into Years, Months, Days, Hours, Minutes and Seconds.

seeking programmer to help with LabView project

$
0
0

hello

 

I have a Labview program created by a programmer I hired, but I am becoming concerned the program is defective. I want to hire someone to fix it properly so it works reliably. The code has always had problems.

System has a NI DAQ (9174) with 3 modules (9211, 9217, and 9215): 1 for thermocouple (1), 1 for voltage (from pressure sensor) and 1 for RTDs (4 RTDs). The program also controls an Agilent E3632A power supply to operate with constant-power output (into a varying load). The program stores and charts all the data: temperatures, voltage&current&power from power supply, pressure sensor voltage. Some simple signal processing is done, like time averages, temp averages and temperature differentials. 


Right now the program has these problems:
1) The temperature measurements jump (step up) every 25 minutes or so. This jump appears on all temp channels and is nonphysical. Picture of the temp jumps is attached. 

2) The clock runs too slow. 1 minute on my watch equals about 44-46 seconds on labview. tried many different timing and sample rate configurations with no effect. I think problems 1 and 2 may be caused by the same programming error. One thing I tried was increasing the "Wait Until Next ms Multiple" from 2000ms to 4000ms. It had no effect on the timing issue. 

 

3) I/O errors in VISA test panel when communicating to the power supply. Present programmer seems to not know what to do. 

 

if you are interested in this work, please name your price, describe your experience, and indicate your availability.
 

Program is attached

thank you

 
dan s

OPCUA Server Timestamp issues

$
0
0

I noticed some strange anomolies in the OPC UA server when publishing tags at a 100ms rate using the OPC UA examples in LV 2018.

As you can see from the screen shots, that OPC Server is generating continuous waveforms and the client is acquiring tag historical data and graphing it.  On occasion I see what appears to be a time shifted trend seen as the rapid oscillations in the trend data.  
Is this caused by the fast tag write speed?  I am trying to simulate real world conditions where I will be writing 10 tags/s
 
Server.pngclient.png

Need VIPM 2013

$
0
0

Hello Everyone,

I have a LabVIEW 2013 project code which uses NI GOOP modules. I need VIPM 2013 to get NI GOOP installed for LabVIEW 2013. VIPM 2018 has all other toolkits except NI GOOP. In another system with LabVIEW 2018, I can download VIPM 2018 and install NI GOOP. 

From where can I get NI GOOP VIPM 2013?

Thanks in advance for guidance

Keysight InfiniiVision 3000T X-Series Oscilloscopes - RECall:SETup

$
0
0

Hello,

I am reading the manual "Keysight InfiniiVision 3000T X-Series Oscilloscopes" and I am not sure to understand the command RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]

I copy and paste the area I try to understand maybe someone can help me understand how to use the Recall function to load a previously saved scope configuration.

"""""""""""""""""""""""""""""""""""""""""""""""""""""
Command Syntax :RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-9; an integer in NR1 format
<file_name> ::= quoted ASCII string
The :RECallSmiley FrustratedETup[Smiley FrustratedTARt] command recalls an oscilloscope setup

If a file extension is provided as part of a specified <file_name>, it must be ".scp".

"""""""""""""""""""""""""""""""""""""""""""""""""""""

Here are my questions,
- I understand the termes in brackets are optional, what does [Smiley FrustratedTARt] is useful for?
- Can I use the following syntax (3 lines below) as an example to use the Recall command ?

RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<file_name>}
<file_name> ::= "mysetup.scp"

- What does the file mysetup.scp must contain? What is the format of this file to be correcly read ? 
Do I have the save the scope set-up into the file mysetup.scp ?


Also is there a possibility to use this command directly into labview without using NI MAX ?

Using an equivalent command line.

Thanks for your help,
Fabien


Sample of 2D array of points - Fit 2D FFT to find missing points

$
0
0

I have an image of dots that are close to being evenly spaced but are not quite. I would like to fit something like a 2D sinusoidal plane wave to the points such that each point in the image is essentially a peak. My goal is to detect the missing peaks where there are no dots. First, I would like to assume the frequency is constant but the reality is that it is slightly different from the left-side of the image to the right-side. In fact, the peaks (points) tend to be a little closer together the closer to the left- and right- sides of the image. The top- and bot- of the image should be very consistent in the frequency of dots. I know there are ways to do this with LabVIEW tools. Should I use some of the FFT VIs to extract the frequencies between dots; or would it be better to perhaps fit a 2D plane wave model to the existing points? Any thoughts on direction here would be appreciated. 

Alternatively, I've thought about grouping the dots in their respective "waves" and then calculating the average spacing between them both left-to-right and top-to-bot, and then trying to determine the missing dots with that information. But if there was a fitting method or an FFT function I could use to simplify this that would be helpful

best network communication protocole between master computer (labview code) and 5 computers (python, client)

$
0
0

Hi all,

 

I use Labview 2011 on windows 7.

In my project, I developed an application in Labview (running on windows computer, MASTER), called LB1, that has to communicate with up to 5 Raspberry Pi (running python code, SLAVES), called RP1, RP2, RP3, RP4 and RP5. They are all connected to the same network (cable or WiFi). From the Labview application, some information has to be retrieved from the Raspberry Pi RP1 GPIO. For example, the Labview application has to get the temperature measured by RP1. To do that, the Labview application has to ask the information and wait until the information is provided. Another example is when the RP2 is notifying the Labview application LB1 that something happened on the GPIO.

From internet, I found many protocols, such as WebSocket, RESTful, MQTT, etc. For MQTT, it is an asymchronous protocol so It seems it is not adapted for wait-response communication. Regarding WebSocket and RESTful, I am quite confused about the server and the clients and how to setup such protocol.

Any suggestions that will fit my project? thank you.

Cedric

Keysight InfiniiVision 3000T X-Series Oscilloscopes - RECall:SETup

$
0
0

Hello,

I am reading the manual "Keysight InfiniiVision 3000T X-Series Oscilloscopes" and I am not sure to understand the command RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]

I copy and paste the area I try to understand maybe someone can help me understand how to use the Recall function to load a previously saved scope configuration.

"""""""""""""""""""""""""""""""""""""""""""""""""""""
Command Syntax :RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-9; an integer in NR1 format
<file_name> ::= quoted ASCII string
The :RECallSmiley FrustratedETup[Smiley FrustratedTARt] command recalls an oscilloscope setup

If a file extension is provided as part of a specified <file_name>, it must be ".scp".

"""""""""""""""""""""""""""""""""""""""""""""""""""""

Here are my questions,
- I understand the termes in brackets are optional, what does [Smiley FrustratedTARt] is useful for?
- Can I use the following syntax (3 lines below) as an example to use the Recall command ?

RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<file_name>}
<file_name> ::= "mysetup.scp"

- What does the file mysetup.scp must contain? What is the format of this file to be correcly read ? 
Do I have the save the scope set-up into the file mysetup.scp ?


Also is there a possibility to use this command directly into labview without using NI MAX ?

Using an equivalent command line.

Thanks for your help,
Fabien

Keysight InfiniiVision 3000T X-Series Oscilloscopes - RECall:SETup

$
0
0

Hello,

I am reading the manual "Keysight InfiniiVision 3000T X-Series Oscilloscopes" and I am not sure to understand the command RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]

I copy and paste the area I try to understand maybe someone can help me understand how to use the Recall function to load a previously saved scope configuration.

"""""""""""""""""""""""""""""""""""""""""""""""""""""
Command Syntax :RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<internal_loc> | <file_name>}
<internal_loc> ::= 0-9; an integer in NR1 format
<file_name> ::= quoted ASCII string
The :RECallSmiley FrustratedETup[Smiley FrustratedTARt] command recalls an oscilloscope setup

If a file extension is provided as part of a specified <file_name>, it must be ".scp".

"""""""""""""""""""""""""""""""""""""""""""""""""""""

Here are my questions,
- I understand the termes in brackets are optional, what does [Smiley FrustratedTARt] is useful for?
- Can I use the following syntax (3 lines below) as an example to use the Recall command ?

RECallSmiley FrustratedETup[Smiley FrustratedTARt] [<file_spec>]
<file_spec> ::= {<file_name>}
<file_name> ::= "mysetup.scp"

- What does the file mysetup.scp must contain? What is the format of this file to be correcly read ? 
Do I have the save the scope set-up into the file mysetup.scp ?


Also is there a possibility to use this command directly into labview without using NI MAX ?

Using an equivalent command line.

Thanks for your help,
Fabien

Open PMU Project

$
0
0

Dear all,

I am working on LabVIEW Open PMU Project. In this project i want to change two things-

  1. In this project 24 samples per seconds has been taken. I want to change this sampling rate(the rate at which data given to PMU for phasor estimation) to 48, 96, 124...etc. But in this project there is one resampling VI used which is taking 50k samples per seconds input and giving 24 samples per second( i.e. fixed). Due to that VI i am not able to change sampling from main FPGA vi. Also here a drop down menu given to set reporting rate(the rate at which PMU given data to other devices ) of PMU, how can i make drop down menu to change sampling rate. 
  2. In this project DFT is to estimate phasors, how can i use another algorithm(my own) to estimates phasor.
  3. i am not able to edit or "save as" resampling VI.
  4. How can edit VIs so that i can implement my own codes.

Citadel Web Service on NXG Web Module

$
0
0

Hi Everyone,

 

I'm trying to call NI Citadel using Citadel Web service from web using NXG web module, but I've problem getting the data.

 

Note: 

I'm able to call the web service from LabVIEW (2017) as well as web browser.

 

Below is the address:

http://localhost:3580/nicitadel/trace/LAPTOP-LOTTGM85/My%20Process/My%20Data?OUTPUT_FORMAT=JSON&dbpath=LAPTOP-LOTTGM85%2fDefault_Database

 

And below is the Output:

{ "firstTimestamp":"2019-02-02T22:43:20+07:00", "sampleInterval":1, "data": [0.000000]}

 

I'm having the following error on NXG Web module:

Code: 363650

HttpClientGet in NI::HTTP::httpWebServerClient.sli::httpWebServer_Get->NI::HTTP::GET.gvi->WebApp::Main.gviweb<APPEND>
A network error has occurred. Possible reasons for this error include Cross-Origin Resource Sharing (CORS) configuration issues between the client and the target server or that the client cannot reach the target server. Due to browser security restrictions, detailed information about the cause of the network error cannot be provided. You may find specific details about the cause of the network error in the browser development tools console or in the LabVIEW output window.

 

Thanks & Regards,

 

Irfan

CLD

Why does Vi take long time to run motor

$
0
0

hi 

i am using a VFD to run motor by using feedback PID.

i am measuring frequency with NI 9401 and converting into rpm.

i am using NI 9263 for voltage output.

but the issue is when i run vi it doesn't run motor immediately,it takes long time to run motor or sometime  doesn't run motor

i am attaching my VI below.

vfd is by PARKER 690 + 


FPGA PID outputs NaN

$
0
0

Hello,

 

I'm working on a LabView project to drive DC motors from the FPGA part of a compactRIO 9063.

I've implemented a small VI to do so, based on optical encoders to retrieve the current motor axis positions and a PID to control the motor courses.

 

For some reasons I cannot explain, the PID outputs always send as NaN (as far as I can see using the indicator).

Any idea why I have such a behavior ?

 

Find below a snapshot of my VI.

 

thanks for your help,

Regards,

Christophe.

Re: enum data items dynamically

$
0
0

Can we also chage picture values in ring during run time ?if so can you please attache a png image or vi 

thanks in advance

represent a communication signal on complex envelope form

$
0
0

Hi everyone:
we know that The communications signal may be written as the real part of a complex waveform with real and
imaginary parts, s(t)=Re{ a(t) exp(j theta) } with complex envelope {a(t) exp(j phi)},my question is why we represent the signal on the In_phase and quadrature form i.e on the I&Q form what is the benefits of this representation ?

Profinet Card from NI

$
0
0

Since NI do not offer a PCI based Profinet card, I used a card from Comsoft which I procured in 2015.  At that time I had used this card to interface with a Beckhoff EP9300 gateway module to convert the Profinet bus to EtherCAT bus modules. 

 

Now the customer is moving to Siemens Profinet I/O Modules dropping the EtherCAT  modules. I guess I can continue with the Comsoft PCI card itself. Or is there any other better option to interface the Siemens Profinet bus with LabVIEW 2017 ? 

AM envelope detection problem

$
0
0

Hi everyone:

I try to build AM transmitter and receiver on lab view there is no problem on the transmitter, the problem is that the modulating signal passes through band pass filter To remove unwanted interference around carrier frequency, design a fifth order “Chebyshev” band-pass filter ,then extract the real part of the complex filtered signal that will be full wave rectified then To filter out high frequencies to complete envelope detection, design a second order “Butterworth” low-pass filter the problem is why after LPF the carrier frequency still exists on the signal as shown on the attached figures??fig1.png

 

fig2.png

 

Viewing all 68914 articles
Browse latest View live


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