Jump to content
News about the LabVIEW Wiki! Read more... ×


  • Content Count

  • Joined

  • Last visited

  • Days Won


Dawid last won the day on October 29 2014

Dawid had the most liked content!

Community Reputation


1 Follower

About Dawid

  • Rank
  • Birthday 11/08/1985

Profile Information

  • Gender
  • Location
    Szczecin - Poland

LabVIEW Information

  • Version
    LabVIEW 2017
  • Since

Recent Profile Visitors

502 profile views
  1. I do not understand, how that damn thing work. I'm fighting with this problem for two days, and suddenly when I publish my post on this forum I found solution in 10 minutes! But anyway, maybe when I already publish the topic here, I will ask for something additional. I'm trying to do EXE app to control the server and all requests. So I would like to START and STOP the web service from front panel. In attached project, you can find start and stop queue elements, but they are not working. Do not understand why. AND VERY IMPORTANT THING THAT YOU MAY NOT KNOW! I do not undestand why, but when you are creating the VI in the Web Service project. Automatically the Wev Service element is created in the VI (and the same for web resources VIs). I'm talking about those: There is hidden link in this element. If you will remove the element from the VI, your VI will not work anymore. You can paste it again or copy from another VI but it will not work. You have to create new VI from the project tree and copy the content to this VI to make your VI work again. Anybody can explain that?
  2. I'm trying to learn how to use LabVIEW Web Server. I design very simple project to develop my skills in this topic, but unfortunatelly it dosent work:( The reason why I'm trying to find help here is, that the error code do not tell anything, there is no compilation errors, and no mather how much of code I will delete, it will not work anyway. I will be grateful for any help. The LabVIEW example is working. Web Server.zip
  3. Dawid

    NI USB 845x SPI Problem

    Thanks for answers! Yes, there is info about that, but in my opinion refers mostly to I2C communication where you have to externally pull up the SDA and SCL lines. The Vref is an output pin which you can use to pull something up (not used in my application). Used mostly when you want to shift level logic between 845x and device connected. When using SPI, you are selecting I/O Voltage Level which is in my opinion the same thing, but you are doing it inside 845x. There is no info in datasheet regarding pulling up SPI lines. I see it this way. Don't understand. You mean it will not work without any device connected? I think I should see the signal on MOSI Output even if nothing is connected. Anyway! I found the solution. The NI 8452 module I use last time is damaged! I have in my company few of them, I took the next one and problem disappears. Conclusion: Properly installed device with proper driver for your LabView version (very important) should be enough to run SPI example and see how it's working. http://digital.ni.com/public.nsf/allkb/3F9B7A67207EF793862574BF00764C9F
  4. Dawid

    NI USB 845x SPI Problem

    Hello everyone, I have a small problem with SPI communication. I'm using NI USB 8452 module and LabView 2013 with driver NI USB 845x 14.0. As a first step I ran the example from attached library called "Atmel AT25080A Write.vi". The problem manifests as logic "0" all the time on MOSI and MISO lines. No Data transferred. CS and CLK works properly. I never use pull ups when using SPI but maybe I should? The question is did anybody meet the same problem while using this usb 8452 module? All 4 SPI lines connected directly to oscilloscope. Waiting for any reply. Thanks in advance.
  5. I found the solution! I tried to delete the topic, but I cannot. Anyway the problem was associated with Streams Names, which should be unique. Till you are using streams in LabView there is no need to build "Stream Name" as full URL, "ni.dex://host_name:context_name/endpoint_name". Context_name is optional when Streams works in LabView, but it's necessary to have this name when you are building exe files. The context_name is the name that identifies which application context the endpoint resides in. If somebody need more info, everything is here: http://www.ni.com/white-paper/12267/en/
  6. I'm trying to find a way to communicate between two executable LabView app, because of several reasons I chose (associated with my application) Network Streams. Everything works fine so long as they are the VIs. When I build exe files there is no communication between apps. The apps waits forever for connection (because there is no timeout). Did anybody meet the same problem? I will be very grateful for any advices and comments. TestStream.vi TestStream2.vi
  7. Hehe I just did it, post above with picture Thanks one more time for help. Problem is solved, Topic can be closed.
  8. Ok so "FlashErrorText()" crashes the LabView. The Readme file says: I found method to declare 120 or 130 (just to be sure) characters in LabView memory. See picture attached.
  9. It's working! You are awesome man, I'm really appreciate I write few e-mails to Macraigor Systems with no response so I am doubly grateful for your help PS: The only one problem is that LabView always crash when I'm trying to close VI which is executing the dll commands. When I click "x" LabView crashes with unexpected error. Dawid
  10. OK, so you are now at the same point I am. The two first commands returns 0, and disconnect returns 1 (the first command should return 1 even if you don't have hardware - I test that with cmd exe program prepared by supplier). You can test that too. Download zip attached and run cmd. Go to the unzipped directory in cmd. When you are there write: RunBatchFile test.bat and press enter. You should see that first command SetupandConnect will pass. I forgot to say, you have to edit first line of "test.bat", and put your localization to conf.ocd, for example I have: "C:\Users\stn_dak\Desktop\FlashAccess\conf.ocd" bolded and underlined text will be different on your PC, depends where you unpacked the zip. FlashAccess.zip
  11. I remove the dynamic path, but I don't have any error or broken arrow. The VI behave the same like with dynamic path.
  12. Thank you for very quick answer! I'm not so experienced programmer like you and I will be thankful If you will say something more what you mean by: "The DLL doesn't load on my system...." Maybe it doesn't load on my PC too. Anyway I don't know what doesn't mean. I tried to look for "Borland C Runtime library" and I install something but I'm not pretty sure if it's exactly what you said I should have (installed C++ free compiler http://edn.embarcadero.com/article/20633 where it says there is Borland C/C++ Runtime Library included). I read on forums that LabView handles pointers but since I have a lot of problems, I thought that maybe it is not in my case and I create "false case". Thanks for pointing me mistake with int variable, I will update code at once. I attached also example how to use dll from JTAG manufacturer, it might help somebody to advice me something. PS: My company is good customer (I think) of TMS Poland, and it's cool somebody from TMS answer first:) Dawid usbWiggler.vi ExampleMSCPP.zip
  13. Hello, I write here a topic, because I'm looking for a help since I can not deal with some issue for a long time. I'm trying to write LabView program which will program uC flash using JTAG usbWiggler manufactured by Macraigor Systems. The manufacturer provides customers with program to do whole staff connected with programming, but it's stand alone app and I would like to build the programming process into the test sequence performed by LabView (program + test). Additionally the manufacturer provides a library to call various functions related to programming, erasing etc. I tried to write a program to use dll but no success. There is some small cmd exe program which is using the dll (also created by the supplier), and its working, but there are some bugs in it, and I cannot change it or make some error handling so that's why I decided to use dll alone. I attached dll, dll readme file, ocd file (configuration file for uC), and VIs. I checked the first command called: "FlashSetupAndConnect" it's working without hardware, so you are able to test something. (checked with cmd exe program, without device it always pass if input data is ok, it fails when something is missing like bad path file etc.) Status from each function should be "1", and I get "0" all the time. The function should looks like this (copied from readme file): int FlashProgrammer_SetupAndConnect(char *ocd_filename, char *device_name, char *device_address, unsigned long baud_rate, unsigned long jtag_speed); I will be very grateful for any answer and advices. Dawid K. readme.rtf OCDandDLLl.zip

Important Information

By using this site, you agree to our Terms of Use.