Jump to content

Aaron L

Members
  • Posts

    21
  • Joined

  • Last visited

Aaron L's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm using another computer running B&B Electronics ComTest as a surrogate receiver so I can see what bytes are coming across. The transmission stops at 0x00 and 0x00 isn't ever sent. I have another device that I can transmit a 0x00 null character and the PC running ComTest reads it perfectly as well as characters following 0x00. Attached is an image of the VI.
  2. Hello, I am having trouble sending binary through the serial VI in LV 2009 (same problem in 8.5, 8.6). I'm fine until I attemp to send 0x00. The transmission stops. Attached is a sample VI. If anyone can direct me to exactly how to do this, I will appreciate it. The help on NI's site doesn't have good links any more. Regards, Aaron binary out serial.vi
  3. QUOTE (jdunham @ May 7 2009, 06:48 PM) It's true that there doesn't appear to be a good way to make it happen. Following that thought, I looked in the LV sample file Write Data to XML File.vi, and found there is a little trick NI uses. Placing a variable as the input to the Flatten to XML, the wire receives a name and that data is transmitted as a label in the XML file. You can see the attached. This works quite well for me since I have the file writes in a different location as the numeric input.
  4. I was trying to get a little XML data file going for a bit of data I need to save and wanted to use the built in labview tools. However, to create the name of a number, it comes from the wire label. See attached. I've right clicked on a wire and added the description, but that doesn't link into the XML data. The label has to end up in the location shown in the attachment, not in the area below as a description. How does one change the wire label? I just can't seem to find the correct word to search on how to do this. Thanks!
  5. QUOTE (DShinozaki @ Aug 21 2008, 04:44 PM) Which version of LV are you using? I was using 8.5 with the 1.1.1 driver and had no problems. When I upgraded to 8.6, I had to download the new 1.1.2 driver.
  6. QUOTE (crelf @ Jan 9 2009, 07:40 AM) Thank you very much for the 6221 suggestion! I'll give NI a call and see what else is available. Working on a laptop does limit the options somewhat, like PCI cards and such, but it's good to see there is an USB alternative.
  7. QUOTE (crelf @ Jan 8 2009, 05:38 PM) I've got the electronics for the stepper controller, so I don't need to generate the sequencing. I really just need 2 digital IO lines for direction and hold. Any one of the DIO boxes above can do that for me. But the one thing I need is something that can generate a slowish (up to 20kHz) clock to activate the stepping. I'd like to control the clock speed with a slider, basic labview stuff, really. Will any of those actually do that?
  8. Hello, I am looking at purchasing one of the following: USB-6501 USB-6008 USB-6009 for controlling a stepper motor. However, I cannot find the maximum digital output frequency of these units. The timing says software controlled. Can these output a pulse stream in the ~20kHz range? This is what I need to run the digital portion of my stepper motor controller. I would like to use labview to develop my ramp up/down times and see what works best for my application. Any help on this will be greatly appreciated. Thanks! Aaron
  9. QUOTE (LV_FPGA_SE @ Oct 17 2008, 09:15 AM) Christian, Thank you for the idea! Unfortunately I didn't forsee this issue when I first began development. I believe I can see a way to do such a thing, now that you mention it. However, I have the pleasure of answering my own question as well. In the Build Menu, select Properties->Source file settings->Customize VI properties button -> Execution selection - > uncheck Run when opened. Hopefully this will help someone in the future. This will open the application but not begin running it. It's not the prefered method, but it achieves my current goals. I'll develop with a better LV methodology in the future, thanks!
  10. Hello, I need to have my EXE open when a user double-clicks the application, but I don't want the actual compiled VI to begin execution when opened. The user needs to enter several parameters prior to execution, like entering system serial numbers and such. Then, the user can hit the Run button and the program can run normally. This is only an issue on initially opening the application. Once the application is open, has run, and terminates normally, the user can change the parameters and run the application with Run again without issue. Is there a parameter I can set somewhere that will open the application but not run it? I don't know the right search term to figure out how to ask the question to find this parameter. Thanks!
  11. QUOTE (Neville D @ Sep 2 2008, 04:28 PM) Neville, Thank you for the suggestion and direction. Attached is a VI I made using the Align and Resample function as well as just the Resample function. The VI contains both versions and show the difference. One thing I had to do was add one point to the end of the array to box in my endpoints. For whatever reason, the resample leaves off the last point. One thing I also had to do was make sure my original data point values showed up in the resampled waveform. This means only 2^(-n) sampling could be used. Fortunately, my resampling is 1/32, so I lucked out there. Hopefully this will be helpful to someone in the future for expanding arrays in labview using resampling.
  12. Hello, I'm attempting to take a 33 entry array, expand it to 1024 entries with the 33 original entries evenly spaced. Then, I need to linearly interpolate between each of those 33 spread-out entries and fill in the remaining 31 blank entries in between each original 33 now evenly spaced entries. I've found one example about using array expansion, but I have to do this operation many times, so I need to be more efficient about it. This is to fill up a lookup table (LUT). Ex: Take the original: 1 2 3 ... 30 31 32 And create the expanded: 0 (1/32 * (entry 0 - entry 1)) (2/32 * (entry 0 - entry 1)) ... (31/32 * (entry 0 - entry 1)) 1 (1/32 * (entry 1 - entry 2)) ... I can perform this expansion in a brute force method, but the Interpolate 1D Array VI suggests a much more effecient method that escapes me. There doesn't seem to be any good examples for the general operation of the Interpolate 1D Array VI to learn from. It appears to auto-index and take care of several operations at once, requiring a non-indexed entry into a FOR loop. Any guidance is greatly appreciated.
  13. Let's say I have two different while loops that I need to run. I want the numbers generated in while loop #1 to be shown on a waveform chart that updates during the loop. Then, when that loop is terminated, the code continues on via a flat sequence to another while loop, #2. I want to display the data from while loop #2 in the same waveform chart as while loop #1. Is this possible? My difficulty is I have 6 while loop sequences which need to execute sequentially. I only want to view the data in one waveform graph or chart that updates during each itteration of each sequentially executed while loop. Otherwise I have to have 6 waveform graphs to view the results for each while loops. I don't need to see the data in parallel since the operation is sequential anyway. Is this even possible since a chart doesn't seem to update unless it's inside a while loop?
  14. QUOTE (shoneill @ Mar 7 2008, 02:27 AM) Shane, Interestingly enough, when you take out the TermChar from the Instr, the system does not respond immediately, but waits for the time out period to happen from the VISA serial origination. I'm not sure why this happens. The setup still works, but the communication rate is limited to whatever the time out period is. Thanks! Aaron
  15. Here's the ultimate version that writes a command out, reads back the data: OK00, AAA45.678<CR><LF> And is immediately ready with another command. The VI ping pongs very well. The loop doesn't have to wait an arbitrary hold time, so it's ready as soon as the <LF> is received. Thanks all for your help and I hope this helps someone in the future.
×
×
  • Create New...

Important Information

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