Using digital PIN as output with LabView
-
- Posts: 1
- Joined: Wed May 04, 2016 3:28 pm
Using digital PIN as output with LabView
Hello,
I have been trying to set a digital pin to a high level with LABVIEW but for some reason it doesn't work.
It works when I use a LED for example "LED1" instead of a digital pin.
Here it's the LABVIEW code, both versions don't work.
Did I miss something in my code ?
Thank you.
I have been trying to set a digital pin to a high level with LABVIEW but for some reason it doesn't work.
It works when I use a LED for example "LED1" instead of a digital pin.
Here it's the LABVIEW code, both versions don't work.
Did I miss something in my code ?
Thank you.
-
- Posts: 5
- Joined: Mon Mar 02, 2015 4:20 pm
- Location: Ribnica, Slovenia
Re: Using digital PIN as output with LabView
hi ithemba!
The only thing I can think of now is that one version of RP ecosystem didn't have working GPIO pin commands while the LEDs were working.
So the first question would be: Did you download the OS from that page? http://redpitaya.com/quick-start/
The only thing I can think of now is that one version of RP ecosystem didn't have working GPIO pin commands while the LEDs were working.
So the first question would be: Did you download the OS from that page? http://redpitaya.com/quick-start/
-
- Posts: 1
- Joined: Wed Aug 17, 2016 10:21 pm
Re: Using digital PIN as output with LabView
Hi, I am having the exact same problem here. Have you managed to find a solution?
-
- Posts: 11
- Joined: Fri Apr 22, 2016 9:40 pm
Re: Using digital PIN as output with LabView
I too have been unable to get the following LV functions working
digital pin i/o (except for LED i/o which is fine)
arbitrary waveform generation.
I have used Wireshark to snoop on the commands sent, but can find no protocol errors - all strings sent seem to comply with the SCPI_Commands_beta_release.pdf and the SCPIAPI_Commands.odt
formats. Have tried both 0.95 and latest rev of 0.96. Standard waveform generation and capture seem to be fine.
Can anyone confirm that digital i/o has (ever) functioned, and if so, which ecosystem was in play at the time?
Many thanks in advance,
Rob
digital pin i/o (except for LED i/o which is fine)
arbitrary waveform generation.
I have used Wireshark to snoop on the commands sent, but can find no protocol errors - all strings sent seem to comply with the SCPI_Commands_beta_release.pdf and the SCPIAPI_Commands.odt
formats. Have tried both 0.95 and latest rev of 0.96. Standard waveform generation and capture seem to be fine.
Can anyone confirm that digital i/o has (ever) functioned, and if so, which ecosystem was in play at the time?
Many thanks in advance,
Rob
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Using digital PIN as output with LabView
It's a known bug that the "DIG:PIN:DIR" documentation is wrong with regards to the direction parameter.
What commands did you find with Wireshark (I don't have access to Labview, so I can't try it myself) ?
What commands did you find with Wireshark (I don't have access to Labview, so I can't try it myself) ?
-
- Posts: 11
- Joined: Fri Apr 22, 2016 9:40 pm
Re: Using digital PIN as output with LabView
Hi,
for the dig pin example, dio5_n set to out, state = high, wireshark captured:
DIG:PIN:DIR OUTP,DIO5_N;crlf
DIG:PIN: DIO5_N,1;crlf
DIG:PIN? DIO5_Ncrlf
so, it will fail if the scpi code actually requires OUT not OUTP.
Rob
for the dig pin example, dio5_n set to out, state = high, wireshark captured:
DIG:PIN:DIR OUTP,DIO5_N;crlf
DIG:PIN: DIO5_N,1;crlf
DIG:PIN? DIO5_Ncrlf
so, it will fail if the scpi code actually requires OUT not OUTP.
Rob
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Using digital PIN as output with LabView
Indeed. The Labview integration should be corrected to use OUT instead. That is confirmed to work.so, it will fail if the scpi code actually requires OUT not OUTP.
-
- Posts: 11
- Joined: Fri Apr 22, 2016 9:40 pm
Re: Using digital PIN as output with LabView
Thanks Nils yet again for your help, I need to remember to look at those issues lists on github in addition to this forum!
The INP, OUTP can be easily deleted from the combo box Connected to the DIO DIRection.vi and replaced with IN,OUT. Now works fine.
Regards,
Rob
The INP, OUTP can be easily deleted from the combo box Connected to the DIO DIRection.vi and replaced with IN,OUT. Now works fine.
Regards,
Rob
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 5 guests