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

UMFT4222EV-B LibFT4222.dll VIs

$
0
0

Good day,

 

I am using UMFT4222EV-B USB2.0 to Quad SPI/I2C Bridge Development Module Development.

 

I am trying to use UMFT4222EV-B as a SPI slave with LabVIEW API. The problem occurs, when I am trying to import "Shared library (.dll)". I am uploading LibFT4222.dll and related LibFT4222.h file.

 

 “The shared library contains 43 function(s). The declarations of 20 function(s) are found and recognized in the header file and these function(s) can be wrapped.”

And the missing header file seems to be: “WinTypes.h”,

 

What I learned after exchanging mails with FTDI technical support, is WinTypes.h is Linux header file which, I should not need to develop API on LabVIEW, but anyway LV is still asking for it, what makes LibFT4222 impossible to import.

Even uploading the missing header from Linux library did not solve the problem, because LV is asking for next missing Linux headers like for example “pthreads.h”. They advise me to search solution within LabVIEW community. I searched NI forum and found many people have problems with this libraries, so I think the easiest way would be to upload just necessary .vi files.

 

Can someone, upload a LibFT4222 .vi files for SPI slave communication, please?

 


TCP Data stream

$
0
0

Hey people, I want to stream EMG Signals via TCP into Labview.

 

When I connect my hardware for the sensors, it shows the signals in the manufacturer software, so the hardware works fine.

In the manufacturer software you can look up the port, and in the manual it says it transfers the data via TCP.

 

So I tried via TCP port to input the data and show it in a graph, however the graph only shows me a flat line. When I write some random number in the port, it shows me an error. So that means the port is ok. The manufacturer software shows me the signals, so the hardware is also working.

 

I think the problem is in the data conversion or something, has anyone an idea how to fix this ?

 

I made screenshots of the blockdiagram and the user manual where the data type is discused.

thanks

 

lepina

 

EDIT: I added a screenshot with the diagram and probes. maybe it will help

Probes.png

How to convert the byte array into an image file

$
0
0

Hi. Now i'm working on convert the byte array into an image file.

I have to use Labview coms so cannot use graphic functions in labview such as open jpg file or unflatten bitmap and so on.

 

I've tried on 'write a binary file' or 'write a text file' but it seems like there's no compatibility.

When I use 'write a binary file', the size comes out in a right way. However, cannot open the file.

Even though the byte array is a right one when I convert it into byte array again.

 

And when I use 'write a text file', I can open the file but there's a lot of noise as I attached behind.

and the size of the file is a bit larger.

 

 

I uploaded what i programmed. If you give me a answer it'll be very thankful.

 

*I've also tried change bitstream to base 64 codes and save it thru 'write a text file' but no effect.

How to specify device ID for modbus polling

$
0
0

Hi all,

 

I am trying to poll modbus data from a device that requires that its slave/device id be specified. I'm not sure how to do that in LabVIEW. I have other devices on the network that do not require that parameter, and this code works for them:

readholdingreg.jpg

 

I also know that the rest of my parameters are correct and my slave is properly networked because I am able to poll it using CAS Modbus Scanner with the correct device ID specified.

 

Is there a way to do this in LabVIEW?

 

Thank you,

 

Amanda

LabVIEW 2016 crashes when communicating with Newport CCD and or monochromator

$
0
0

Two USB/serial devices that LabVIEW communicates with will suddenly crash LV at random times.

We've increased the time to "close" the device between commands, and that helped quite a bit.  Increasing the time more has not helped further.  The 2 suspect devices are:  1) Newport/Oriel CCD Linespec array detector, and 2) a Cornerstone MS257 monochromator.  Has anyone has experience trying to use these 2 devices with LV?  Anyone had a similar problem with USB/serial devices?  This is really old RS232 serial interfaces converted to USB.

Thanks! 

Sensor and Temperature Calibration in LabView

$
0
0

I am trying to use LabView for Data Acquisition using a combustion gas detection sensor. The sensor is in a Wheatstone circuit, so the output measured is the voltage change. At the same time, we have a temperature sensor on the same PCB board because change in temperature affects the sensitivity of the Gas Detection sensor. So we have to calibrate the sensor against the temperature sensor.

 

My question would be, will I be able to do the calibration in LabView? If yes, how? And will I be able to do it i the base version of LabView?

 

Thank you.

LabVIEW FPGA: The Compile Farm Server Returned an unexpected Error

$
0
0

NI 1.png

I am getting this error, in the beginning of the configuration while running an example on FGPA, cRIO-9082.

 

How to make a better true false loop, and how to replace previous ring picture? Checkers Board Game

$
0
0

Still working on the checkers project, we got the ring picture to change while running. Despite of this progress we cant seem to replace the ring image when moving the checkers piece. My partner and I struggle to make a better true and false statement for our case structure. If anyone can offer legit advice it would be great, and the Project.Vi is attached incase anyone wants to run it. This is our first time, so I apologize if this looks like garbage.

 

Thank you!


Very simple questions about Queue and De-queue. Vi attached.

$
0
0

Dear friend, 

 

Please check the attached vi. The function is very simple, just queue the array from lower while loop to upper while loop.  That's it!

The style A is working, but B is NOT working.  

My questions:

1. why B is not working ? I didn't get any error.  

2. If I want to queue an array from one while loop to another while loop (outside and parallel ), the way I do is correct or not?  I am new with queue, please advise me.  Thank you

A.pngB.png

how do I programmatically determine the number of bits in a fixed point number?

$
0
0

I have a fixed point value of type <+, total number of bits, number of integer bits>

how do I programmatically determine the total number of bits ? I don't see this in the property node menu.

How to use the example "PmodBT2"

$
0
0

hello everyone,
i want to use linx to communicate with my arduino mega via bluetooth,the arduino connected to hc06 bluetooth device, i try to use the example "PmodBT2",and i insert to the serial port and uart channel in the example the incoming and outcoming port of the bluetooth in my computer,and i cant seccsed to connect to the device via linx ,why?

reading data from microsoft word

$
0
0

Hello! My name is Akim. I am beginner at LABVIEW. I'd like to know can LABVEIW connect with Microsoft Word. I mean reading information from Microsoft Word for data processing in LABVEIW. Could you help me please?

how to automatically disabled Numeric Control in Labview

$
0
0

Hi Guys

 

I just want to seek help, I want to automate Agilent DMM using LabView. I already got my code working, I can automate it without having any problem, I just want to add some features.

This is what I want to do. if my Autorange Button is Disabled, i want the Resolution and Range controls to be disabled, and when the autorange button is enabled, the resolution and range controls should be enabled. I know I might be using the property node, but I just can't get it going.

Thanks in advance for your help guys.

Create New FPGA project: cannot find NI-9145 as target

$
0
0

Hello,

 

I am using a PXI-1078 together with a NI-9145 EtherCAT Expansion Chassis. In order to develop a FPGA I tried to create a new project with the "LabVIEW FPGA Project" template. However, the NI-9145 chassis is not vibisle under the "Select project type" menu?

Do I have to discover it separately somehow?LLS_0.PNGLLS_1.PNG

 

Thanks alot

Lysandros

Data Logging to excel in columns

$
0
0

Hi,

 

I am trying to write my data into a excel file where in the first column the time is shown and the other the input channels. 


Determine array size on vi scripting

$
0
0

I would like to know if it is possible to find out array size on vi scripting. 

What I ultimately want to do with that value is to define the number of rows visible on the front panel. 
I guess I will have to use the built in array size function, but I do not know which property node I need to use to wire to the function.

Also, for value property node, is there any way I can convert that from variant to array format? 

I do not have basic knowledge in variant, so I will also appreciate it if anyone can provide me with any help or documents I can read on it. 

 

Thank you in advance!  

Adding low frequency noise to a sine function

$
0
0

Hi,

I'm trying to generate a signal which would represent the torque curve of a cyclist. To be  as close as possible from the real torque curve, I need to add random low frequency noise to my sine. I've managed to add noise to my signal but I can't change the frequency (which is very high...). Anyone got an idea how should I proceed?

 

I add my vi which generate the signal

 

Here is an example of pedaling curve :

Résultat de recherche d'images pour "pedaling graph"

 

Thanks for your help

String (Ctl/Ind) mouse events

$
0
0

Hi,

 

Have some trouble with a string control (and indicator) and mouse key events.

In the application I have several string controls and indicators. For this question I use a test VI.

 

I want to detect if a mouse key is down and with some keys be able to discard the mouse key pressed.

Also the display style selector is visible and it must be possible to change the display style.

It works but I have to click the display selection twice if I have a ‘Mouse Down?’ event for this string control.

The event ‘Mouse Down?’ is fired once if the display style is clicked.

I can think of workarounds but I cannot find a normal solution.

 

Does anyone have an idea how to solve this or is it a bug ?

 

Kees

create a history review page

$
0
0

i built a VI that is contains from one tab control with several pages. 

in the block diagram i'm using QMH technique. 

my real time data page, reading data from a matrix of force sensor and display the results numerically over 2D array then display it as graph over the intensity graph. 

i'm having an accurate shapes and coordinates of the object over the sensor matrix. 

 

the sensor matrix connected to shift register and multiplexer as i'm using 12X12 then to Arduino and from Arduino a USB to the laptop where i'm processing the data through labview. 

 

in my Arduino code i declared an initial number (10000) that when labview see this number, he knew that it is the beginning of new iteration of reading data. 

 

i was trying to build a new page to review the history of the object displayed over this sensor matrix. i want to review the data with respecting the time such as (today at 14:57 object top left corner with its image from the graph) 

simply i need to review the history over a day in hours, then weeks, months and a year. if i can. 

 

i tried to use invoke node and property nodes as well, but it required to save the picture manually and i need to save the data automatically and review it within the VI itself  'Smiley Sad 

 

i was trying an idea which i didn't know how to make it in the right way, which is... if this is your first sensing in the day, save the picture of the intensity graph, then compare the new data with the old data, if it is the same ignore it, if it's new then save it and make it a default that you want to check the next one with it. 

 

i tried to pass my data to a history chart from the intesnity graph, and increase the length of the history chart to check the data with time, but it didn't work as the history chart doesn't save the data. 

 

what is the best way to create this history review.  

 

i can't post my VI, please check the snippit and a picture about what i think 

Interrogation MODBUS Devices

$
0
0

I have a two clones of one VI. And two devices connected to one port. Please explane to me, how I shell to do this correctly?

Devices.png

Viewing all 67048 articles
Browse latest View live


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