01-23-2012 04:26 PM - edited 01-23-2012 04:26 PM
Hey Greg,
Can you try using the switch card in a real-time project?
1. Create a new project.
2. Add the PXI as a real-time target and connect to it. (You need to be connected to it for the next steps)
3. Add a vi under the PXI target and add a NI-Swith Initialize and Close, and connect them correctly.
4. Create a constant for the resource name, you should be able to use the dropdown box to select the correct slot. (If this isn't available then this is definitely some kind of driver issue.
5. Run the VI and verify you don't get any errors.
If you receive any errors or run into trouble please screenshot the issue and include it with your post.
Regards,
Matt M.
01-23-2012 06:55 PM - edited 01-23-2012 06:58 PM
After I created and saved the vi, I clicked on the resource name constant. Only the Refresh choice appeared in its drop-down menu.
(See TestNIswitchInitializeAndClose_ver1a_NothingInResourceConstantDropDown.jpg)
Then, I manually typed-in the name of the first PXI-2586 relay card in the PXI chassis (PXI1Slot9) into the resource constant's field and clicked the Run button. A dialog box appeared, saying it successfully deployed.
(See TestNIswitch_ver1a_deployedAfterPXI1Slot9isManuallyEntered.jpg)
After closing the deployment dialog box, I typed an erroneous word into the resource name's field (the word 'blah'), then I clicked the field's drop-down arrow. Its drop-down menu appeared with all of the PXI-2586 cards in the chassis, I then erased the word 'blah'.
(See Test_ver1a_ResourceConstantDropDownNowPopulatedAfterDeployment.jpg)
I then selected the 'PXI1Slot9' choice from the drop-down menu, then clicked the run button again. Once again, a dialog box appeared, saying it successfully deployed.
01-25-2012 02:41 PM
Hi Greg,
Matt and I were able to run your code on a real time system with the same switch. So your code is good. We suspect that there may be a driver mismatch between the real time target and host computer. Could you send us a MAX technical report from your host computer. The steps to create the report are as follows:
After you do this you can post back with the report and we can take a look.
Regards,
Josh Brown
01-25-2012 07:29 PM
Josh or Matt,
Could one of you email me, so I can get your address?
I need to email the MAX Tech Report to you, instead of posting it, because one of its files (ni_reg_report.txt) contains SerialNo, RegisteredOwner, and RegisteredOrganization info and I am not certain that the other files do not also contain similar info.
In the interim, I posted a zip file that contains the project and vi files, which pertain to my previous post on 01-23-2012 07:55 PM.
01-26-2012 12:04 PM
Update:
I learned from my employer's IT department that I am permitted to bring my personal netbook into work, as long as I do not connect it to our corporate intranet. Given this, I did the following:
Before bringing my netbook to work, I performed the following actions in the order as listed:
With my netbook at work, I performed the following actions in the order as listed:
See the attached screenshot.
Josh and Matt, when I get your email address, I will also send a MAX Tech Report that I generated on my personal netbook.
My personal netbook's specs are:
Hardware: HP mini 311-1000NR with 3GB of Ram
OS: Windows XP Home, ServPk 3
01-26-2012 03:57 PM
Hi Greg,
I understand why you want to share the report only through email. We do not typically give our emails out on forums. There are really two ways to proceed. Do you have a service contract with us? If so you can create an email service request and note this forum and that you are working with me. You could then attach the report to that email. If you let us know on the forum ahead of time we can be looking for the email and will make sure to get it when it comes trough our system. The second option would be for you to give me permission to look up your email from our Web Support Organization. If you gave me permission to do that I could send you a support email which you could then reply to. Let me know what would work best for you.
Regards,
Josh Brown
01-26-2012 07:52 PM
Oops! I thought the second option was the default and you did not need my permission. 🙂 I definitely want to avoid having either of our emails floating around in the forums.
I hereby give you (Josh Brown) and all other active National Instrument employees, who have corresponded with me on any of National Instrument's forums, permission to look up my email from National Instrument's Web Support Organization. Greg Campeau
02-08-2012 07:42 PM
Just following-up Josh.
Have you had an opportunity to review the MAX tech reports?
02-09-2012 04:59 PM
Hi Greg,
Could you right click on the Real Time PXI chassis and create a report for it. You can send that report to the same email as before. Do you have any real time code that uses the switch? If so we would like you to deploy it on the system and try running it. Do you have a Windows PXI system?
Regards,
Josh B
02-09-2012 08:01 PM
I just sent the MAX tech report for the remote system (Real Time PXI chassis) to the same email as before.
I'll list my answers below your original questions.
Do you have any real time code that uses the switch?
Just the NI-Switch Add-on for VeriStand.
Do you have a Windows PXI system?
The system has two hard-drive partitions. One with Win7 Embedded OS. The other with the Pharlap Real-Time OS. It has been booting from the Pharlap OS. However, when I first received and powered-up the PXI system (October 2011). It was booting from the Win7 embedded OS. While it was booting from the Win7 OS, NI tech support helped me resolve an ethernet communication problem, which turned-out to be caused by my IT dept's McAffee security permission settings. Those permissions were since elevated by my IT dept to resolve that issue. NI tech support then walked me through a procedure to change the PXI-systems boot-up partition from the Win7 embedded to the Pharlap.