LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB PIC18f4550 %26 a standalone installer

I want to be able to make a standalone installer of a labview application that sends information to PIC18f4550, via USB, if a condition is met. The thing is that I want to be able to use this device in different usb ports and in different computers, and from what I researched, you have to change the visa settings by selecting an option from a combo box, if the PIC is connected to a different USB port. What I want to know is if there's a way for me to dynamically change this option in the visa settings, so that when the device is connected to the computer, the visa section automatically gets populated with the correct information, and the program only has to wait for the condition to be met, so that it can send information to the PIC via USB.

Another thing is that from what I saw on a youtube video, you have to install an update so that the device can be recognized by labview, but I wish to know if this also has to be done for windows 8, 8.1, 9, etc., because the video only showed an update for windows 7. If the update has to be installed in every windows version, can someone please tell me where can I get these files?

This is the video I looked at: http://www.youtube.com/watch?v=QnxGS35XD64

Thanks in advance!

0 Kudos
Message 1 of 7
(2,585 Views)
You haven't provided any links to this 'research' of yours and the video is not in English. I'm not aware of any special VISA settings if you connect to a different port. Please provide more information such as whether you are using VISA RAW or HID.
0 Kudos
Message 2 of 7
(2,574 Views)

Hello Nando88, have you tried to replace the VISA resource name control for a constant?. This way you can specify the exact resourse name.

 

About the drivers compatibility, these drivers are a third party drivers from Labcenter Electronics, in my personal experience you can work with Windows 7 with out problems, but, talking about windows 8 and 8.1, these SO has changes on their Kernel, so I suggest you to check the specialized forum here to be completely sure about it. But talking about Windows 9, this SO it's now under develpment, so it's not an official release yet.

 

 

David P.

National Instruments Applications Engineer.

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 Kudos
Message 3 of 7
(2,537 Views)

The thing is that these settings change depending on the port, from what I can tell., and the other thing is that I don't know if a constant wll still work if I connect the device in a different port or in a different computer.

0 Kudos
Message 4 of 7
(2,523 Views)
I have no idea what settings you are referring to. You still have not said exactly what driver you are using our why or what you think has to change. When using VISA and a virtual com port, the only thing that might change is the com port name. With other drivers, the actual USB port is irrelevant as well.
0 Kudos
Message 5 of 7
(2,519 Views)

Hello Nando88,

 

The USB VISA resource name has the following syntax:

 

USB[board]::manufacturer ID::model code::serial number[::USB interface number]::RAW

 

You can get further information here.

 

You can use the next diagram to search a resource name of your device (change the USB Device Manufacturer and Model Code Known Values by your own Device Manufacturer and Model Code Known Values):

 

01.png

 

If you don't know how to get the Device Manufacturer and Model Code Known Values, write NI-VISA Driver Wizard on the start search bar, select USB Hardware bus, clic next and search for your device on the Device List, you can find the  USB Device Manufacturer and USB Model Code on the bottom left corner.

 

00.png

 

I hope this information helps you Nando88.

 

David P.

National Instruments 

Applications Engineer

 

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
Message 6 of 7
(2,458 Views)

You can even go to nirvana.  Select a nice VISA Alias like "MyPIC"

Use the System API to re-assign any PICs found to "MyPIC" 

then code VIA VISA Alias since whenever a PIC of that type is found it will be MyPIC

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 7
(2,452 Views)