Jump to content

Jeff Plotzke

Members
  • Posts

    144
  • Joined

  • Last visited

Everything posted by Jeff Plotzke

  1. QUOTE(chiupohsiang @ Jun 5 2007, 11:14 PM) A few things I see: -You close your VISA reference after you write to the serial port, but before you read. You should leave the port open until you want to stop reading/writing. -This program constantly writes whatever string is in 'input string' every iteration of the loop... So, right now, it does: Configure Serial Port Write String to Port Read 8 bytes from Port Configure Serial Port Write String to Port Read 8 bytes from Port Configure Serial Port ... Is this really what you want? I take your description to be: Configure Serial Port Write String to Port Read 8 bytes from Port Read 8 bytes from Port ... Read 8 bytes from Port Write 'End' String to Port Close Serial Port You'll need to look at the order of what you're executing. I'm guessing you'll want to put the serial read into a while loop to read the A/D data. Remember, you can also use the 'highlight execution' option to follow what your code is doing.
  2. QUOTE(hma @ Jun 5 2007, 03:17 AM) I understand this to mean that you have an array of a cluster and instead of the index display, you'd like each element on a tab, to make a tab display for arrays. One could then tab through the elements of the array. There's no native way to do this in LV. You could make a tab control yourself and put the same cluster on each one and then build them all into an array on your block diagram -- But of course you'll be stuck with a static number of elements. There would be no way to add or remove tabs based on how many elements you wanted. One way to browse arrays that's new in 8 is the vertical/horizontal scrollbar, which may help. That way, you could drop your cluster array on the front panel and users could scroll through each one. Then again, perhaps I didn't understand the question and I'm answering completely the wrong question... Let me know if you were asking something different.
  3. QUOTE(hagemaru @ Jun 5 2007, 06:01 AM) Do you need help displaying the contents into a table in LabVIEW or saving this data to file? If you need to save it to file, you can use the 'Array to Spreadsheet String' VI to convert your data to a delimited (tab, comma, etc) file that you can open with Excel. Two examples that you can look at: examples\file\sprdsht.llb\Using Spreadsheet Format.vi examples\file\smplfile.llb\Write to Text File.vi QUOTE(hagemaru @ Jun 5 2007, 06:01 AM) *i'msorry-idont know way to attach the file* To attach a file, there's an 'Attachments' area right below where you typed your message. Browse to what you want attached and click 'Upload' -- VoilĂ ! Your attachment is there!
  4. QUOTE(Randy81 @ Jun 4 2007, 08:17 PM) You can use VI Server to control other VIs, running locally or remotely. For your instance, you can use VI Server methods to change the value of front panel controls/indicators on another VI. You can access these methods by opening a reference to a VI, then using the 'Ctrl Val (Set)' method. Here's a brief knowledgebase article about VI Server, but it doesn't say a lot: http://zone.ni.com/devzone/cda/tut/p/id/4062''>http://zone.ni.com/devzone/cda/tut/p/id/4062' target="_blank">http://zone.ni.com/devzone/cda/tut/p/id/4062 I've also attached an example showing how you can programmatically set controls of other VIs. Open both the server and client examples, then run the server VI -- You'll be able to set the indicators in the client VI using the server VI.
  5. QUOTE(LV Punk @ Jun 4 2007, 12:59 PM) Luckily you didn't have a TV camera in your face the entire time like the people do on Iron Chef...
  6. QUOTE(phuzionz @ Jun 4 2007, 11:20 AM) You can use the 'ItemSyms' property to set the symbols programmatically. I've attached an example.
  7. QUOTE(Nullllll @ Jun 3 2007, 01:54 PM) Nulllll, as everyone reminds you each time you post, please post any code that you've tried. You say that you've tried these two "programs" in a sequence... please post this code that doesn't work. We can't help you unless we know what you've tried.
  8. QUOTE(crelf @ May 31 2007, 01:19 PM) Good point... I took it as popup window since that's what "Prompt User for Input" is...
  9. QUOTE(phuzionz @ May 31 2007, 11:14 AM) Jeroen, You can easily make a subVI into a pop up window -- In VI properties, go to "Window Appearance", and make sure that when you customize that "Show Front Panel when Called" and "Close afterwards" is selected. Then, in your subVI, have the VI wait for a user to press a button (or any action that you want the user to do with the popup) I've attached a sample popup dialog box I created that just waits for a user to click 'OK' or 'Cancel' and then outputs if the user clicked the cancel button.
  10. QUOTE(crelf @ May 31 2007, 10:50 AM) Sure... configure a custom view for the folder the RSS posts dump to (View > Arrange By > Custom; then turn on a filter...)
  11. QUOTE(AutoMeasure @ May 30 2007, 10:05 PM) Wow! That looks great! Do you take orders? One could turn this into a business!
  12. QUOTE(hink @ May 28 2007, 09:10 PM) LabVIEW can't do this natively... but there might be ActiveX controls that you could use that would do this...
  13. QUOTE(crelf @ May 25 2007, 11:26 AM) Here's a huge warning about the ACR9000 -- If you use a servo drive that's not made by Parker, you'll have nightmares trying to get them to play well together... Apparently there's special handshaking lines between the ACR9000 and Parker drives that aren't used in other manufacturer's drives -- I've used the ACR9000 along with a Kollmorgen drive and the integration of the two isn't something I'd want to do again...
  14. QUOTE(Nullllll @ Apr 5 2007, 02:47 PM) If I have LabVIEW connected with two wires to the top of the trunk of my car, can I find the resistance of resistor R35 that's in my car stereo? Sure -- Can't LabVIEW do everything? We need to know much more about your problem. How are you connecting it? It will probably be a basic Ohm's law problem... V=iR
  15. QUOTE(crelf @ Mar 18 2007, 06:38 PM) I think I need to add wiki articles for the words 'a' and 'the' -- Articles would have a ton of links!
  16. QUOTE(BrokenArrow @ Mar 18 2007, 01:02 PM) Woah -- That's wierd. I'm also using 8.20 and I'm getting the same error -- "LabVIEW: Valid format values are from 0 to 8." returns if I give it any value other than 0. I also tried the "Format" property node... It also returns errors when I try to change the format type of the numeric. I would definitely report this to NI...
  17. FYI -- NI just responded back. It's been filed with R&D with CAR# 47FHLM99
  18. QUOTE QUOTE(LV Punk @ Mar 16 2007, 07:28 AM) 4 bytes instread of 21+ bytes, and no conversion overhead.... :thumbup: Great suggestion -- Thanks all!
  19. QUOTE(Nullllll @ Mar 16 2007, 05:11 AM) What are topics that you are interested in / what projects are you thinking about doing? We can't just give you a random project to do -- that's your decision.
  20. I'm using the 'Get Time/Date in Seconds' VI wired to a 'Format Into String' with "%T" as the format. I noticed that I get two different date/time strings depending if I do this on a Windows PC or on a PXI RT System: Windows PC: 11:31:48.293 PM 3/16/2007 LVRT: 21:31:49.293 03/16/2007 These slight differences are messing with me since I'm trying to transfer this timestamp between a PC and RT system using format to string/scan from string. So, my two questions: 1. Is there a way to set the locale settings in RT to tell it how to format a date/time string? 2. Should I not do this this way and instead use the 'Format Date/Time String' VI on the RT side to create a string like the Host expects. However, I'm still weary of the day if the locale setting of Windows gets changed. Then, my strings won't match up again. What's the correct way to pass timestamps between systems without worrying about locale settings? Thanks!
  21. QUOTE(Adam Kemp @ Mar 15 2007, 07:05 PM) That's good to know. What about a way to pan your speakers from right to left output? I know there isn't a VI... perhaps a Windows API call? (I really don't need to do this... I'm just brainstorming)
  22. A little off-topic... but has anyone tried LabVIEW on a tablet PC? It would be interesting to get an interface to use the stylus to control LV instead of the mouse...
  23. QUOTE(Doon @ Mar 15 2007, 02:51 PM) I'll comment that I remember older versions of the Internet Toolkit having a huge memory leak in the XML VIs (I believe it was version 7.1 or so...) I haven't tested anything newer, so I hope it's corrected, but if you're planning to open many XML files over time, you may want to watch your memory if you're using the Internet Toolkit.
  24. I'm trying to programmatically find a SCXI chassis' associated DAQ Device -- I have a PXI system with a SCXI chassis connected to a PXI-6220 M-Series DAQ card. Given a SCXI Module name like "SC1Mod1" from MAX, I'd like to be able to determine that that SCXI Module's chassis is connected to PXI1Slot9 (The PXI-6220 DAQ). I've tried the 'DAQmx Device' property node (I've attached a screenshot of my code), and it returns that it's a SCXI module, but my way to trick it into telling me the connected PXI module fails with 0. (And for some reason, some of my actual PXI cards get this property to return 0 as well) Has anyone programmatically done this? Thanks for your help!
  25. QUOTE(Nullllll @ Mar 14 2007, 06:49 PM) I don't exactly understand what you're asking. It sounds like you have the equation: (x/N) * (i-10) = y; where y has to be between -10 and +10 If y is outside the [-10, 10] range, you'd like to have LV find a value for x and N to make y in range. (ie, if y = -15, find values of x and N to make y = -10) If this is correct, it's just algebra to determine your new value -- However, notice that you can't find values for both x and N -- This is a linear system and x and N have an infinite set of numbers that satisfy a given equation. Therefore, you'll have to hold either x or N constant. So, for example, if you want to hold N constant, you can find x for the case y = -10 using: x = (10*N)/(i-10) So, have LabVIEW determine if your y is within range. If it's not, use another equation to determine a value of x (or N) which will satisify your equation. Let me know if this isn't what you wanted.
×
×
  • Create New...

Important Information

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