CAN comms not working
NI 9853 reads same message multiple times
Hi,
When i tried to read on NI 9853 CAN 0 port, it will always reads the last message if there are no messages on CAN bus.
I have attached screenshot on my code.
In the code read counter is 0 unless i dont send any message on CAN, When i send single message on CAN(using other tool connected to same can bus), read counter gets incremented by 1 on every 10msec. I check all CAN message everything is same, Mod1/CAN0 somehow reads the same message every 10 msec ..
Attached CAN log also.
Thanks in advance.
100 us 10MHz generation
Hi all
I'm using NI RFmx Waveform creater to generate 10MHz signal but the signal length is 10ms Thus, it there any way to change the Waveform length to 100us or to create Modulated signal with 100us length.
Thanks all
Sattam
Unsure how to pull a continuous scalar value from waveform of signal to compare using Schmitt Trigger
Hello! I have attached images of my labview VI as well as the actual program for reference.
Preface: I am using the DAQmx software to acquire a voltage, but I only have the software installed on the desktop in my lab, not my laptop which is why you are seeing the ? blocks. Don't worry, I am able to acquire the voltage correctly!
The desired result: I am wanting to acquire the voltage waveform and pull out a value at the current time to be compared to the logic operations shown in the bottom portion of the block diagram (the Schmitt Trigger). When the original waveform passes the upper and lower limits, the schmitt trigger boolean turns on and off respectively. Ultimately, I hope to use the schmitt trigger logic operation to then build a square waveform corresponding to the time when the schmitt trigger boolean turns on and off.
The issue: I originally tried comparing the waveform directly to the logic operations and of course was unsuccessful. I then tried following some forum posts to try to convert the waveform into an array, and then to index the array to a given element so that it would output the value at the current array length. I think my issue is that my sampling rate is so large (100000 samples/sec) that I need to have an array that is constantly increasing in length. Either that, or I need some other way to pull a continuous value from the waveform so that I can then use the schmitt trigger to build a square waveform.
Am I going in the right direction with this? Or is there an easier way to compare a waveform to the logic shown in the bottom of the block diagram? I am so thankful for any help you could offer me.
Thank you,
Cason Smith
"Browse relationships" menu item disappears on Mac LV 2018
I have recently upgraded to Labview 2018 on Mac OS X Mojave, and I have strange behaviour that I am not sure whether is a bug or a feature. What happens is that several menu items in the 'Edit' menu disappear at times. Specifically, the "Browse Relationships" item is missing. See attached screen shot. Is this something that can be turned on and off (I am not aware that I am doing anything to cause it), or is this a bug?
LabVIEW Matrix strategy
Hello!
I'm designing a game similar to "battleship", I need to make an algorithm that generates random points within the Boolean matrix (10x10), and that in case of finding a point of the ship, the program must generate a strategy so that it finds all the ship. I would like to know which of the different options of LabVIEW would allow me to do this and in what way.
Thank you!
Connecting the Lj-G200 to Labview
Hello,
I am new to this forum, and I've just begun with Labview. I would want to know how to collect the informations of the Profilometer Keyence LJ-G200 from the device to the PC, via Labview. I want to know if there is another device I have to use or software other than Labview and Lj-Navigator I have to install. If it has already been addressed, I would be glad to have the link too.
Example VI for MKS mass flow controller interfaced with DeviceNet???
I am trying to interface my MKS mass flow controllers via DeviceNet. I have the NI PXI-8532 Device net card and Labview 2018. I can read attributes using the NI GET ATTRIBUTE vi, and can even seemingly set attributes using the NI SET ATTRIBUTE vi, but can't get the MFC to do much of anything. Does anyone have an example VI they could kindly share? I hope I am doing something silly, but can't figure out what. Thanks!!!
Convert from LV 2018 to LV 2014
Not a LabVIEW question, but has anyone had trouble logging into here?
Hi, Everyone:
It seems that I can't log in from my workplace suddenly, but I can log in from home. I'm simply trying to understand the problem. It started Monday. Tech support at work (which is surprisingly savvy) couldn't come up with an explanation.
If you're wondering why I haven't been participating lately, that's why.
Thanks!
Reference to a Slide not working
Hi,
I have a subvi in my project that I use to rearrange a table and export the data into an Excel file, I wanted to add a Progress Bar in my main vi to understand if my subvi is actually working or not and to do this I'm sending as an input a reference to a Slide Control.
When I call the subvi and the table I want to export has like 20 or 30 rows it works just fine but if the table has something like 30 or more rows the reference to the Slide Control stop working and I get an Error Code 1055.
When I try to debug this I see from the probe that the main vi sends the right reference, inside the subvi the reference is null.
Why is this happening? What should I do?
Cannot build packed library containing ECU Measurement and Calibration Toolkit 18.0
Hello
- I use LabView 2017 and ECUMC 18.0
- When I try to build a packed library containing ECUMC VI's it gives a build error
Error 56003 occurred at Invoke Node ... Possible reason(s): LabVIEW: Adding this item would cause a conflict with another item.
This does not happen with ECUMC version 15.0!
I found out, that this only happens if I use the "MC Get Property.vi" from the ECUMC toolkit.
I also found out that the ECUMC.lvlib in version 18.0 has a "incorrectly claimed VI" "MC CAN IO Mode.ctl"
Since "MC CAN IO Mode.ctl" is called from "MC Get Property.vi" I strongly believe this is the reason for the build error!
I cannot fix this incorrectly claimed VI because the library is password protected.
Attached is an example project to demonstrate this behavior. If you build the ECUMC Test.lvlib in this example project, you will get the error. If you remove the "ECUMC Test NOK.vi" from the lib and build again, the build will succeed.
It would be nice if
- a NI employee submits a CAR for this issue, so this will be fixed in next release
- a NI employee provides me a fixed version of the ECUMC.lvlib, so I can create my packed library
PXIe-4143 maximum current pulse frequency
Hello,
i want to sink 10mA current generate at 100kHz rate as a clock.
Is this frequency achievable with PXIe-4143?
I understand i should use sequence mode, any VI example to share?
i've found one where there was a 5kHz limit set, is it due to hardware limitation?
thanks ,
Nicolas
Thermocouple type K displaying wrong readings
I am using a K type thermocouple and i had set it to read the temperature in degree Celsius but i get values in 1000s when i just try to measure the room temperature.
I have attached my VI, would appreciate your help.
Thankyou.
Xilinx Vivado from NI website vs. Xilinx website
As a rule (with no exceptions) I always use the Xilinx Compile tools that link from here http://www.ni.com/product-documentation/53056/en/. I always recommend only these for using NI FPGA products.
I am trying to find a link or written resource that states this. Could provide info on this?
If one uses the same version of Vivado from Xilinx's website vs. NI's website, what are the differences in capabilities? My guess is that using Vivado from Xilinx's website will not allow you to target NI hardware.
Multicolumn Listbox highlight only the selected cell
Hi everyone,
I found the attached example in another discussion related to the multicolumn listbox but I could not understand how to highlight only the cell on which I click with the mouse leaving all the others white.
Can someone help me please?
thanks a lot
Can dll C/C++ function be called if it has custom data type as input parameter
I Have DLL and I want to use its function defined as:
DLL_EXPORT unsigned long SetConfiguration(void * pHandle, MyAPI_Configuration configuration);
MyAPI_Configuration is defines in separate header file as:
struct MyAPI_Configuration
{
API_CommCode communication_code;
Interface_Cfg interface;
MySettup_Cfg biss;
UART_Cfg uart;
};
So MyAPI_Configuration is of a type struct. How can I call this function using call library function node?
Reset one of the plots in a Waveform Chart
Hi,
I have 8 plots in a Waveform Chart. I know how to reset them all using the PropertyNode/History, and writting a 0 on it as it has been done in previous posts.
In this case, I need to reset only one of the plots in the chart. I've tried using the PropertyNode/ActPlot and PropertyNode/History, but it's not working at all (it resets all the plots in the chart).
In the picture below, you can see I'm trying to reset the History of plot 2 when a button is pressed, but in fact it is resetting all the plots in the chart.
Thanks in advanced,
Irene.
Cant see the content of my array
Hello! I'm doing my bachelor thesis and I really need some help because it was four days ago when I got stuck with this problem and I don't know how to solve it.
I am implementing GoBackN protocol. My LabVIEW program gets a packet from Arduino with this format:
%d#%d#%d#%d, i.e. 1#0#0#0 where 000 are the data and I have to store them in a buffer if Sequence Number is correct, I mean if the packet arrives in the expected order.
I need to check the buffer to know if the communication is working properly, but the array seems to be "empty", even though I have checked that I am writing data in it.
I wonder that it might be because the while loop iterates very quickly but I don't really don't know if this is the reason, and if so, how to solve it.
I would really appreciate any help!!
Calling dll function that has struct that consist of union as input parameter
Version:1.0 StartHTML:000000235 EndHTML:000002791 StartFragment:000001962 EndFragment:000002759 StartSelection:000001962 EndSelection:000002759 SourceURL:https://forums.ni.com/t5/forums/editpage/board-id/170/message-id/1095110
I have function "myFunction" in dll that is defined like this:
DLL_EXPORT unsigned long myFunction(void * pHandle, myComplexParameter configuration);
myComplexParameter is struct that is defined in another .h file and it is defined as:
struct myComplexParameter {  myCommunicationCode communication_code;    // This is struct  myConfig config_code;   // This is struct }
myConfig is another struct that is defined in the sam .h file as:
struct myConfig { MA_Frequency ma_clock; // union
};
So MA_Frequency is:
union MA_Frequency { uint32_t frequency_hz; enum frequency; };
Is it possible to call this function from labview using call library function node? How can C++ dll code be redefined to be used in labview?