I want to use the MXCTRLLib functions from VB. Are there any examples?

I have tried
'* place a reference to the max library first
dim aa as mxConfiguration
set aa = new mxconfiguration
aa.invokeMAX ' starts a MAX session
'aa.invokecreatenewwizard(0,"test") = "help" 'starts the wizard for a new channel
The above code starts MAX interface running. There seems to be several function for reading and writing configurations. Does anyone have some examples?
I want to be able to read each channel and get it's name and scaling so my app can be set up properly if another engineer changes or adds a channel.
I also want to be able to setup a configuration very fast on a new computer. I know I can save the config... but creating the config is a pain w
hen dealing with large quantities of analog and digital signals. MAX does not seem to be able to handle the load. I am thinking of a seperate interface that acts more like a database where I can sort the channels by SCXI board and channel number OR by name.
To see these functions add a 'reference in VB to National Instruments MaxCTRL 1.0. After that you can use the object browser on MXCTRLLib to see all of the functions.

Megan -
I have attached an example that returns only the data that falls between the X max & min labels. If you zoom in on a particular portion, the data that is returned is only the data that falls within your zoomed X axis.
Hope this is of some help.
Jim
Attachments:
Crop_graph.vi ‏1489 KB

Similar Messages

  • I want to use Dreamweaver instead of Godaddy.  Are there any templates already made for Dreamwaver that I can modified?  How do I start?

    Where or how do I start building anything on Dreamweaver?
    I want to dump my Godaddy account, but I don't know where to start with Dreamweaver....
    And I don't know how much space do I have to build pages?
    Can hosting from Adobe load different websites on my Creative Cloud account?
    Trying to contact Adobe over the phone to ask question is a problem... waiting for 45 minutes just to review my account and didn't get anybody...

    What can I tell you Ken?
    So far the issue is kind of solved... waiting for email instructions on how to transfer my Muse files to be able to host them with Catalyst.
    But.... what a disappointment with Adobe right off the bat.... 
    My CC subscription includes hosting to up to 5 websites.....
    I called Adobe customer service, and they couldn't tell me what did my subscription included, instead, they sent me to Catalyst to purchase a product I already had....
    Then I called Catalyst and they tell me to call back Adobe because my package already include a small subscription to Catalyst....  You think this guy Catalyst will get fired for not trying to sell me something I already had??!!
    Seems like customer service from Adobe, and some of the people at the forums are obsessed on trying to sell you something before looking at the real  issue.
    My previous experience on Adobe forums was on Acrobat from which I asked how to position a table in the file, some dude answer that I needed to buy some other program when all I needed was to press Shift + Arrow........
    People must be careful with Adobe.... they have good programs, but they will milk every dollar you have before paying attention to technical solutions their customers can use with their apps.

  • How to use the pps function from JCOP?

    Hi
    I'm trying to use the pps function from JCTerminal (JCOP API: [url http://www.cs.ru.nl/~woj/jcopapi/com/ibm/jc/JCTerminal.html#pps(int, int)]pps function ) to connect my client to a virtual card with a specific protocol (T=0).
    But I always got the error: "Protocol and parameter selection not supported by this terminal!"
    I've tried to make an ATR that support both protocol : [url http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc]3B 90 95 80 81 1F C7 DC.
    I really don't know what value to put in the second parameter (baud rate), I've tried with 150000, which is in the range of the ATR but I'm not sure this is correct. And I could't find any example of it.
    I'm also not sure where to put the pps command, the specification say directly after a reset, so I tried this implementation:
    System.out.print("Start");
              readers = TerminalFactory.getDefault().terminals().list(State.CARD_PRESENT);
              //If no readers has a card it ends the process
              if(readers.isEmpty()){
                   System.out.println("\nNo card in the reader...");
                   return;
              System.out.println("\nReader Type: "+readers.get(0).toString());
              term = (PCSCJCTerminal)JCTerminal.getInstance("PCSC", readers.get(0).toString().substring(15));
              term.open();
              System.out.println("\nTerminal opened");
              //Getting the ATR
              atr = new ATR(term.waitForCard(2000));
              try {
                   term.pps(JCTerminal.PROTOCOL_T0, (int)150000);
              } catch (Exception e) {
                   e.printStackTrace();
              System.out.println("ATR: "+toHex(atr.getBytes()));
              //sending a data 11223344
              System.out.println("\nsending data: 11223344");
              byte[] responsesend = term.send(0,cmdsend,0,cmdsend.length);
              System.out.println("Response data is:" + toHex(responsesend));
              //close terminal
              term.close();
              System.out.println("\nTerminal closed");I've got this output on the console:
    <font size="2">StartReader Type: PC/SC terminal Virtual CAD Reader 0
    Terminal opened
    ATR: 3b 90 95 90 00 81 1f c7 cc
    sending data: 11223344
    <font color="red">Protocol and parameter selection not supported by this terminal!</font>
         at com.ibm.jc.JCTerminal.pps(Unknown Source)
         at com.test.essai.main(essai.java:46)
    </font>>
    And If I take a look at the data exchanged with the card:
    <font size="2">Running in Virtual Card mode...
    ATR: 3B909580811FC7DC
    Waiting for event (power: off, protocol: unknown/undefined)...
    Waiting for event (power: off, protocol: unknown/undefined)...
    Raw event data: 01
    Event: VCAD_EC_POWER_ON (0x01)
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_POWER_ON) ATR: 3b909580811fc7dc
    Raw reply data: 003b909580811fc7dc
    Sending reply...
    Waiting for event (power: on, protocol: unknown/undefined)...
    Waiting for event (power: on, protocol: unknown/undefined)...
    Raw event data: 06ff11957b
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: ff11957b
    Accepting any PPS request parameters: Protocol: t=1; FI=9, DI=5
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: ff11957b
    Raw reply data: 00ff11957b
    Sending reply...
    </font>>
    This (above) is the PPS command but not from the PPS function, it is always sent with protocol T=1
    <font size="2">Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0501
    Event: VCAD_EC_SET_PROTOCOL (0x05) Protocol: t=1
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_SET_PROTOCOL)
    Raw reply data: 00
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0600c10120e0
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 00c10120e0
    Handling protocol-specific command...
    Protocol block:
    NAD: 0x00
    PCB: 0xc1 (T1_S_BLOCK); S-Block type: T1_SBT_IFS_REQ
    LEN: 1
    INF:
    IFS: 20
    EDC: 0xe0
    Changing IFS(other) from 32 to 32
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 00e10120c0
    Raw reply data: 0000e10120c0
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0600001300a404000d54657374436c69656e7441707000f0
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 00001300a404000d54657374436c69656e74
    41707000f0
    Processing app. command...
    App. block:
    NAD: 0x00
    PCB: 0x00 (T1_I_BLOCK); Seq. #: 0; More data: 0
    LEN: 13
    INF:
    00a404000d54657374436c69656e7441707000
    EDC: 0xf0
    cmd name: N/A (class #4)
    cmd: 00a40400 0d 54657374436c69656e74417070 70
    Responding with the reversed command data, SW is hardcoded to 90<INS>
    rsp: 707041746e65696c4374736554 90a4
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 00000f70704
    1746e65696c437473655490a475
    Raw reply data: 0000000f707041746e65696c437473655490a475
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 060040041122334400
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 0040041122334400
    Processing app. command...
    App. block:
    NAD: 0x00
    PCB: 0x40 (T1_I_BLOCK); Seq. #: 1; More data: 0
    LEN: 4
    INF:
    11223344
    EDC: 0x00
    cmd name: N/A (class #1)
    cmd: 11223344
    Responding with the reversed command data, SW is hardcoded to 90<INS>
    rsp: 9022
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 0040029022f
    0
    Raw reply data: 000040029022f0
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 03
    Event: VCAD_EC_POWER_OFF (0x03)
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_POWER_OFF)
    Raw reply data: 00
    Sending reply...
    Waiting for event (power: off, protocol: unknown/undefined)...
    </font>>
    If someone know how to use this function or have any advice to help me to select a specific protocol with Jcop API, please let me know.
    If you you need any more information don't hesitate to ask.
    Best regards
    Edited by: Cyril on Sep 22, 2011 9:54 AM

    -1
    I'm using a virtual terminal (windows driver), and I don't see how I could turn off the Auto-pps. I've also tried with a real reader and a card and I have the same error.
    -2
    I've tried value in the range of the atr (based on this analysis: [url http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc]http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc ). But I don't know if only I value of baud-rate is possible in the range. Anyway I just would like to change the protocol, not the baud-rate.
    -3
    I've already tried to call pps function before, after the first reset, or with another reset later and I always got the same thing.
              term = (PCSCJCTerminal)JCTerminal.getInstance("PCSC", readers.get(0).toString().substring(15));
              term.open();
              System.out.println("\nTerminal opened");
              //Getting the ATR
              atr = new ATR(term.waitForCard(2000));
              System.out.println("ATR: "+toHex(atr.getBytes()));
              jcard = new JCard(term,atr,0);
              jcard.reset();          
              try {
                   term.pps(JCTerminal.PROTOCOL_T0, (int)312500);
              } catch (Exception e) {
                   e.printStackTrace();
              }The same pps is always send after each reset...

  • Is there a way to download movies onto the iPad?  If so, are there any particular sites that I should use?

    Is there a way to download movies onto the iPad?  If so, are there any particular sites that I should use?

    You can only download content from the apple itunes and app stores.

  • HT1329 My large iTunes library is on an external hard drive. Can I set up iTunes on my new Macbook Pro and copy the library to it or are there any pitfalls?

    I have my large iTunes library on an external hard drive. Can I set up ITunes on my new Macbook Pro and transfer/copy this library to the internal hard drive or are there any problems I should be aware of?

    ITs an old Iomega 100gb external HD that has about 90gb of music on it. The Macbook has a 500gb HD. I would like to put the iTunes library on the internal HD so I have room to expand.
    Phil0124 wrote:
    You can copy it to the internal hard drive as long as it fits on it. How big is your library, and how big is your internal HD?
    The only thing you do not want to do is over-stuff the internal hard drive. The OS needs some space to operate correctly, so if your iTunes library uses up more than say 80 to 85% of the internal HD's available space it may not be a good idea to transfer it over.
    With that said, the internal HD will provide slightly faster access to the library than the external would, but other than that, you can point iTunes to the external drive just fine.

  • My new iphone was stolen today. I'm trying to track it via icloud but it shows the average ratio that the phone is disconnected. Are there any other way to track the phone. Thanks for your help.

    my new iphone was stolen today. I'm trying to track it via icloud but it shows the average ratio that the phone is disconnected. Are there any other way to track the phone. Thanks for your help.

    If the phone is turned off, doesn't have an internet connection, or has been restored preventing "Find my iPhone" from being able to work, there is no other way to track it.

  • I am 13 and I am very enthusiastic about Apple. At the moment I am reading a Steve Jobs auto-biography and I noticed something that Steve Jobs did in his early life was join the Hp explorers club.  Are there any companies who still have clubs?

    I really want to start making electronics as I plan to do a course on the subject
    I would be so grateful if you can answer my question
    I am 13 and I am very enthusiastic about Apple. At the moment I am reading a Steve Jobs auto-biography and I noticed something that Steve Jobs did in his early life which was joining the Hp explorers club.  Are there any companies who still have clubs?I really want to start making electronics as I plan to do a course on the subject.
    I would be so grateful if you can answer my question.

    Good catch! Yes there was a time when many companies and other organizations did that sort of thing. Now not so much.
    Intel still sponsors clubs see http://www.computerclubhouse.org.
    You might also check around, there might be after school programs, sometimes the YMCA or Boys & Girls Clubs have programs.
    good luck

  • I WANT TO USE THE YOUTUBE TO MP3 CONVERTER,IS THERE A SPECIAL ONE FOR MAC OR DO I USE THE ONE THAT WAS MADE BY WINDOWS? I HAVE A MACBOOK PRO OX LION 10.4.7

    IS THERE A SPECIAL ONE FOR MAC,OR CAN I USE THE ONE THAT WINDOWS MADE? AS I DIDNT WANT ANY SOFTWARE ON MY MAC MADE BY WINDOWS.......I WANT TO USE THE YOUTUBE CONVERTER TO MP3,CAN SOMEONE LET ME KNOW PLEASE ,MANY THANKS SAM

    Check out what the new version of Crossover Mac - they have begun to add 10.8 support and some new apps, too.
    OP: PLS do not use CAPS in future.

  • Are there any examples of queres or reports for the Access DB TS can generate?

    I am currently useing the default TestStand SPC database storage routine to store the results of all runs. Are there any tools, queries, reports, etc. to help me post process this database? I thought I would check here before making something myself. Mainly looking for something that will do a scatter plot for a certian test so I can see where all the data is falling within the limits.

    Currently NI does not have any post processing tools to assist you in formating the result information specifically for TestStand databases. Obviously using LabVIEW or LW/CVI or some other programming language you could write your own program to do such post processing.
    Scott Richardson - NI
    Scott Richardson
    National Instruments

  • My iPod Touch 4G (black) is constantly crashing after a few months of using iOS 5.0.1. Are there any solutions to this?

    Okay, so i have been using the iOS 5.0.1 for a while now, and a few months ago it was working very smoothly, and i was very happy with it because of its new additions. However for the last few weeks, my iPod touch started to lag, especially when i use the facebook app and safari. When I use facebook, safari, or any of my apps, they will crash in under 5 minutes. It has been driving me insane... I open up safari, open up a website, and there, a black screen, and it crashes! Or i open up facebook, try to put up a new status, or check my notifications, 2 seconds later, black screen, and crashes.
    I'm not sure if i want to restore my ipod because the last time i used restore, the apps were all over the place and a lot of information was lost in tht process.
    If i go to the apple store, will they be able to fix this or replace my ipod? if not, then i'd much rather throw this one out and buy a new one..
    But please, if there are solutions, please tell me!!! (i dont wanna waste another $300)
    Additional Information:
    -iPod Touch 4G
    - 32 GBs, 7.4GB free - audio = 4.9 GB, video = 7.3GB, Photos = 0.19GB, Apps = 7.8GB, Other = 1.16GB
    - Black
    - Capacity (said on ipod touch's itunes devices page) : 28.48GB
    - Software Version/iOS : 5.0.1

    Well, you could trade it in for a white one! 
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • Are there any example CVI certification exams available from NI ?

    Thanks for any insight, -Dean

    Am I going to be asked what menu or submenu to use to launch a certain feature ? I have no idea, I just look until I find it !
    Will there be an instance of CVI running that I can use during the exam ? ( e.g. if I'm asked a question similar to what I stated above, or to use the help feature ). I was also curious if there was a practical part to the exam, which you stated there was, that was big question I had, so thanks agin for the input.
    Even better: you will be asked what happens in case of error if you debugging level is "standard" or "extended" and so on...
    Based on my experience, you will need to study carefully at least the Programmer's reference.
    My exam had nothing to do with DAQ, DDE, Datasocket, ActiveX and generally external devices / programs: I don't think this aspect has changed, but it should be clear in the documentation available for the exam.
    Fortunately, you will have a pc with CVI installed to work on, since in the same 4-hour block you will have to answer questions and develop the application in no particular order, but consider that it's no long a time if you need to study the online help to answer
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Are there any example programs on the web

    Can anyone give a site where i can look at example programs in java, so i can see how certain classes etc... are used
    Ive found some but they are not very good for a beginer like me
    Any help would be much appriciated
    Thanks.....

    The java tutorial has a million examples:
    http://java.sun.com/docs/books/tutorial/
    Mike

  • Are there any examples for using a CAN card via XNET on a real time system?

    I am programming a real time application and I have a PXI 8512 card.  My first order of business is to get 5-byte messages from transducers that are broadcasting at 10 Hz on known message IDs.  There are no CAN/XNET samples in my "realtime" CVI sample folder.  I have found some in the nixnet folder but they are Windows based so I have to hack a lot of stuff out of them.
    Thank you.
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute

    In other words, I just need to do something very similar to this with no user interface:
    NOTE: See attachment
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute
    Attachments:
    CAN Bus Monitor.jpg ‏83 KB

  • I want to use the ethernet connection from my new iMac to my Time Capsule.  It seems only the Wifi is seen by either device.  Ive connected the Time Capsule to the iMac.  How can I get the iMac to use the wired connection

    I want to connect my iMac to my Time Capsule using Ethernet.  I have them connected via an Ethernet cable, but only WiFi seems to be working.  How can I specify the Ethernet connection instead of WiFi?  Thanks
    Welked

    Go to preferences, network and see if ethernet is indicated. Be sure it shows a green dot.  Also be sure it is at the top of the list (above WiFi).  If not click on the the wheel at the bottom and set service order.

  • Two different site collection cannot use the same Term Set . Is there any solution for this ?

     I can save department site collection as site collection template. Also I can use this template for a new department site collection creation.
    But Managed Meta data Navigation throws the following error
    •Error loading navigation: The Managed Navigation term set is improperly attached to the site. (Correlation ID: 6fa6b19c-820a-001d-b9e0-d939d702050a)

    Hi ,
    this is a limitation. please refer this
    http://social.technet.microsoft.com/forums/sharepoint/en-US/029b7e2e-661f-4ac3-bfcb-eb99b43016f2/the-selected-term-set-is-already-used-by-another-site
    Unfortunately in SP 2013, a termset can only be used by a single site collection for navigation. This is a known limitation. There is no out of the box way to use a central termset to manage navigation across site collections. You need to develop a custom sitemap
    provider to do that.
    Another way to do this is to create termset for each site collection and reuse/pin the terms from the central termset instead of creating duplicate terms. You can script this easily using Powershell. This has some limitations though.
    Also, you can try little customization. Follow this link -
    http://www.mavention.com/blog/building-global-naviga
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • ASA WebVPN. How do you restrict access to users in an AD group using LDAP?

    Hi All, I am trying to configure separate WebVPN connection profiles to give different portal bookmark contents to users based on their AD group membership.  This has been very difficult, even though I beleive it should be easy. The login page of teh

  • How to create an xml sitemap

    I was asked to create a sitemap for one site and I had to do it the hard way. I had to upload the site, went to an online xml sitemap generator, generate the xml file and upload it. But I was wondering whether DW has an option to generate an xml site

  • Sending Midi Program information from Mainstage

    I'm trying to use mainstage to control a variety of midi gear. I want Mainstage to be the master for all the other pieces of equipment. Is this possible? ie I want to select a patch on mainstage and it send out a midi program change to a load of midi

  • HT1430 Ipad camera not working,what to do?

    My ipad camera stop working,fell down many times and now my ipad camera cant open. Tried resetting but nothing happens?

  • How to manage number of OLAP Discoverer Plus reports

    We are currently running Discoverer Plus OLAP and experiencing very slow performance. OracleBI Discoverer version 10.1.2.55.26 D4O Build 10.1.2.55.26 BI Beans Build 3.2.3.1.36 JDK Version 1.6.0_23 Oracle RDBMS version 10.2.0.5 The D4OSYS.BISM_OBJECTS