Serial+MAX
hi
is it possible tp use visa open, read, write and close vis without the measurement and automation explorer?
if yes, how? i am gettin error -1073807202 if i am trying to open a visa connection.
thnk u.
gokul.
Hey Gokul,
Dennis is correct, you'll probably need NI-VISA, and if you are to install NI-VISA, it installs Measurement and Automation Explorer automatically for you.
You can download it at:
NI-VISA Download Driver
Regards,
Nick D.
Similar Messages
-
Please help new to macs and my recently purchased power mac keeps freezing :-(
Hi apple community!
I recently purchased a power mac g5
Specs;
G5 power mac dual core (2.0)
Power pc 970 mp
Late 2005
I don't have an apple mouse/keyboard
I just use $40 wireless mouse keyboard.
Upon purchase everything seemed to work as it should....booted up, open and closing apps without freezing.
However I never had it connected to the Internet when I navigated through system.
I got it home and installed a 1 tb harddrive (WD mainstream desktop) from future shop. When I installed it in tower I had to buy a sata 2.0 cable as there was not one available for use. Booted up fine and installation went as my research said it should. Turned it on next day....
Tried to update iTunes and this is where it started actin up. First just froze had to turn off, second time wouldn't even boot up plus fans went into overdrive. Third forth fifth sixth boots fans sometimes kick in, now whenever I try to do any kind of action it freezes. (Only when I click something)
I read about possible power suppy issue, so I plugged tower and monitor into seperAte plugs,
They may however be in same circuit because they at in the same wall...would a power conditioner fix this?
Anyway still froze on any action tried...just opened disk drive...opened then frooze...?
Anybody have any ideas??
Please help
Not sure if this is correct OS ( looked up using serial #)
Max operating system OSX 10.5.8 leaporad
Earliest supported OSX version ; 10.4.2 tiger.Sorry for the late reply. I want to thank you for taking the time to help me.
Not sure exactally where I could get something like this your speaking of.
Update; I have removed the harddrive and will most
Likely just use an external one, if the computer will even work.
I ended up taking it in to geeksquad at best buy, they had it for 3 days and also told me after the fact that neither of the techs working on it knew much about macs :-( needless to say I requested my
Money back due to the fact that the service I paid for could not be completed and literally couldn't tell me anything more than what's below.
They told me that they could not dock it with thier diagnostic machine, kept restarting on them and the one fella said it was overheating but had no idea why. When I brought it home again I tried it once more computer boots up to desktop as usual, this time had a asterisk window saying " the computer was restarted after mac OSX quit unexpectedly" however my cursor was again locked in the top left of the screen. Would not move, so I could not view the report, shortly after fans kicked into overdrive. I'm losing hope for this machine rapidly. I'm all ears when it comes to anything I may be able to do.
Should I try an actual apple keyboard/mouse just to eliminate that possible?
If you have ideas AWSOME, If not, no worries, ill take it into the mac store and see what they say
P.s the machine is clean inside little to no dust and the tech said he was going to clean it out, hard to tell if he did because it was clean clean before I brought it to him.
Thanks again for the help you have given me so far and in the future
I look forward to hearing back
Sincerally
Al -
Need a query for access tables
Hi
I need a query , help please:
table1:
id description serial
1 des1 ser1
2 des2 ser2
3 des3 ser3
table2:
id id1(id of table1) date
stat
1 1
2001 A
2 1
2008 N
3 2
2010 A
4 1
2012 F
==============
i need this data structure: (stat column must return for maximum date of id1 from table2)
id(from table1) serial(from table1) stat(from table2)
1 ser1
2012
2 ser2
2010
3 ser3
Nullmaybe you can try this.
declare @t1 table
(id int,[description] varchar(50),serial varchar(10))
declare @t2 table
(id int,id1 int,[date] char(4),stat char(10))
insert into @t1 values
(1,'des1','ser1'),
(2,'des2','ser2'),
(3,'des3','ser3')
insert into @t2 values
(1,1,'2001','A'),
(2,1,'2008','N'),
(3,2,'2010','A'),
(4,1,'2012','F')
select a.id,a.serial,max(b.date)
from @t1 a
left join @t2 b
on a.id = b.id1
group by a.id,a.serial
| SQL PASS Taiwan Page |
SQL PASS Taiwan Group
|
My Blog -
max can do it but labview cant
- Run NI Spy Tutorial
- Reset the serial device in MAX
- Run the LabVIEW code
- Post the *.spy file.
The spy capture will show any difference in function calls to the driver. -
Since Labview ver 8.0 and later, I am not very happy with the new way the project installer is managing the additional drivers such as Serial.
With LV 7.11 the serial components was included in the cab file and was installed on the target computer in a specific directory. The size of the distribution was pretty small and well suited for compact distribution.
My LV application use only the serial object and with LV 8.21, if I include the serial 3.2 component, I get an enormus file including max, visa ... and a lot of fucky component I do not need.
To distribute my application, I just need, the runtime engine and the serial driver as it was with the version 7.XX
Looking for clever advises from you gentlemen!Thanks Dennis for you input
My problem is in fact very simple. 3 years ago, I developped a software suite for X ray generator; My company is selling such generator all over the world and our control panel software and DLL (for OEM integrator) is based on Labview professionnal development plateform.
To drive our generator, we just need to transfer ascii data using the strandard RS232 port still present on most of equipments used in the industrial area.
Until LV version 7.11, there was no problem to include serial component in my distribution with a very reasonable size and transparency for the end user.
with LV 8.xx (preparing a new release), I'm very disapointed to see, my distribution is increased of about for 10 Mo to 180 Mo just because I increase the serial component.
May I mix a previous version of the serial component with LV 8.21?
Should I change my source to Visa instruction only and merge visa runtime only to my distribution?
is there any simple serial example based on visa and distributed with th application builder?
I will appreciate your help in order to optimize my distribution
Pascal -
MAX can't find serial to USB converter COM3
Hello friends,
I am using serial to USB converter for communicating the instruments.
I install drivers successfully and device manager shows COM3.
But when I go MAX 5.5 , I cannot see the COM3 port in device and interface.
Please tell me solution of this.Dennis,
You are totally right, it was a mistake from me. We do not see com connections under data acquisition devices.
Haris115, can you tell which drivers and which versions did you install? You can see it on MAX. And which OS are you using?
I just want to be sure there is the correct compatibility.
Thank you -
Serial ports not appearing in MAX - VISA installed.
Hi All,
Had a rather strange issue today that I couldn't resolve with serial ports not appearing in MAX (and hence being inaccessible to LabVIEW). Under the windows device manager it shows 4 COM ports and I have verified with an external program that they are functioning correctly.
I had the LabVIEW 2011 SP1 f2 runtime installed, DAQmx 9.6.1 and NI-VISA 5.3 (5.2 also didn't work).
Things I have tried:
- Updating VISA from 5.2 to 5.3
- Reinstalling the COM port devices under device manager
- Changing the COM port numbers
- Verifying that the COM ports are functioning correctly
- Tried adding a USB to Serial converter as a new COM port
- Reinstalling MAX
- Reinstalling NI-VISA
- Reinstalling everything (reboot each time when prompted)
- Resetting the hardware configuration from within MAX
- Run installers / MAX as administrator (this is running from the local admin account)
- Checked that NI-VISA appears under software in MAX
- Repaired MAX/NI-VISA
Is there anything else that could cause the COM ports not to appear in MAX when they appear (and work correctly) in device manager when a reinstall of NI VISA / MAX won't solve?
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets
Solved!
Go to Solution.I found the solution - it turns out that the serial ports were available to LabVIEW, they just didn't show up in MAX because installing just the runtime does not show the devices in MAX.
Despite doing a lot of googling earlier, it didn't throw up this knowledgebase article until I searched for it under a different phrase - http://digital.ni.com/public.nsf/allkb/766FD80DAE42E52886256A0200619CFE?OpenDocument
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
Serial Port not accessible until I run MAX
Hi!
On my machine I can access all Serial ports perfectly. I put a Vias Resource in my VI and get a drop down menu with all my serial ports. But on other machines (Runtime v7 and VISA runtime installed) I don´t get the names (e.g. com1 com2) but only
ASRL1:****
ASRL2:****
ASRL10:****
I know that ASRL1 is COM1 but when I select it it dowsn´t work.
If I now install MAX on the machine and run it once without changing the configuration my ports work.
Can anybody tell me how to use the ports without using MAX??
regards
hmannHi hmann,
When you run MAX it is configuring your VISA alias list behinf the scenes. See "JB" answer to this question to find out how to do this without using MAX. It basicly requires editing an INI file.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000238D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
I hope this help,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Can query serial port with NI MAX, but doesn't work in Labview
I'm trying to control a Coherent Sapphire 488 with labview. It's connected via a serial to USB converter into the computer. I can communicate with a device using NI MAX, but when I try to run the vi (attached), it works for several queries, but evetually returns a null character, after which I can no longer communicate with the port. If I then go into the NI MAX interface, every time I try to read it gives the "VISA: (Hex 0xBFFF0015) Timeout expired before operation completed" error message.There are also several queriess from the instrument's manual that don't seem to work at all (with or without MAX) and always return a null character. Any help is appreciated. I'm certainly a novice with device communication. Thanks.
Solved!
Go to Solution.
Attachments:
488_query.vi 16 KBGenerally issue with termination character.
And you are sending \ and r and not CarriageReturn. -
Serial will not connect unless MAX has been started
Hello All,
I am using Labview 7.0 , MAX 4.6.0f1, NI-VISA 3.0, Windows XP. A Microchip PIC USB device is attached to the Labview PC, the PIC embedded code registers as a Virtual Serial port and behaves as expected, I use Labview to read and writes simple fames of text.
I found I can communicate ok with the device and need to create a distributable Application, this is where I have found problems. I installed the application on a different machine but I don't see any serial COM x text in the serial drop down list. I was expecting similar function to the device manager which enumerates serial ports on the fly (including the PIC i am using)
Having read a few posts it looks like I need VISA runtime. I thought I was including this in my application as I selected, Tools > Build Application>Installer Settings> Create Installer X > Advanced > Serial Port Support. The only thing that seems to make the application pick up the serial ports is to run MAX first. I would prefer not to force users (15 to 20) to install MAX and then have the Labview automate a MAX startup when the program is started. This seems a bit clunky.
Advice appreciated
Thanks Chris
Solved!
Go to Solution.Hello Jamie,
Thankyou for the responce, I have tried ( and tried ) to get this to work without success so far. I downloaded NI visa301full.exe and followed the instructions regarding the batch.bat file however when I finally got the visa install popup to appear it progresses to the progress bar window, the progress bar fills to about 30% for 1 of 16 then removes the progress, waits a few seconds then part fill the progress bar again, and repeats over and over till I cancel. After some reading I noticed the batch file is only needed for multiple exe install so I removed the batch file and have been trying to call the visa301full.exe directly to make things simpler.
I tried manually installing the visa301full.exe and this worked fine, so at least I can see my application and visa301full.exe working together when they are installed. Ive attached my build file as hopefully Ive done something daft there. I think its probably nearly there, I appreciate your help and advice.
Regards Chris
Attachments:
USB Servo Controller.bld 6 KB -
Help! Adobe instructs me to contact Office Max, yet Office Max instructs me to contact Adobe. What do I do?
Serial numbers have to be validated at the checkout register to be active and it seems like this one may not have been. Did you buy this online or from a brick-and-mortar store? And is the issue you're having with a serial number or with a redemption code? I ask this because when I bought a boxed set of PSE13+PRE13 at Best Buy a couple weeks ago, it had a redemption code on the inner disc sleeve and a website to use to convert that redemption code to a pair of serial numbers.
-
Serial port writing return different in MAX and Labview
Dear all,
I have a very strange problem here. I had a device connected to the serial port, which can be started by sending "start\n".
Firstly, I used the IO in MAX to send "start\n", like the first figure, and the device operated correctly.
Then, I initialized the device, and used the program in the second figure, to write the same "start\n", but this time the device operated wrong.
I think the serial port setting are the same, and the device is not failed (after the second step, I repeated using MAX and still it's OK).
Could anyone to check what's wrong here?
Many thanks!In your LabVIEW code, how do you know that it did not work?
Did you receive and error on the error indicator? You don't have any VISA Read going on, so you aren't trying to read the response. -
Cómo funciona MAX? IMAQ serial write
Hola buenos días, llevo tiempo intentando averiguar cosas sobre la comunicación de una tarjeta PCIe 1433 y una cámara mikrotron 1462. La cosa esq através del icd file y el MAX he conseguido que cambiando parámetros en el MAX cambie el modo de adquisición, ya que envía dichos comandos a la camara y configura los atributos para la tarjeta de adquisición.
Para cambiar los parámetros de la cámara, desde el programa de LabView , estaba utilizando el IMAQ Serial Write. Para cambiar las ganacias y ciertos parámetros funciona a la perfección en tiempo de ejecución, incluso cuando la adquisición está en funcionamiento. Pero si envío los comando de cambiar el modo de adquisicion de la cámara (Los Taps X Bits), la tarjeta parece no enterarse del cambio y no funciona bien. Asi q lo intenté con el IMAQ Set Camera Atribute, lo que pasa esq esta opción no me deja aplicarla en tiempo de ejecución y debería cerrar la sesión de IMAQ, setear los nuevos atributos y crear una nueva. Ya que todos los demás se pueden cambiar, y el MAX aparentemente lo hace, me preguntaba si hay una manera de hacerlo sin crear una nueva sesión de IMAQ e alguna manera que no estoy teniendo en cuenta, o el propio Max cuando se produce un cambio de los atributos cierra y genera una nueva sesion de Imaq de manera transparente al usuario.
Gracias!Ay, perdona, que puse el modelo mal!!
Pues el icd file lo generé a partir de un modelo antiguo que funcionaba para esta cámara, que está en la página web de NI (El MC 1310), y con el file generator me cree uno con los atributos que necesitaba, xa ver la estructura que creaba y fijándome en files de otras cámaras (Contenidos en la carpeta Dat), fui probándo como se le añadian las opciones para enviar los parámetros. Vamos autodidacta total, porque los icd files son los grandes desconocidos.
Adjunto mi icd file actual. En el cual se soportan todos los modos de la cámara (taps * bits) menos uno (16 tap 1 bit), una opción para aplicar una corrección, bining.. Y algún parámetro más. Y están definidos el resto de parámetros pero no envía el comando adecuado, porque no sé como definirlo.
El comando en sí depende del valor que le llega y no sé como recogerlo en el icd file. Por ejemplo, para cambiar la ganancia, si el nuevo valor es 400h el comando sería 400h, en el icd file se defininen los comandos de la siguiente manera:
Action (Serial) {
Command (400)
En este caso sería Valor y no sé como hacerlo para que recoja el valor q le llega y lo concatene al string del comando. Otro problema que me he encontrado es que creo q solo admite valores numéricos, y este comadno se envia en hexadecimal, por lo que es posible q contengan letras.
Gracias!
Attachments:
Mikotron MC 1360_Maite.zip 2 KB -
Rubriques serial & parallel dans MAX
Bonjour
J'ai un problème avec un installeur. Je l'ai paramètré pour qu'il installe NI DAQmx et NI MAX.
L'installation se passe bien mais je n'ai pas toutes les rubriques lorsque j'ouvre MAX en particulier la rubriques serial & parallel située dans la rubrique périphérique et interface. Dois je ajouter d'autres programme à mon installeur pour obtenir cette rubrique.
De plus, mes port comme ne sont pas tous reconnu lorsque je créer une constante pour configurer la ressource VISA. Que puis je faire pour ajouter mon port COM.
Merci d'avance
Cordialement
Solved!
Go to Solution.
Attachments:
MAX.JPG 105 KBVoici l'imprime ecran que je vois après une installation sur un PC via mon installeur
Attachments:
Max1.JPG 582 KB -
Max speed support on serial 2503
Hi All,
I have a router cisco 2503, I need to know what is Max. speed supported on serial interface? Presently we have 128KB leased line, and want to know weather I can upgrade the leased line to 256K with the same router ?
THanks,
A.SHello,
if you are referring to the two serial interfaces on your 2503, these are high-speed serial interfaces, which support speeds up to 2048kbps, or roughly 2MB.
Check this link for more details:
Cisco 2503 Router
http://www.manucomp.com/cisco_catalogue/cisco_2503_router.html
HTH,
GP
Maybe you are looking for
-
After placing a page from a PDF, I want to display the size of the page in a text frame. The closest to the size of the PDF page that I get is when using app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia; Sometimes I get and expected size like 8.5
-
When trying to access I Tunes with my laptop with Windows 7 (64 bit) installed, I receive an error message i Tunes could not connect to the iTunes store as an error occurred (0x80090318)
-
Select from a linked server fails when executed as a join to database tables
Hi I have been using the following TSQL to update a results table for several years it is currently running on SQL Express version 11.0.2100.60 (I have successfully run this on various versions and editions from 2005 onwards) select c.Race_id , r.Run
-
Hi All, i've declared a parameter where end-user can specify the logical file name. can anyone provide the code for F4 help for logical file name. Regards Faisal
-
Why is Forms trying to insert??
I have a block with items from a table. If I make a change to an item, and leave the block, it updates fine. However, if from another canvas I change the items in the original block (:block.item := :thisblock.item), it wants to INSERT, even though I